-
Notifications
You must be signed in to change notification settings - Fork 219
Refactor: Store EvaluatorLogPaths object on LocalQueryInfo #3803
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
Conversation
Previously the fields from EvaluatorLogPaths were copied 1:1 into LocalQueryInfo but under different names. It seems easier to keep track of the different kinds of logs if they are called the same everywhere.
| 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be undefined by default instead? That would make the change for making log | undefined unnecessary as well.
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.
Makes sense 👍
| { | ||
| log: localQuery.evalLogLocation, | ||
| humanReadableSummary: localQuery.evalLogSummaryLocation, | ||
| jsonSummary: localQuery.jsonEvalLogSummaryLocation, | ||
| summarySymbols: localQuery.evalLogSummarySymbolsLocation, | ||
| endSummary: undefined, | ||
| }, |
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 the evalLogLocation is undefined?
| public evalLogSummaryLocation?: string, | ||
| public jsonEvalLogSummaryLocation?: string, | ||
| public evalLogSummarySymbolsLocation?: string, | ||
| public evalutorLogPaths?: EvaluatorLogPaths, |
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.
| public evalutorLogPaths?: EvaluatorLogPaths, | |
| public evaluatorLogPaths?: EvaluatorLogPaths, |
| 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 comment
The reason will be displayed to describe this comment to others. Learn more.
| this.evalutorLogPaths = logPaths; | |
| this.evaluatorLogPaths = logPaths; |
koesie10
left a comment
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.
Thanks!
|
Thanks for reviewing! |
Previously the fields from
EvaluatorLogPathswere copied 1:1 intoLocalQueryInfobut under different names. It seems easier to keep track of the different kinds of logs if they are called the same everywhere.