-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: Store EvaluatorLogPaths object on LocalQueryInfo #3803
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -200,10 +200,13 @@ export class LocalQueryInfo { | |||||
private cancellationSource?: CancellationTokenSource, // used to cancel in progress queries | ||||||
public failureReason?: string, | ||||||
public completedQuery?: CompletedQueryInfo, | ||||||
public evalLogLocation?: string, | ||||||
public evalLogSummaryLocation?: string, | ||||||
public jsonEvalLogSummaryLocation?: string, | ||||||
public evalLogSummarySymbolsLocation?: string, | ||||||
public evalutorLogPaths: EvaluatorLogPaths = { | ||||||
log: undefined, | ||||||
humanReadableSummary: undefined, | ||||||
endSummary: undefined, | ||||||
jsonSummary: undefined, | ||||||
summarySymbols: undefined, | ||||||
}, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could this be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense 👍 |
||||||
) { | ||||||
/**/ | ||||||
} | ||||||
|
@@ -229,10 +232,7 @@ export class LocalQueryInfo { | |||||
|
||||||
/** Sets the paths to the various structured evaluator logs. */ | ||||||
public setEvaluatorLogPaths(logPaths: EvaluatorLogPaths): void { | ||||||
this.evalLogLocation = logPaths.log; | ||||||
this.evalLogSummaryLocation = logPaths.humanReadableSummary; | ||||||
this.jsonEvalLogSummaryLocation = logPaths.jsonSummary; | ||||||
this.evalLogSummarySymbolsLocation = logPaths.summarySymbols; | ||||||
this.evalutorLogPaths = logPaths; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
} | ||||||
|
||||||
/** | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we set this to
undefined
instead when theevalLogLocation
isundefined
?