This repository was archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 379
Fix missing heroku help descriptions for pg and pg:copy commands
#2040
Open
kevinzwhuang
wants to merge
1,360
commits into
heroku:master
Choose a base branch
from
kevinzwhuang:missing-pg-help
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
Since Postgres backups are tied to the app and not the add-on, but we require *an* add-on to interact with, make sure that that add-on is attached to the right app.
…achable-resources-issues Improve handling of shareable add-ons w.r.t. Postgres backups
update asynchronously
since they happen asynchronously now
remove all files when uninstalling on windows
do not delete v4 if error reading commands
fix localappdata with non-ascii characters
…gnose Remove 9.1 warning on pg:diagnose output
list all commands for v4 help
This removes the use of the merged v3.domain-cname API variant and replaces it with the mainline v3 API.
right now these are ignored because they are flagged as hidden in the new CLI. Really though we don't want these hidden, so adding this exception in allows us to show the commands in the new CLI and still have the old one keep the old functionality.
caller gets this stacktrace: ``` SSL_connect SYSCALL returned=5 errno=0 state=unknown state /usr/lib/ruby/2.1.0/net/http.rb:920:in `connect' /usr/lib/ruby/2.1.0/net/http.rb:920:in `block in connect' /usr/lib/ruby/2.1.0/timeout.rb:76:in `timeout' /usr/lib/ruby/2.1.0/net/http.rb:920:in `connect' /usr/lib/ruby/2.1.0/net/http.rb:863:in `do_start' /usr/lib/ruby/2.1.0/net/http.rb:852:in `start' /usr/local/heroku/vendor/gems/rest-client-1.6.8/lib/restclient/request.rb:206:in `transmit' /usr/local/heroku/vendor/gems/rest-client-1.6.8/lib/restclient/request.rb:68:in `execute' /usr/local/heroku/vendor/gems/rest-client-1.6.8/lib/restclient/request.rb:35:in `execute' /usr/local/heroku/vendor/gems/rest-client-1.6.8/lib/restclient/resource.rb:51:in `get' /usr/local/heroku/lib/heroku/client/heroku_postgresql_backups.rb:55:in `block (2 levels) in http_get' /usr/local/heroku/lib/heroku/helpers.rb:126:in `retry_on_exception' /usr/local/heroku/lib/heroku/client/heroku_postgresql_backups.rb:54:in `block in http_get' /usr/local/heroku/lib/heroku/client/heroku_postgresql_backups.rb:106:in `checking_client_version' /usr/local/heroku/lib/heroku/client/heroku_postgresql_backups.rb:53:in `http_get' /usr/local/heroku/lib/heroku/client/heroku_postgresql_backups.rb:20:in `transfers_get' /usr/local/heroku/lib/heroku/command/pg_backups.rb:455:in `poll_transfer' /usr/local/heroku/lib/heroku/command/pg_backups.rb:444:in `restore_backup' /usr/local/heroku/lib/heroku/command/pg_backups.rb:81:in `backups' /usr/local/heroku/lib/heroku/command.rb:213:in `run' /usr/local/heroku/lib/heroku/cli.rb:34:in `start' /usr/local/heroku/bin/heroku:25:in `<main>' ```
* Update rest-client gem because security vulnerabilities * add credentials to webmock urls * Use url.parse & Addressable::Template * Fix CI build breakage by mocking when no netrc
* Monkey patch URI to split urls with addressable * Fixes bug where proxy url had underscore in it * Replace addressable with RFC3986_Parser from 2.3.1
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
pgcommand CLI descriptionpg:copycommand CLI descriptionCurrently in the heroku CLI, the root

heroku helpoutputs a list of commands with their descriptions, with thepgcommand missing a description.Screenshot:
The same is also true for

heroku help pg, where thepg:copycommand is missing a description as well.Screenshot:
Changes Proposed:
The
pgcommand is missing its description possibly due to the fact that the class is split betweenpg_backups.rbandpg.rb- where the description is present inpg.rband absent inpg_backups.rb. Copying the description over topg_backups.rbfixes the missingpgdescription.The description for the
pg:copycommand was formatted differently than the rest of the other regular subcommand descriptions, with the description written beneath the flag descriptions. Moving the main description immediately below the CLI definition fixed this problem.Screenshots of

heroku helpCLI once this fix is built:cc: @dickeyxxx @ransombriggs