Skip to content

Convert opening variant analysis logs to a command#1952

Merged
robertbrignull merged 1 commit intomainfrom
robertbrignull/open_logs_command
Jan 11, 2023
Merged

Convert opening variant analysis logs to a command#1952
robertbrignull merged 1 commit intomainfrom
robertbrignull/open_logs_command

Conversation

@robertbrignull
Copy link
Copy Markdown
Contributor

Moves the work for opening the logs for a variant analysis into a command. The primary motivation here is to get telemetry logged for it. The alternative would be outputting telemetry explicitly, but using a command seems cleaner, and makes the code more reusable.

This only affects when opening the logs from the variant analysis results webview. The query history has its own implementation. We could look at unifying these implementations but I think we should wait until the remote queries code has been deleted first.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

Copy link
Copy Markdown
Contributor

@charisk charisk left a comment

Choose a reason for hiding this comment

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

LGTM!

await cancelVariantAnalysis(credentials, variantAnalysis);
}

public async openVariantAnalysisLogs(variantAnalysisId: number) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We could add an integration test for this function, but it doesn't have to be part of this PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point. I'll look at doing that in a followup

@robertbrignull robertbrignull merged commit e163e06 into main Jan 11, 2023
@robertbrignull robertbrignull deleted the robertbrignull/open_logs_command branch January 11, 2023 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants