feat(deployment-version): capture deployment version in log (#2304)

* feat(deployment-version): capture deployment version in log

* improvement: terminal store, logs version, toolbar

---------

Co-authored-by: Emir Karabeg <emirkarabeg@berkeley.edu>
This commit is contained in:
Waleed
2025-12-11 00:34:08 -08:00
committed by GitHub
parent 207a14970b
commit 3db8f82449
25 changed files with 8020 additions and 41 deletions

View File

@@ -0,0 +1,3 @@
ALTER TABLE "workflow_execution_logs" ADD COLUMN "deployment_version_id" text;--> statement-breakpoint
ALTER TABLE "workflow_execution_logs" ADD CONSTRAINT "workflow_execution_logs_deployment_version_id_workflow_deployment_version_id_fk" FOREIGN KEY ("deployment_version_id") REFERENCES "public"."workflow_deployment_version"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "workflow_execution_logs_deployment_version_id_idx" ON "workflow_execution_logs" USING btree ("deployment_version_id");

File diff suppressed because it is too large Load Diff

View File

@@ -841,6 +841,13 @@
"when": 1765339999291,
"tag": "0120_illegal_moon_knight",
"breakpoints": true
},
{
"idx": 121,
"version": "7",
"when": 1765434895472,
"tag": "0121_new_mantis",
"breakpoints": true
}
]
}

View File

@@ -293,6 +293,10 @@ export const workflowExecutionLogs = pgTable(
stateSnapshotId: text('state_snapshot_id')
.notNull()
.references(() => workflowExecutionSnapshots.id),
deploymentVersionId: text('deployment_version_id').references(
() => workflowDeploymentVersion.id,
{ onDelete: 'set null' }
),
level: text('level').notNull(), // 'info', 'error'
trigger: text('trigger').notNull(), // 'api', 'webhook', 'schedule', 'manual', 'chat'
@@ -311,6 +315,9 @@ export const workflowExecutionLogs = pgTable(
stateSnapshotIdIdx: index('workflow_execution_logs_state_snapshot_id_idx').on(
table.stateSnapshotId
),
deploymentVersionIdIdx: index('workflow_execution_logs_deployment_version_id_idx').on(
table.deploymentVersionId
),
triggerIdx: index('workflow_execution_logs_trigger_idx').on(table.trigger),
levelIdx: index('workflow_execution_logs_level_idx').on(table.level),
startedAtIdx: index('workflow_execution_logs_started_at_idx').on(table.startedAt),