Project

Profile

Help

Issue #5421

closed

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

Added by jsherril@redhat.com over 4 years ago. Updated almost 4 years 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

Actions #1

Updated by ttereshc over 4 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'
Actions #2

Updated by fao89 over 4 years ago

  • Assignee set to fao89
Actions #3

Updated by fao89 over 4 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"

Actions #4

Updated by daviddavis over 4 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.

Actions #5

Updated by daviddavis over 4 years ago

  • Status changed from NEW to ASSIGNED

Added by Fabricio Aguiar over 4 years ago

Revision 63643343 | View on GitHub

setting plugin managed repositories

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

Added by Fabricio Aguiar over 4 years ago

Revision 2d0fcae3 | View on GitHub

filter plugin managed repositories

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

Actions #7

Updated by Anonymous over 4 years ago

  • Status changed from POST to MODIFIED
Actions #8

Updated by daviddavis over 4 years ago

  • Status changed from MODIFIED to POST
Actions #9

Updated by daviddavis over 4 years ago

  • Status changed from POST to MODIFIED
Actions #10

Updated by ttereshc over 4 years ago

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

Updated by ggainey almost 4 years ago

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

Also available in: Atom PDF