Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic object roles subcommand group #439

Merged
merged 1 commit into from
Dec 16, 2021
Merged

Conversation

mdellweg
Copy link
Member

No description provided.

@mdellweg mdellweg force-pushed the object_roles branch 5 times, most recently from fbf09fd to eff5f7e Compare December 14, 2021 11:34
@mdellweg mdellweg marked this pull request as ready for review December 14, 2021 12:33
@mdellweg mdellweg changed the title WIP/RFC Generic object roles subcommand group Generic object roles subcommand group Dec 14, 2021
@mdellweg mdellweg added this to the 0.13.0 milestone Dec 14, 2021
@@ -51,6 +52,7 @@ def rbac(ctx: click.Context, pulp_ctx: PulpContext) -> None:
rbac.add_command(show_command(decorators=lookup_options))
rbac.add_command(update_command(decorators=lookup_options))
rbac.add_command(destroy_command(decorators=lookup_options))
rbac.add_command(role_command(decorators=lookup_options))
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't each object adding the role command have needs_plugin=[PluginRequirement("core", min="3.17.0.dev")]

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good observation.

@mdellweg mdellweg force-pushed the object_roles branch 2 times, most recently from 7b6dde4 to e598d57 Compare December 15, 2021 17:24
* Provide the role_command generic.
* Added to tasks, groups and RBAC content guards.

[noissue]
@mdellweg
Copy link
Member Author

@gerrod should be ready now.

@gerrod
Copy link

gerrod commented Dec 16, 2021

@gerrod should be ready now.

Cool! But wrong guy, I don't know what a pulp is.

Copy link
Contributor

@gerrod3 gerrod3 left a comment

Choose a reason for hiding this comment

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

Looks good!

allowed_with_contexts: Optional[Tuple[Type[PulpEntityContext]]] = None,
**kwargs: Any,
):
self.needs_plugins = needs_plugins
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@mdellweg mdellweg merged commit d14ec87 into pulp:main Dec 16, 2021
@mdellweg mdellweg deleted the object_roles branch December 16, 2021 14:50
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.

3 participants