Fix branch follower performance status visibility
This commit is contained in:
@@ -43,7 +43,7 @@ export function followerEvidenceSummary(input: {
|
||||
const refreshSourceCommit = stringOrNull(refresh?.sourceCommit);
|
||||
return {
|
||||
pipelineRunRefName: pipelineRefName,
|
||||
pipeline,
|
||||
pipeline: compactPipelineEvidence(pipeline),
|
||||
refreshBoundedReason: refresh === null ? "missing-from-live-and-stored-evidence" : null,
|
||||
refresh: refresh === null
|
||||
? null
|
||||
@@ -57,6 +57,18 @@ export function followerEvidenceSummary(input: {
|
||||
};
|
||||
}
|
||||
|
||||
function compactPipelineEvidence(value: Record<string, unknown> | null): Record<string, unknown> | null {
|
||||
if (value === null) return null;
|
||||
const metadata = asOptionalRecord(value.metadata);
|
||||
const spec = asOptionalRecord(value.spec);
|
||||
return {
|
||||
metadata: { name: stringOrNull(metadata?.name) },
|
||||
spec: {
|
||||
runtimeReadyTask: compactRefreshRuntimeReady(asOptionalRecord(spec?.runtimeReadyTask)),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
function compactRefreshRender(value: Record<string, unknown> | null): Record<string, unknown> | null {
|
||||
if (value === null) return null;
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user