-
Notifications
You must be signed in to change notification settings - Fork 248
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
[batch/auth] Set accounts to "inactive" after extended inactivity #14789
Open
grohli
wants to merge
15
commits into
hail-is:main
Choose a base branch
from
grohli:disable-inactive-accounts
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8089cf8
Initial additional SQL for tracking user activity.
grohli 49f6456
Changed 'deleted' to new 'inactive' state; made placeholder for 'inac…
grohli 74faa27
rename placeholder table
grohli f1bfbbf
Added update for active users; added HTTP errror for inactive users.
grohli 29ca3c3
Fixed SQL even to actually check for active users in WHERE
grohli 7d26f4d
Changed inactivity timeout period to be 60 days
grohli 5688e27
Removed redundant if statement check
grohli 5d6f3e4
Added SQL, build.yaml modification for database migration
grohli 7278280
Change last_active data type to DATETIME
grohli 14711cb
Changed loop to update inactive users to be Python-side rather than i…
grohli f353d77
Refactor in auth/auth.py
grohli 33378a6
changed NOW() to UTC_TIMESTAMP(3) for precision and region agnosticism.
grohli 23b9b23
Type change for default last_activated field
grohli af186e4
Added descriptive error message for inactive user case in auth.py
grohli b7ba072
Merge branch 'main' into disable-inactive-accounts
grohli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE users ADD COLUMN last_activated DATETIME NOT NULL DEFAULT NOW(3), ALGORITHM=INSTANT; | ||
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As Patrick mentioned,
estimated-current
is documentation, not something that actively runs. You'll want to add a migration, something like this (and referenced by build.yaml like this)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this in line with the migration you linked?