-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to shut down external transfers using client/cli scripts (#…
…105) * Add client ability to shut down transfers without configuration edits * Actually add the sub-parser to CLI * Add docs * Apply suggestions from code review Co-authored-by: Ioannis Paraskevakos <[email protected]> * Add mutually exclusive group --------- Co-authored-by: Ioannis Paraskevakos <[email protected]>
- Loading branch information
Showing
13 changed files
with
364 additions
and
3 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
alembic/versions/1def8c988372_add_librarian_transfer_toggling.py
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,29 @@ | ||
# Copyright 2017 the HERA Collaboration | ||
# Licensed under the 2-clause BSD License. | ||
|
||
"""Add librarian transfer toggling | ||
Revision ID: 1def8c988372 | ||
Revises: 42f29c26ab0f | ||
Create Date: 2024-11-11 15:09:12.578181 | ||
""" | ||
import sqlalchemy as sa | ||
|
||
from alembic import op | ||
|
||
revision = "1def8c988372" | ||
down_revision = "42f29c26ab0f" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.batch_alter_table("librarians") as batch_op: | ||
batch_op.add_column( | ||
sa.Column("transfers_enabled", sa.Boolean(), nullable=False, default=True) | ||
) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column("librarians", "transfers_enabled") |
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
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
Oops, something went wrong.