Skip to content

Conversation

@janmatzek
Copy link
Contributor

jira: svs-1196

@janmatzek janmatzek force-pushed the jmat-svs-1196-full-load-logic-for-permissions-provisioning branch from ca5f5cd to 1aaa7be Compare August 28, 2025 15:19
@janmatzek janmatzek changed the title svs 1196 - Full load logic for permissions provisioning SVS 1196 - Full load logic for permissions provisioning Aug 28, 2025
@janmatzek janmatzek marked this pull request as ready for review August 28, 2025 15:49


class PermissionType(Enum):
class PermissionType(str, Enum):
Copy link
Contributor

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

Copy link
Contributor Author

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(
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@janmatzek janmatzek force-pushed the jmat-svs-1196-full-load-logic-for-permissions-provisioning branch from 9dac3e2 to c129583 Compare August 29, 2025 07:55
@janmatzek janmatzek merged commit 82a1c2d into gooddata:master Aug 29, 2025
9 checks passed
@janmatzek janmatzek deleted the jmat-svs-1196-full-load-logic-for-permissions-provisioning branch August 29, 2025 08:10
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.

2 participants