Project

Profile

Help

Issue #6196

closed

Package list on modulemd endpoint should have hrefs instead of UUIDs

Added by sajha almost 5 years ago. Updated over 4 years 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.

Actions #1

Updated by sajha almost 5 years ago

  • Tags Katello-P2 added
Actions #2

Updated by dalley almost 5 years ago

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

Updated by dalley almost 5 years 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

Added by dalley almost 5 years ago

Revision 142f52e1 | View on GitHub

Return content HREFs instead of PKs for Modulemd "packages"

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

Actions #4

Updated by dalley almost 5 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by ttereshc almost 5 years ago

  • Sprint/Milestone set to Pulp RPM 3.2.0
Actions #6

Updated by ttereshc almost 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #7

Updated by ggainey over 4 years ago

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

Also available in: Atom PDF