Repository navigation
Fix: Registration form in organization invite flow should pre-fill email ad - #127138
goransh-walia wants to merge 1 commit into
Conversation
Sentry Snapshot Testing
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2de6aed. Configure here.
| from sentry.models.organizationmember import OrganizationMember | ||
|
|
||
| member = OrganizationMember.objects.filter(token=token).first() | ||
| return {"email": member.email if member else None} No newline at end of file |
There was a problem hiding this comment.
Unused invite context helper
Medium Severity
The new get_invite_context_from_request helper is never imported or called. Registration still uses the existing session invite_email path, so this change does not pre-fill the invited email.
Reviewed by Cursor Bugbot for commit 2de6aed. Configure here.
|
This pull request has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you add the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |


Adds the helper function
get_invite_context_from_requesttosrc/sentry/core/endpoints/organization_member_utils.py. This function extracts an invite token from the request query parameters or session, queriesOrganizationMemberfor the token, and returns a dictionary with the associated email address to allow registration forms to pre-fill the invited user's email (Fixes #121594).Syntax check passed on the changed file. Relying on CI for full test suite confirmation.
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
AI-assisted.