Project

Profile

Help

Issue #6053

closed

Add repository_href to pulp2repositories api

Added by jsherril@redhat.com almost 5 years ago. Updated over 4 years ago.

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

Description

the pulp2repositories api does not contain the repository_href of the created repository. Its probably easy to add and would save us from having to look it up:

[#<Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository:0x00007f05e4394518
  @is_migrated=true,
  @pulp2_object_id="5e29fb21b02e5354b9243ad3",
  @pulp2_repo_id="5b08c8a6-d3bb-41af-9cd4-cadf8fec2a55",
  @pulp3_distribution_hrefs="[\"/pulp/api/v3/distributions/file/file/e1fbefc4-bd25-42cb-a160-9b3b7a72eff4/\"]",
  @pulp3_publication_href="[\"/pulp/api/v3/publications/file/file/ecfc2157-2a3f-47d6-9835-6e89ba6c2f2b/\"]",
  @pulp3_remote_href="/pulp/api/v3/remotes/file/file/1634f526-1813-4ed0-b7cb-2769009359e5/",
  @pulp3_repository_version="/pulp/api/v3/repositories/file/file/b993a103-7835-46b6-b542-5521817c6613/versions/1/",
  @pulp_created=Thu, 23 Jan 2020 20:28:14 +0000,
  @pulp_href="/pulp/api/v3/pulp2repositories/ab6dad7f-b745-4573-8c3e-f2a6701d8de8/">]>

On an aside note, it appears not possible to find a repository_href from a repository_version, that may be a 2nd unrelated bug.

Actions #1

Updated by ipanova@redhat.com almost 5 years ago

  • Status changed from NEW to POST
  • Assignee set to ipanova@redhat.com

https://github.com/pulp/pulp-2to3-migration/pull/82

repository_href not being present on the repository_version is not related to this issue and would require a PR to the `RepositoryVersionSerializer` https://github.com/pulp/pulpcore/blob/master/pulpcore/app/serializers/repository.py#L185

@jsherril, is this something you will benefit from? then we need to open a separate issue for pulpcore.

Added by ipanova@redhat.com almost 5 years ago

Revision b30bcff5 | View on GitHub

Add pulp3_repository_href to pulp2repositories api.

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

Added by ipanova@redhat.com almost 5 years ago

Revision b30bcff5 | View on GitHub

Add pulp3_repository_href to pulp2repositories api.

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

Added by ipanova@redhat.com almost 5 years ago

Revision b30bcff5 | View on GitHub

Add pulp3_repository_href to pulp2repositories api.

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

Actions #2

Updated by jsherril@redhat.com almost 5 years ago

Right now, i don't think its needed ,but i think it makes sense to do IMO. As its impossible to figure out what repo a version belonged to without it. I'll open an issue, thanks!

Actions #3

Updated by ipanova@redhat.com almost 5 years ago

  • Sprint set to Sprint 65
Actions #4

Updated by ipanova@redhat.com almost 5 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by ipanova@redhat.com almost 5 years ago

  • Description updated (diff)
  • Triaged changed from No to Yes
Actions #8

Updated by ttereshc over 4 years ago

  • Sprint/Milestone set to 0.1.0
Actions #9

Updated by ttereshc over 4 years ago

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

Updated by ggainey over 4 years ago

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

Also available in: Atom PDF