-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ref(control_silo): Move UserAvatar model to users module #76190
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
ref(control_silo): Move UserAvatar model to users module #76190
Conversation
Part of moving control silo user related resources into the users module, this PR does not include an old UserRole import shim as it's not used in getsentry. Includes adding of types for functions. Apart of (#73856)
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.
Broke test_avatar
into these two files
test_organization_avatar
test_user_avatar
@@ -63,7 +63,7 @@ def outboxes_for_update(self, shard_identifier: int | None = None) -> list[Contr | |||
) | |||
|
|||
@contextlib.contextmanager | |||
def _maybe_prepare_outboxes(self, *, outbox_before_super: bool): | |||
def _maybe_prepare_outboxes(self, *, outbox_before_super: bool) -> Generator[None]: |
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.
Not rlly familiar with the convention here, should this be `Generator[None, None, None] from following this, or does it not matter ?
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.
Generator[None]
is the simpler form and one we should use. Recently all Generator[none, none, none]
were updated. See 16b7563
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.
Looks good to me.
@@ -63,7 +63,7 @@ def outboxes_for_update(self, shard_identifier: int | None = None) -> list[Contr | |||
) | |||
|
|||
@contextlib.contextmanager | |||
def _maybe_prepare_outboxes(self, *, outbox_before_super: bool): | |||
def _maybe_prepare_outboxes(self, *, outbox_before_super: bool) -> Generator[None]: |
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.
Generator[None]
is the simpler form and one we should use. Recently all Generator[none, none, none]
were updated. See 16b7563
Part of moving control silo user related resources into the users module, this PR does not include an old UserRole import shim as it's not used in getsentry. Includes adding of types for functions.
Apart of (#73856)