Project

Profile

Help

Issue #5421

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

Added by jsherril@redhat.com about 1 month ago. Updated 28 days ago.

Status:
MODIFIED
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 29 days ago

setting plugin managed repositories

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

Revision ecc6b62a View on GitHub
Added by Fabricio Aguiar 28 days ago

Added plugin_managed field on repository

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

Revision 2d0fcae3 View on GitHub
Added by Fabricio Aguiar 28 days ago

filter plugin managed repositories

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

History

#1 Updated by ttereshc about 1 month 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 about 1 month ago

  • Assignee set to fabricio.aguiar

#3 Updated by fabricio.aguiar about 1 month 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 about 1 month 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 about 1 month ago

  • Status changed from NEW to ASSIGNED

#7 Updated by Anonymous 28 days ago

  • Status changed from POST to MODIFIED

#8 Updated by daviddavis 28 days ago

  • Status changed from MODIFIED to POST

#9 Updated by daviddavis 28 days ago

  • Status changed from POST to MODIFIED

Please register to edit this issue

Also available in: Atom PDF