-
Notifications
You must be signed in to change notification settings - Fork 777
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
ObserverThought reproduce migration script #1338
ObserverThought reproduce migration script #1338
Conversation
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.
❌ Changes requested. Reviewed everything up to 2d726bf in 31 seconds
More details
- Looked at
97
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_U4C7Zwo7CiYTCyZL
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
@@ -73,31 +78,19 @@ def upgrade() -> None: | |||
op.add_column("artifacts", sa.Column("workflow_run_block_id", sa.String(), nullable=True)) | |||
op.add_column("artifacts", sa.Column("observer_cruise_id", sa.String(), nullable=True)) | |||
op.create_index("org_workflow_run_index", "artifacts", ["organization_id", "workflow_run_id"], unique=False) | |||
op.create_foreign_key(None, "artifacts", "observer_cruises", ["observer_cruise_id"], ["observer_cruise_id"]) |
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.
Using None
for foreign key constraint names can make it difficult to identify constraints later. Consider providing explicit names for these constraints.
2d726bf
to
94aebe6
Compare
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.
👍 Looks good to me! Incremental review on 94aebe6 in 26 seconds
More details
- Looked at
58
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_ggCCGhLsTB6Ylo6g
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Add
ObserverCruise
andObserverThought
entities with new columns and foreign keys to support enhanced artifact tracking.workflow_run_block_id
andobserver_cruise_id
columns toartifacts
table in Alembic migration script.observer_cruises
andobserver_thoughts
tables with relevant foreign key constraints in Alembic migration script.artifacts
table to reference new tables.workflow_run_block_id
toObserverThought
class inmodels.py
.ObserverCruise
andObserverThought
classes inmodels.py
with appropriate fields and foreign keys.This description was created by for 94aebe6. It will automatically update as commits are pushed.