Maintenance: Planio will be observing a scheduled maintenance window this Tuesday, November 5, 2024 from 03:00 UTC until 06:30 UTC to perform urgent network maintenance in our primary data center. Your Planio account will be unavailable during this maintenance window.
Refactor #3113
closedUpdate Artifact instantiation code to use paths to files
100%
Description
The Artifact model can be instantiated using an open file or a path to a file on disk. The code in the ChangeSet needs to be updated to stop opening files before instantiating the Artifact. Both of the importers in the example plugin currently open a file before instantiating an Artifact. Both importers need to stop doing this and simply pass in a path to the file when instantiating an Artifact.
The ArtifactFileFiled needs to be updated to open the file in binary mode[0].
Updated by ttereshc almost 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ttereshc
Added by ttereshc almost 7 years ago
Added by ttereshc almost 7 years ago
Revision a1f85a46 | View on GitHub
Specify a path instead of an open file for Artifact instantiation
Updated by ttereshc almost 7 years ago
- Status changed from ASSIGNED to POST
Updated by ttereshc almost 7 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|a1f85a46db5a369b3f20e8291008b3c3794145bd.
Updated by bmbouter almost 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Specify a path instead of an open file for Artifact instantiation
closes #3113 https://pulp.plan.io/issues/3113