Make 'log' field non-nullable again.

This commit is contained in:
Asger F
2024-11-19 11:12:21 +01:00
parent fa3e3ff669
commit 4e32a108a6
3 changed files with 11 additions and 15 deletions

View File

@@ -32,13 +32,15 @@ export function mapLocalQueryItemToDomainModel(
localQuery.failureReason,
localQuery.completedQuery &&
mapCompletedQueryInfoToDomainModel(localQuery.completedQuery),
{
log: localQuery.evalLogLocation,
humanReadableSummary: localQuery.evalLogSummaryLocation,
jsonSummary: localQuery.jsonEvalLogSummaryLocation,
summarySymbols: localQuery.evalLogSummarySymbolsLocation,
endSummary: undefined,
},
localQuery.evalLogLocation
? {
log: localQuery.evalLogLocation,
humanReadableSummary: localQuery.evalLogSummaryLocation,
jsonSummary: localQuery.jsonEvalLogSummaryLocation,
summarySymbols: localQuery.evalLogSummarySymbolsLocation,
endSummary: undefined,
}
: undefined,
);
}

View File

@@ -200,13 +200,7 @@ export class LocalQueryInfo {
private cancellationSource?: CancellationTokenSource, // used to cancel in progress queries
public failureReason?: string,
public completedQuery?: CompletedQueryInfo,
public evalutorLogPaths: EvaluatorLogPaths = {
log: undefined,
humanReadableSummary: undefined,
endSummary: undefined,
jsonSummary: undefined,
summarySymbols: undefined,
},
public evalutorLogPaths?: EvaluatorLogPaths,
) {
/**/
}

View File

@@ -45,7 +45,7 @@ import type { ProgressCallback } from "./common/vscode/progress";
* Holds the paths to the various structured log summary files generated for a query evaluation.
*/
export interface EvaluatorLogPaths {
log: string | undefined;
log: string;
humanReadableSummary: string | undefined;
endSummary: string | undefined;
jsonSummary: string | undefined;