-
Notifications
You must be signed in to change notification settings - Fork 168
fix(BA-4884): Incorrect types and fallback defaults in deployment conversion logic #9673
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
+81
−32
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
dc95d24
fix: Consider ExtraVFolderMountInput.mount_destination as required
jopemachine e85b802
chore: update api schema dump
jopemachine c95ffb3
WIP
jopemachine 330c839
chore: update api schema dump
jopemachine c0007c5
WIP
jopemachine cde6ee0
WIP
jopemachine 73bfe57
docs: Add news fragment
jopemachine 05dd450
WIP
jopemachine be99ddb
WIP
jopemachine 43b26e3
fix: Specify type
jopemachine 22eb8c4
fix: Migrate RoutingRow.created_at to non-nullble
jopemachine 70993ed
fix: Alembic script
jopemachine 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Incorrect types and fallback defaults in deployment conversion logic |
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
38 changes: 38 additions & 0 deletions
38
...end/manager/models/alembic/versions/b1009fe7f865_make_routings_created_at_non_nullable.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,38 @@ | ||
| """Make routings.created_at non-nullable | ||
|
|
||
| Revision ID: b1009fe7f865 | ||
| Revises: 0b1efbb2db84 | ||
| Create Date: 2026-03-06 04:11:09.336691 | ||
|
|
||
| """ | ||
|
|
||
| from alembic import op | ||
| from sqlalchemy.dialects import postgresql | ||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = "b1009fe7f865" | ||
| down_revision = "0b1efbb2db84" | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade() -> None: | ||
| # Fill any existing NULLs with now() before adding NOT NULL constraint | ||
| op.execute("UPDATE routings SET created_at = now() WHERE created_at IS NULL") | ||
| op.alter_column( | ||
| "routings", | ||
| "created_at", | ||
| existing_type=postgresql.TIMESTAMP(timezone=True), | ||
| nullable=False, | ||
| existing_server_default="now()", | ||
| ) | ||
jopemachine marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| def downgrade() -> None: | ||
| op.alter_column( | ||
| "routings", | ||
| "created_at", | ||
| existing_type=postgresql.TIMESTAMP(timezone=True), | ||
| nullable=True, | ||
| existing_server_default="now()", | ||
| ) | ||
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
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.