Skip to content
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

feat(demo-mode): passwordless login #83090

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

obostjancic
Copy link
Member

@obostjancic obostjancic commented Jan 8, 2025

Context

  • In order to replace Current sandbox, which is a self-hosted instance available at https://try.sentry-demo.com/ we created a SaaS sandbox org https://sandbox.sentry.io/
  • Event data in sandbox org will be synced with demo org through sentry-mirror
  • In order to allow public access to this org we created a Demo User
    • that should have read-only access to only this org. PoC PR
    • that should be able to log in automatically. WIP PR
  • sandbox org and Demo User are behind demo-mode.orgs and demo-mode.users options respectively. Those options are added in PR

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 8, 2025
Copy link

codecov bot commented Jan 8, 2025

Codecov Report

Attention: Patch coverage is 92.50000% with 3 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/web/frontend/auth_login.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #83090      +/-   ##
==========================================
+ Coverage   87.63%   87.68%   +0.05%     
==========================================
  Files        9492     9455      -37     
  Lines      541325   538413    -2912     
  Branches    21234    21006     -228     
==========================================
- Hits       474383   472123    -2260     
+ Misses      66594    65933     -661     
- Partials      348      357       +9     

@obostjancic obostjancic requested a review from a team January 9, 2025 14:49
@obostjancic obostjancic marked this pull request as ready for review January 9, 2025 14:49
@obostjancic obostjancic requested a review from a team as a code owner January 9, 2025 14:49
@obostjancic obostjancic requested a review from a team January 9, 2025 14:49
Copy link
Member

@mdtro mdtro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add tests to ensure this all behaves as expected?

@obostjancic
Copy link
Member Author

Can you add tests to ensure this all behaves as expected?

It should be all covered with tests now :D

Copy link
Contributor

@constantinius constantinius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically log vistors in
3 participants