refactor: add session and environment relationships to scenario run
- add sessionId optional column to ScenarioRunEntity - add ManyToOne relationship to EnvironmentEntity (with eager loading) - add ManyToOne relationship to SessionEntity (optional) - update ScenarioRun client types to include session and environment data - add environment name and session link to RunDetailPage - update UI to display save session, environment, and session info
This commit is contained in:
@@ -98,8 +98,11 @@ export interface ScenarioRun {
|
||||
id: string;
|
||||
scenarioId: string;
|
||||
environmentId: string;
|
||||
sessionId?: string | null;
|
||||
saveSession: boolean;
|
||||
scenario?: Pick<Scenario, 'id' | 'name'>;
|
||||
environment?: Pick<Environment, 'id' | 'name'>;
|
||||
session?: { id: string; sessionName: string };
|
||||
status: ScenarioRunStatus;
|
||||
stepRuns?: ScenarioRunStep[];
|
||||
createdAt: string;
|
||||
|
||||
Reference in New Issue
Block a user