`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).
31 lines
769 B
Python
31 lines
769 B
Python
"""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")
|