Record which inputs a run's caller passed, and mark defaults from it
`Run.passed` (migration d5a3c8e1f246) keeps the names the caller chose, so the run detail and the comparison table can mark a value as the flow's own again; rows from before it fall back to the names their params lack. Retries hand on their parent's list, imports record their entry's. Also: a cancel of a queued run no longer leaves its id in `_cancelled`, a linked comparison no longer crashes before the list loads, and the pre-commit failures are fixed (stale client, `text-[10px]`, worker formatting).
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
"""run.passed
|
||||
|
||||
A run's params hold every input it started from, declared values included, so
|
||||
the record could no longer tell an input left at the flow's default from one
|
||||
the caller chose. The names the caller passed go beside them.
|
||||
|
||||
Revision ID: d5a3c8e1f246
|
||||
Revises: c4e9a2f7b318
|
||||
Create Date: 2026-10-05
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = "d5a3c8e1f246"
|
||||
down_revision = "c4e9a2f7b318"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# Nullable: a run submitted before this did not record it, and null is that
|
||||
# rather than a run that was passed nothing.
|
||||
op.add_column("run", sa.Column("passed", sa.JSON(), nullable=True))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column("run", "passed")
|
||||
Reference in New Issue
Block a user