Skip to content

Open variant analysis view after submission#1553

Merged
koesie10 merged 2 commits intomainfrom
koesie10/show-variant-analysis-view
Oct 3, 2022
Merged

Open variant analysis view after submission#1553
koesie10 merged 2 commits intomainfrom
koesie10/show-variant-analysis-view

Conversation

@koesie10
Copy link
Copy Markdown
Member

This will open the variant analysis view after the variant analysis has been submitted. It will also show a notification that the analysis has been submitted, which includes the query name.

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.

@koesie10 koesie10 requested review from a team as code owners September 29, 2022 14:04
Comment thread extensions/ql-vscode/package.json Outdated
// The "openVariantAnalysisView" command is internal-only.
ctx.subscriptions.push(
commandRunner('codeQL.openVariantAnalysisView', async (variantAnalysisId: number) => {
const variantAnalysisView = new VariantAnalysisView(ctx, variantAnalysisId);
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.

What's the reason for having an internal-only command?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This mostly just follows the existing examples in the extension. For example, codeQL.copyRepoList and codeQL.autoDownloadRemoteQueryResults are both internal-only commands. I would suspect these were implemented as such so they can be easily called from anywhere in the extension.

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.

Cool, thanks for explaining 👍

This will open the variant analysis view after the variant analysis has
been submitted. It will also show a notification that the analysis has
been submitted, which includes the query name.
@koesie10 koesie10 force-pushed the koesie10/show-variant-analysis-view branch from d6e2ea4 to b5b3474 Compare September 30, 2022 15:04
@koesie10 koesie10 force-pushed the koesie10/show-variant-analysis-view branch from b3fcd4f to d33b07b Compare October 3, 2022 08:07
@koesie10 koesie10 merged commit 78a90ff into main Oct 3, 2022
@koesie10 koesie10 deleted the koesie10/show-variant-analysis-view branch October 3, 2022 09:21
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