-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bundle_replacements parameter to regenerate_bundle API
Adding support towards the specification of specific bundle replacements to perform when calling the `regenerate_bundle` API. Refers to CLOUDDST-14679 Signed-off-by: arewm <arewm@users.noreply.github.com>
- Loading branch information
Showing
7 changed files
with
108 additions
and
6 deletions.
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
26 changes: 26 additions & 0 deletions
26
iib/web/migrations/versions/a0eadb516360_update_regenerate_bundle_request_.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,26 @@ | ||
"""Update regenerate_bundle_request endpoint. | ||
Revision ID: a0eadb516360 | ||
Revises: 625fba6081be | ||
Create Date: 2022-09-06 15:00:55.115536 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'a0eadb516360' | ||
down_revision = '625fba6081be' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.batch_alter_table('request_regenerate_bundle', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('bundle_replacements', sa.String(), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
with op.batch_alter_table('request_regenerate_bundle', schema=None) as batch_op: | ||
batch_op.drop_column('bundle_replacements') |
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