Project

Profile

Help

Issue #5421

As a user, I can determine if a repo is a 'sub-repo'

Added by jsherril@redhat.com 7 months ago. Updated 4 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
No
Groomed:
Yes
Sprint Candidate:
No
Tags:
Katello-P2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 59

Description

As part of the work for kickstart sub-repos, we need a way to know if a particular repository is a 'sub repo' or not. Either:

1) Some attribute on each repository when listing repositories
or
2) some filter on the list api to exclude sub repos

Associated revisions

Revision 63643343 View on GitHub
Added by Fabricio Aguiar 7 months ago

setting plugin managed repositories

closes #5421 Required PR: https://github.com/pulp/pulpcore/pull/300 https://pulp.plan.io/issues/5421

Revision 2d0fcae3 View on GitHub
Added by Fabricio Aguiar 7 months ago

filter plugin managed repositories

ref #5421 https://pulp.plan.io/issues/5421

History

#1 Updated by ttereshc 7 months ago

  • Subject changed from Provide some attribute for determining if a repo is a 'sub-repo' to As a user, I can determine if a repo is a 'sub-repo'

#2 Updated by fabricio.aguiar 7 months ago

  • Assignee set to fabricio.aguiar

#3 Updated by fabricio.aguiar 7 months ago

I believe we can change this:

new_repository, created = Repository.objects.get_or_create(name=name)
if created:
    new_repository.save()

https://github.com/pulp/pulp_rpm/blob/master/pulp_rpm/app/tasks/synchronizing.py#L84-L86
Into this:

new_repository, created = Repository.objects.get_or_create(
    name=name, description="sub-repo"
)
if created:
    new_repository.save()

And then look for repositories with description == "sub-repo"

#4 Updated by daviddavis 7 months ago

  • Groomed changed from No to Yes
  • Sprint set to Sprint 59

Per our conversation, we should use a boolean field to represent this data.

#5 Updated by daviddavis 7 months ago

  • Status changed from NEW to ASSIGNED

#7 Updated by Anonymous 7 months ago

  • Status changed from POST to MODIFIED

#8 Updated by daviddavis 7 months ago

  • Status changed from MODIFIED to POST

#9 Updated by daviddavis 7 months ago

  • Status changed from POST to MODIFIED

#10 Updated by ttereshc 4 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF