-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: fix typing in frontend debug views
- Loading branch information
1 parent
fd1b8da
commit a769e96
Showing
9 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
from sentry.models.organization import Organization | ||
from sentry.models.organizationmember import OrganizationMember | ||
from sentry.notifications.notifications.organization_request import InviteRequestNotification | ||
from sentry.types.actor import Actor | ||
from sentry.users.models.user import User | ||
|
||
from .mail import render_preview_email_for_notification | ||
|
@@ -16,7 +17,7 @@ def get(self, request: HttpRequest) -> HttpResponse: | |
pending_member = OrganizationMember( | ||
email="[email protected]", organization=org, inviter_id=requester.id | ||
) | ||
recipient = User(name="James Bond") | ||
recipient = Actor.from_orm_user(User(name="James Bond")) | ||
recipient_member = OrganizationMember(user_id=recipient.id, organization=org) | ||
|
||
notification = InviteRequestNotification(pending_member, requester) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters