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

Don't rate limit if no CLI is installed #2294

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

robertbrignull
Copy link
Contributor

This PR helps to avoid a specific case where your managed CodeQL CLI gets uninstalled (not sure how, but it can happen during extension upgrades) and then the extension refuses to install a new one because it tried that within the last 24 hours. This PR makes it so that if no CLI is installed then it'll always try installing one.

I'm able to reproduce the bug easily by adding a simple "removeDatabase" command. I didn't include it in this screenshot but the extension fails to load and you're totally stuck.
Screenshot 2023-04-11 at 12 41 19

With this PR it always installs the CLI if it couldn't find one.
Screenshot 2023-04-11 at 12 44 15

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.

@robertbrignull robertbrignull requested a review from a team as a code owner April 11, 2023 11:51
Copy link
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.

Looks sensible to me!

@robertbrignull robertbrignull merged commit 048428b into main Apr 11, 2023
@robertbrignull robertbrignull deleted the robertbrignull/no_distribution_install branch April 11, 2023 15:18
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