-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve multiple CLI installations warning performance (#4999)
### WHY are these changes introduced? Checking for multiple installed CLIs is very expensive. ### WHAT is this pull request doing? Wraps the `showMultipleCLIWarningIfNeeded` function call with `runAtMinimumInterval` to ensure the warning is only checked once every 24 hours. ### How to test your changes? 1. Having a local CLI and a global CLI 2. Run `shopify app info`, you should see a warning 3. Run it again: no warning -> command runs faster ### Measuring impact How do we know this change was effective? Please choose one: - [x] n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix ### Checklist - [x] I've considered possible cross-platform impacts (Mac, Linux, Windows) - [x] I've considered possible [documentation](https://shopify.dev) changes
- Loading branch information
Showing
2 changed files
with
33 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters