Skip to content

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Jul 3, 2025

Closes #1269.

This PR forces user's to login or select a logged in account whenever they hit the datalab login button. This is a requirement for using datalab on multi-user machines, as otherwise when one user logs out, the login button will automatically use the stored information according to the oauth provider.

Unfortunately, I had to vendor the flask-dance blueprints in order to expose the setting I needed, but these very rarely change (and indeed one of them was contributed upstream by me anyway).

Copy link

cypress bot commented Jul 3, 2025

datalab    Run #3569

Run Properties:  status check passed Passed #3569  •  git commit 6127b43330 ℹ️: Merge 5e3cf58a1f1bc9f3d5d7357fb786c0c6bffefbd1 into 692aebe40ce1f535ea47f29123f3...
Project datalab
Branch Review ml-evs/oauth-prompts
Run status status check passed Passed #3569
Run duration 08m 55s
Commit git commit 6127b43330 ℹ️: Merge 5e3cf58a1f1bc9f3d5d7357fb786c0c6bffefbd1 into 692aebe40ce1f535ea47f29123f3...
Committer Matthew Evans
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 504
View all changes introduced in this branch ↗︎

@ml-evs ml-evs force-pushed the ml-evs/oauth-prompts branch from 8b6dfce to 5e3cf58 Compare July 8, 2025 22:04
Copy link

codecov bot commented Jul 8, 2025

Codecov Report

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

Project coverage is 74.42%. Comparing base (692aebe) to head (5e3cf58).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pydatalab/src/pydatalab/routes/v0_1/auth.py 88.88% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1270      +/-   ##
==========================================
+ Coverage   74.36%   74.42%   +0.06%     
==========================================
  Files          66       66              
  Lines        4497     4520      +23     
==========================================
+ Hits         3344     3364      +20     
- Misses       1153     1156       +3     
Files with missing lines Coverage Δ
pydatalab/src/pydatalab/routes/v0_1/auth.py 65.92% <88.88%> (+2.38%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ml-evs ml-evs merged commit f6011be into main Jul 8, 2025
18 checks passed
@ml-evs ml-evs deleted the ml-evs/oauth-prompts branch July 8, 2025 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

datalab manual logout should force OAuth logout
1 participant