Issue #3878
Published metadata path is saved to None path
Description
In task #3848, we converted ids from being UUIDs to integer IDs. The advantage of UUIDs is that they can be set before the model is saved. We rely on this here when setting the path to the published metadata:
However, now that we're using int ids (which are set after save), published metadata is getting saved to /var/lib/pulp/published/metadata/None/
.
I believe we should be able to simply substitute model.pk
with something like uuid4()
.
Associated revisions
Revision 5caa01f4
View on GitHub
Fix storage path for published metadata. closes #3878
History
#1
Updated by jortel@redhat.com over 2 years ago
daviddavis@redhat.com wrote:
I believe we should be able to simply substitute
model.pk
with something likeuuid4()
.
Seems like a good solution.
I don't know of any need for linkage back to the PublishedMetadata in the DB.
#2
Updated by CodeHeeler over 2 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 40
#3
Updated by jortel@redhat.com over 2 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to jortel@redhat.com
#4
Updated by rchan over 2 years ago
- Sprint changed from Sprint 40 to Sprint 41
#5
Updated by jortel@redhat.com over 2 years ago
- Status changed from ASSIGNED to POST
#6
Updated by jortel@redhat.com over 2 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp|5caa01f46584e7d65187ba00b526c072bb847950.
#7
Updated by daviddavis almost 2 years ago
- Sprint/Milestone set to 3.0.0
#8
Updated by bmbouter over 1 year ago
- Tags deleted (
Pulp 3)
#9
Updated by bmbouter about 1 year ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Please register to edit this issue
Fix storage path for published metadata. closes #3878