A run keeps the inputs its flow declared at submit
Run.declared (migration 2e7ca7d10044) snapshots the declarations on submit and import. The run detail's Inputs panel reads them, and a run from before falls back to the flow's current declarations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
"""run.declared
|
||||
|
||||
The inputs the flow declared when a run was submitted, so its record reads
|
||||
against that version of the flow and not against whatever the flow declares
|
||||
now.
|
||||
|
||||
Revision ID: 2e7ca7d10044
|
||||
Revises: 930ffa094aad
|
||||
Create Date: 2026-10-15
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = "2e7ca7d10044"
|
||||
down_revision = "930ffa094aad"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# Nullable: a run submitted before this kept no snapshot, and its readers
|
||||
# fall back to the flow's current declarations.
|
||||
op.add_column("run", sa.Column("declared", sa.JSON(), nullable=True))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column("run", "declared")
|
||||
Reference in New Issue
Block a user