RFE - ignore repositories on Import
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 598
- Forks
- 168
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 86
Description
Topic
Import/Export
Problem
Katello needs the ability to restrict repositories that can be imported. Idea here is that the export archive can contain repositories that need special subscriptions that the user may not have. Ideally instead of failing on import katello should be able to tell pulp "Please only import these repositories". In a disconnected environment this can be particularly painful to fix.
Suggestion
https://docs.pulpproject.org/pulpcore/restapi.html#operation/importers_core_pulp_create
When we create an Importer, Katello provides a repository mapping. Given this Pulp should
- Either add an additional
repo_mapping_onlyorrestrictedparameter in the importer. If this is true pulp will only import things that are provided in therepo_mappingand ignore the rest. This could be an application wide setting also (alternatively) - OR Provide an
exclude_repositoriesorinclude_repositoriesthat takes a list of repository ids and ignores mapping those.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Pulp REST API Importers operation linked in the issue and trace how an Importer consumes the repository mapping during import. Clarify whether the intended completion criteria are mapping-only imports or an explicit include/exclude repository option, then verify the chosen behavior in the import flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100