Project

Profile

Help

Story #9099

closed

task created_resources provides hrefs, but no guidance on how to determine the type from the href

Added by jsherril@redhat.com over 2 years ago. Updated about 2 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation, Katello
Sprint:
Quarter:
Q4-2021

Description

Ticket moved to GitHub: "pulp/pulpcore/2028":https://github.com/pulp/pulpcore/issues/2028


Currently an rpm sync task with mirror=true provides mutliple types of created_resources, a version_href and a publication_href.

It is left up to the user to figure out how to map an href to a particular object. This is made more difficult when you consider that we'd want code to detect this generically across all content types without having to code for each one.

Its easy to write a regex that would match version href for example:

   /.*\/versions\/.*/

However this would match other href's as well, we could expect an id:

/.*\/versions\/\d*\//

but this depends on them being numerical, is that okay? Will that break in the future?

It would be helpful to have some set of regex's or some guidance on how to determine if a given href is a:

  • repository
  • version
  • publication
  • distribution

across all content types, with a commitment that (at least for pulp3), that these regexs or guidance will not change.

This could be verified with a unit_test at the code level.

Actions #1

Updated by dkliban@redhat.com over 2 years ago

  • Tracker changed from Issue to Story
  • % Done set to 0
  • Severity deleted (2. Medium)
  • Triaged deleted (No)
Actions #2

Updated by dkliban@redhat.com over 2 years ago

  • Tags Documentation added
Actions #3

Updated by ipanova@redhat.com over 2 years ago

  • Quarter set to Q3-2021
Actions #4

Updated by ipanova@redhat.com over 2 years ago

  • Quarter changed from Q3-2021 to Q4-2021
Actions #5

Updated by pulpbot about 2 years ago

  • Description updated (diff)
  • Status changed from NEW to CLOSED - DUPLICATE

Also available in: Atom PDF