Skip to content

[PULP-1693] Add package blocklist to Python repos#1392

Open
jobselko wants to merge 1 commit into
pulp:mainfrom
jobselko:1391
Open

[PULP-1693] Add package blocklist to Python repos#1392
jobselko wants to merge 1 commit into
pulp:mainfrom
jobselko:1391

Conversation

@jobselko
Copy link
Copy Markdown
Member

@jobselko jobselko commented May 7, 2026

closes #1391

@jobselko jobselko self-assigned this May 7, 2026
@jobselko jobselko force-pushed the 1391 branch 2 times, most recently from 055956e to 8fdb145 Compare May 7, 2026 17:05
Comment thread pulp-glue/src/pulp_glue/python/context.py Outdated
Comment thread src/pulpcore/cli/python/repository.py Outdated


blocklist.add_command(list_command(decorators=nested_lookup_options))
blocklist.add_command(show_command(decorators=nested_lookup_options + [href_option]))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look right. How do you identify a blocklist on a repository?

Can a repository have more than one blocklist?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now the Python plugin API has no way to filter entries by name/version/filename (only href is supported). This will require a change to the plugin, so I am changing this PR to a draft.

A repository has always one implicit blocklist - list gives you all blocklist entries, show only the one you specify. Does it make sense?

Comment thread src/pulpcore/cli/python/repository.py Outdated
blocklist.add_command(list_command(decorators=nested_lookup_options))
blocklist.add_command(show_command(decorators=nested_lookup_options + [href_option]))
blocklist.add_command(
destroy_command(name="remove", decorators=nested_lookup_options + [href_option])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also looks like suboptimal ux.
You should be able to remove entries on the blocklist by specifying the name and version IMO.

@jobselko jobselko marked this pull request as draft May 12, 2026 12:48
@jobselko jobselko force-pushed the 1391 branch 2 times, most recently from 5f1f4c5 to 3e168b8 Compare May 13, 2026 15:31
closes pulp#1391
Assisted By: Claude Opus 4.6
@jobselko jobselko requested a review from mdellweg May 13, 2026 15:40
@jobselko jobselko marked this pull request as ready for review May 13, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CLI support for package blocklist on python repositories

2 participants