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

Consider account status during auth and refactor API around blueprints #727

Merged
merged 6 commits into from
May 16, 2024

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented May 4, 2024

Closes #710 by refactoring all routes around blueprints and introducing some new decorators for permissions based on account_status.

Copy link

cypress bot commented May 5, 2024

Passing run #1767 ↗︎

0 40 0 0 Flakiness 0

Details:

Merge bd2ecc8 into f98ff00...
Project: datalab Commit: 8f069bde63 ℹ️
Status: Passed Duration: 02:18 💡
Started: May 16, 2024 4:55 PM Ended: May 16, 2024 4:58 PM

Review all test suite changes for PR #727 ↗︎

@ml-evs ml-evs force-pushed the ml-evs/account-status-auth branch from de0dfd1 to 19a96fa Compare May 13, 2024 20:43
Copy link

codecov bot commented May 13, 2024

Codecov Report

Attention: Patch coverage is 98.44961% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 67.25%. Comparing base (f98ff00) to head (bd2ecc8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #727      +/-   ##
==========================================
+ Coverage   66.89%   67.25%   +0.36%     
==========================================
  Files          62       62              
  Lines        3727     3747      +20     
==========================================
+ Hits         2493     2520      +27     
+ Misses       1234     1227       -7     
Files Coverage Δ
pydatalab/pydatalab/login.py 84.37% <100.00%> (+0.76%) ⬆️
pydatalab/pydatalab/routes/__init__.py 100.00% <100.00%> (ø)
pydatalab/pydatalab/routes/v0_1/__init__.py 100.00% <100.00%> (ø)
pydatalab/pydatalab/routes/v0_1/admin.py 69.23% <100.00%> (+0.34%) ⬆️
pydatalab/pydatalab/routes/v0_1/auth.py 64.82% <100.00%> (+0.35%) ⬆️
pydatalab/pydatalab/routes/v0_1/blocks.py 24.17% <100.00%> (+1.70%) ⬆️
pydatalab/pydatalab/routes/v0_1/collections.py 66.05% <100.00%> (+0.96%) ⬆️
pydatalab/pydatalab/routes/v0_1/files.py 60.22% <100.00%> (+1.40%) ⬆️
pydatalab/pydatalab/routes/v0_1/graphs.py 96.82% <100.00%> (+0.05%) ⬆️
pydatalab/pydatalab/routes/v0_1/healthcheck.py 84.61% <100.00%> (-1.10%) ⬇️
... and 6 more

@ml-evs ml-evs force-pushed the ml-evs/account-status-auth branch from 394bed2 to 3af8105 Compare May 14, 2024 21:06
@ml-evs ml-evs changed the title Create items blueprint that uses account status during auth Consider account status during auth and refactor API around blueprints May 14, 2024
@ml-evs ml-evs marked this pull request as ready for review May 14, 2024 21:06
@ml-evs ml-evs force-pushed the ml-evs/account-status-auth branch from 3af8105 to 2b5338d Compare May 15, 2024 12:25
@ml-evs ml-evs requested review from jdbocarsly and BenjaminCharmes and removed request for jdbocarsly May 15, 2024 15:59
@ml-evs ml-evs force-pushed the ml-evs/account-status-auth branch from 2b5338d to 418e93a Compare May 15, 2024 17:10
@ml-evs ml-evs force-pushed the ml-evs/account-status-auth branch from 418e93a to bd2ecc8 Compare May 16, 2024 16:51
Copy link
Member

@jdbocarsly jdbocarsly left a comment

Choose a reason for hiding this comment

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

looks great!

@ml-evs ml-evs merged commit 0869924 into main May 16, 2024
11 checks passed
@ml-evs ml-evs deleted the ml-evs/account-status-auth branch May 16, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update API permissions based on user's account_status
3 participants