Skip to content

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

Open
jobselko wants to merge 1 commit intopulp:mainfrom
jobselko:1391
Open

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

Conversation

@jobselko
Copy link
Copy Markdown
Member

@jobselko jobselko commented May 7, 2026

closes #1391

closes pulp#1391
Assisted By: Claude Opus 4.6
return self.call("repair_metadata", parameters={self.HREF: self.pulp_href})


class PulpPythonRepositoryBlocklistEntryContext(PulpEntityContext):
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.

Suggested change
class PulpPythonRepositoryBlocklistEntryContext(PulpEntityContext):
class PulpPythonBlocklistEntryContext(PulpEntityContext):

I don't think the "repository" in there adds any information or helps distinguishing things.



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?

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.

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