Governance: a version lists only the routines its run recorded
Not every model has each of the five routines, and the registry doesn't require them; the dialog showed the missing
ones as failures. It now lists the recorded ones and says so when there are none.
(cherry picked from commit b5bff7e0c6)
This commit is contained in:
@@ -55,7 +55,10 @@ export class ModelVersionDialog {
|
||||
private readonly version = inject<ModelVersion>(MAT_DIALOG_DATA);
|
||||
private readonly dialog = inject(MatDialog);
|
||||
|
||||
readonly routineKinds = ROUTINES;
|
||||
/** The routines the run recorded, in `ROUTINES`' order; the others aren't listed. */
|
||||
recordedRoutines(routines: ModelLineage['routines']) {
|
||||
return ROUTINES.filter((r) => routines[r.kind]).map((r) => ({ ...r, record: routines[r.kind]! }));
|
||||
}
|
||||
readonly lineage = signal<ModelLineage | null>(null);
|
||||
readonly busy = signal(false);
|
||||
readonly error = signal<string | null>(null);
|
||||
|
||||
Reference in New Issue
Block a user