-
Notifications
You must be signed in to change notification settings - Fork 60
SVS 1196 - Full load logic for permissions provisioning #1120
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
SVS 1196 - Full load logic for permissions provisioning #1120
Conversation
ca5f5cd to
1aaa7be
Compare
|
|
||
|
|
||
| class PermissionType(Enum): | ||
| class PermissionType(str, Enum): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just add a comment, please, that with 3.11 we should start using StrEnum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup. Made a similar comment for the return type on L45, with 3.11 it could be made simpler with typing.Self
| is_active: bool | ||
| class ConstructorMixin: | ||
| @staticmethod | ||
| def _get_id_and_type( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is there an underscore at the beginning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a Python convention for "private" methods - it's not enforced at runtime, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I know but the combination with @staticmethod seems a little bit strange to me.
gooddata-pipelines/tests/provisioning/entities/users/test_permissions.py
Show resolved
Hide resolved
9dac3e2 to
c129583
Compare
jira: svs-1196