fix: address monitor fourth review blockers
This commit is contained in:
@@ -2176,7 +2176,7 @@ function compactWebObserveAnalyzePayloadForRaw(payload: Record<string, unknown>,
|
||||
};
|
||||
}
|
||||
|
||||
function compactWebObserveAnalyzeAnalysisForRaw(analysis: Record<string, unknown>): Record<string, unknown> {
|
||||
export function compactWebObserveAnalyzeAnalysisForRaw(analysis: Record<string, unknown>): Record<string, unknown> {
|
||||
const counts = recordValue(analysis.counts);
|
||||
const archiveSummary = recordValue(analysis.archiveSummary);
|
||||
const requestRate = recordValue(analysis.requestRate);
|
||||
@@ -2217,8 +2217,10 @@ function compactWebObserveAnalyzeAnalysisForRaw(analysis: Record<string, unknown
|
||||
})),
|
||||
findings,
|
||||
archiveRedFindings,
|
||||
reportJsonPath: stringOrNullValue(analysis.reportJsonPath),
|
||||
reportJsonSha256: stringOrNullValue(analysis.reportJsonSha256),
|
||||
reportJsonPath: stringOrNullValue(analysis.reportJsonPath) ?? stringOrNullValue(recordValue(analysis.analyzer).reportJsonPath),
|
||||
reportJsonSha256: stringOrNullValue(analysis.reportJsonSha256) ?? stringOrNullValue(recordValue(analysis.analyzer).reportJsonSha256),
|
||||
reportJsonBytes: numberOrNullValue(analysis.reportJsonBytes) ?? numberOrNullValue(recordValue(analysis.analyzer).reportJsonBytes),
|
||||
reportUpdatedAt: stringOrNullValue(analysis.reportUpdatedAt) ?? stringOrNullValue(analysis.updatedAt) ?? stringOrNullValue(analysis.analyzedAt) ?? stringOrNullValue(recordValue(analysis.analyzer).reportUpdatedAt) ?? stringOrNullValue(recordValue(analysis.analyzer).updatedAt) ?? stringOrNullValue(recordValue(analysis.analyzer).analyzedAt),
|
||||
reportMdPath: stringOrNullValue(analysis.reportMdPath),
|
||||
reportMdSha256: stringOrNullValue(analysis.reportMdSha256),
|
||||
analyzer: compactWebObserveAnalyzeAnalyzerForRaw(analysis.analyzer),
|
||||
@@ -2357,7 +2359,7 @@ function compactWebObserveAnalyzeFailureForRaw(value: unknown): Record<string, u
|
||||
};
|
||||
}
|
||||
|
||||
function compactWebObserveAnalyzeAnalyzerForRaw(value: unknown): Record<string, unknown> {
|
||||
export function compactWebObserveAnalyzeAnalyzerForRaw(value: unknown): Record<string, unknown> {
|
||||
const analyzer = recordValue(value);
|
||||
return {
|
||||
exitCode: numberOrNullValue(analyzer.exitCode),
|
||||
@@ -2365,6 +2367,7 @@ function compactWebObserveAnalyzeAnalyzerForRaw(value: unknown): Record<string,
|
||||
stdoutBytes: numberOrNullValue(analyzer.stdoutBytes),
|
||||
stderrBytes: numberOrNullValue(analyzer.stderrBytes),
|
||||
reportJsonBytes: numberOrNullValue(analyzer.reportJsonBytes),
|
||||
reportUpdatedAt: stringOrNullValue(analyzer.reportUpdatedAt) ?? stringOrNullValue(analyzer.updatedAt) ?? stringOrNullValue(analyzer.analyzedAt),
|
||||
reportMdBytes: numberOrNullValue(analyzer.reportMdBytes),
|
||||
transportExitCode: numberOrNullValue(analyzer.transportExitCode),
|
||||
transportTimedOut: analyzer.transportTimedOut === true,
|
||||
|
||||
Reference in New Issue
Block a user