Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Conversation

@kevinzwhuang
Copy link

Summary:

  • Fix missing pg command CLI description
  • Fix missing pg:copy command CLI description

Currently in the heroku CLI, the root heroku help outputs a list of commands with their descriptions, with the pg command missing a description.
Screenshot:
screenshot from 2016-11-28 14-52-28

The same is also true for heroku help pg, where the pg:copy command is missing a description as well.
Screenshot:
screenshot from 2016-11-28 14-52-56

Changes Proposed:

The pg command is missing its description possibly due to the fact that the class is split between pg_backups.rb and pg.rb - where the description is present in pg.rb and absent in pg_backups.rb. Copying the description over to pg_backups.rb fixes the missing pg description.

The description for the pg:copy command 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 help CLI once this fix is built:
screenshot from 2016-11-28 14-54-41

screenshot from 2016-11-28 14-54-59


cc: @dickeyxxx @ransombriggs

Maciek Sakrejda and others added 30 commits October 5, 2015 16:32
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
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.
Jeff Dickey and others added 29 commits July 22, 2016 09:19
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.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.