Project

Profile

Help

Issue #5421

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

Added by jsherril@redhat.com about 2 years ago. Updated over 1 year 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:
Yes
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 59
Quarter:

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 about 2 years 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 about 2 years ago

filter plugin managed repositories

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

History

#1 Updated by ttereshc about 2 years 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 fao89 about 2 years ago

  • Assignee set to fao89

#3 Updated by fao89 about 2 years 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 2 years 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 2 years ago

  • Status changed from NEW to ASSIGNED

#7 Updated by Anonymous about 2 years ago

  • Status changed from POST to MODIFIED

#8 Updated by daviddavis about 2 years ago

  • Status changed from MODIFIED to POST

#9 Updated by daviddavis about 2 years ago

  • Status changed from POST to MODIFIED

#10 Updated by ttereshc almost 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#11 Updated by ggainey over 1 year ago

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

Please register to edit this issue

Also available in: Atom PDF