Project

Profile

Help

Issue #6196

Package list on modulemd endpoint should have hrefs instead of UUIDs

Added by sajha 10 months ago. Updated 7 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 66
Quarter:

Description

Today the package list from the modulemd endpoint looks like:

{
    "arch": "noarch", 
    "artifact": "/pulp/api/v3/artifacts/4afb1dd9-b801-4b81-b18a-10050fd03d21/", 
    "artifacts": "[\"pteradactyl-0:4.1-1.noarch\"]", 
    "context": "deadbeef", 
    "dependencies": "{}", 
    "name": "pteradactyl", 
    "packages": [
        "b8046dd7-4a4f-4345-a401-bf7645a9fee4"
    ], 
    "pulp_created": "2020-02-19T17:14:43.145644Z", 
    "pulp_href": "/pulp/api/v3/content/rpm/modulemds/e888df59-6220-4a68-9648-3f863808c5dc/", 
    "stream": "4", 
    "version": "20180740444408"
}

It would make sense to return hrefs for the packages instead of the UUIDs.

Associated revisions

Revision 142f52e1 View on GitHub
Added by dalley 9 months ago

Return content HREFs instead of PKs for Modulemd "packages"

closes: #6196 https://pulp.plan.io/issues/6196

History

#1 Updated by sajha 10 months ago

  • Tags Katello-P2 added

#2 Updated by dalley 9 months ago

  • Status changed from NEW to POST
  • Assignee set to dalley
  • Sprint set to Sprint 66

#3 Updated by dalley 9 months ago

sajha, keep in mind also that the artifacts field (and a few others) were broken and returning a JSON list contained within a string, instead of just returning hte list. That was fixed recently so if you were using those fields and working around it at all, the fix might "break" it.

https://github.com/pulp/pulp_rpm/pull/1601

#4 Updated by dalley 9 months ago

  • Status changed from POST to MODIFIED

#5 Updated by ttereshc 9 months ago

  • Sprint/Milestone set to Pulp RPM 3.2.0

#6 Updated by ttereshc 9 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#7 Updated by ggainey 7 months ago

  • Tags Katello added
  • Tags deleted (Katello-P2)

Please register to edit this issue

Also available in: Atom PDF