refactor: first pass at adding pg commands from pg-extras plugin to cli PR 1 of 3#3770
Open
jdodson wants to merge 4 commits into
Open
refactor: first pass at adding pg commands from pg-extras plugin to cli PR 1 of 3#3770jdodson wants to merge 4 commits into
jdodson wants to merge 4 commits into
Conversation
Add postgres words to cspell dictionary
…without approval from UX.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
We need to move the commands from the pg-extras plugin to the core CLI, which will require us to update the commands to use oclif/core v4 and heroku-cli-command v12.
This is PR 1 of 3 to accomplish this task and we will be merging these PRs in feature/migrate_pg_extras_to_cli
Things done:
This work item covers migrating the following 6 pg-extras commands to the core CLI:
ALSO did:
Type of Change
Breaking Changes (major semver update)
!after your change type to denote a change that breaks current behaviorFeature Additions (minor semver update)
Patch Updates (patch semver update)
Testing
Notes:
The --help changes (should be limited to --prompt and GLOBAL FLAGS additions that came with cli upgrades) ALSO examples as the cli requires:
diff <(./bin/run pg:cache-hit --help) <(heroku pg:cache-hit --help)
diff <(./bin/run pg:calls --help) <(heroku pg:calls --help)
diff <(./bin/run pg:extensions --help) <(heroku pg:extensions --help)
diff <(./bin/run pg:fdwsql --help) <(heroku pg:fdwsql --help)
diff <(./bin/run pg:index-size --help) <(heroku pg:index-size --help)
diff <(./bin/run pg:index-usage --help) <(heroku pg:index-usage --help)
New Command Testing Steps:
ratio)
./bin/run pg:cache-hit -a $APP
./bin/run pg:cache_hit -a $APP
descending; tables with no scans show Insufficient data)
./bin/run pg:index-usage -a $APP
./bin/run pg:index_usage -a $APP
./bin/run pg:index-size -a $APP
./bin/run pg:index_size -a $APP
plpgsql row)
./bin/run pg:extensions -a $APP
./bin/run pg:calls -a $APP
./bin/run pg:calls --truncate -a $APP
./bin/run pg:fdwsql example_prefix -a $APP
./bin/run pg:cache-hit DATABASE_URL -a $APP
./bin/run pg:fdwsql example_prefix DATABASE_URL -a $APP
Screenshots (if applicable)
Related Issues
GUS work item: https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE00002Yzk1lYAB/view