-
Notifications
You must be signed in to change notification settings - Fork 1
Add unbounded sessions #205
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
973b924
Add unbounded sessions
DaymasS 6895ed9
Add unbounded sessions
DaymasS 614a7e7
Fix session scopes
DaymasS 3ba3638
Fixes for unbounded sessions
DaymasS 8835c69
Add tests for unbounded sessions
DaymasS c7dd95c
Merge branch 'main' into Add-unbounded-sessions
DaymasS 6a2d871
Fix tests
DaymasS 4560805
Temp Pydantic fix
DaymasS 0f6a3fd
Merge branch 'main' into Add-unbounded-sessions
DaymasS 0640421
Merge
DaymasS 6b4a3cf
Test fix
DaymasS 8a9f1f9
Merge branch 'main' into Add-unbounded-sessions
DaymasS 440adb4
Fix unbounded for login
DaymasS 198fbf1
Minor style fix
DaymasS 7a69b84
Merge branch 'main' into Add-unbounded-sessions
DaymasS e287390
Fix get name and group from lk.msu (#219) (#222)
DaymasS 7d62c75
Merge branch 'main' into Add-unbounded-sessions
DaymasS 45cb217
Minor style fix
DaymasS 6f1fbd2
Fix unbounded bug
DaymasS 29baeb7
Fix migrations
DaymasS 711c048
Default unbounded to false
DaymasS c65a80c
Merge branch 'main' into Add-unbounded-sessions
DaymasS 5d695b0
Merge branch 'main' into Add-unbounded-sessions
DaymasS 30f8447
merge migrations
DaymasS 0303cef
merge migrations lint
DaymasS 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
27 changes: 27 additions & 0 deletions
27
migrations/versions/6dffd8e42152_193_add_unbounded_sessions.py
This file contains hidden or 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,27 @@ | ||
| """193 Add unbounded sessions | ||
|
|
||
| Revision ID: 6dffd8e42152 | ||
| Revises: 2d29fc132e89 | ||
| Create Date: 2024-08-19 19:27:25.867548 | ||
|
|
||
| """ | ||
|
|
||
| import sqlalchemy as sa | ||
| from alembic import op | ||
|
|
||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = '6dffd8e42152' | ||
| down_revision = '2d29fc132e89' | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade(): | ||
| op.add_column('user_session', sa.Column('is_unbounded', sa.Boolean(), nullable=True)) | ||
| op.execute("UPDATE user_session SET is_unbounded='false'") | ||
| op.alter_column('user_session', 'is_unbounded', nullable=False) | ||
|
|
||
|
|
||
| def downgrade(): | ||
| op.drop_column('user_session', 'is_unbounded') |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.