Skip to content
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

Merged
merged 4 commits into from
Nov 20, 2024

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Nov 13, 2024

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.

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.
@asgerf asgerf marked this pull request as ready for review November 18, 2024 07:53
@asgerf asgerf requested a review from a team as a code owner November 18, 2024 07:53
Comment on lines 203 to 209
public evalutorLogPaths: EvaluatorLogPaths = {
log: undefined,
humanReadableSummary: undefined,
endSummary: undefined,
jsonSummary: undefined,
summarySymbols: undefined,
},
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense 👍

Comment on lines 35 to 41
{
log: localQuery.evalLogLocation,
humanReadableSummary: localQuery.evalLogSummaryLocation,
jsonSummary: localQuery.jsonEvalLogSummaryLocation,
summarySymbols: localQuery.evalLogSummarySymbolsLocation,
endSummary: undefined,
},
Copy link
Member

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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public evalutorLogPaths?: EvaluatorLogPaths,
public evaluatorLogPaths?: EvaluatorLogPaths,

this.evalLogSummaryLocation = logPaths.humanReadableSummary;
this.jsonEvalLogSummaryLocation = logPaths.jsonSummary;
this.evalLogSummarySymbolsLocation = logPaths.summarySymbols;
this.evalutorLogPaths = logPaths;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
this.evalutorLogPaths = logPaths;
this.evaluatorLogPaths = logPaths;

Copy link
Member

@koesie10 koesie10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@asgerf
Copy link
Contributor Author

asgerf commented Nov 20, 2024

Thanks for reviewing!

@asgerf asgerf merged commit 46c284d into github:main Nov 20, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants