heroku / heroku-connect-plugin

CLI plugin for Heroku Connect (experimental)
Apache License 2.0
23 stars 8 forks source link

POC: Add connect:mapping:write-errors #79

Closed sigmavirus24 closed 6 years ago

sigmavirus24 commented 6 years ago

This allows customers to retrieve write errors from the API as a proof-of-concept of how to view write-errors not in the dashboard and not via PSQL

gulopine commented 6 years ago

This looks pretty good, actually. CI is complaining about a couple nits, but the only thing I'd add is that this should probably also include a --json option, which can dump the JSON out using cli.styledJSON(errors) directly.

sigmavirus24 commented 6 years ago

We could start with this, and then move onto using whatever pg:psql uses to query both _trigger_log and _trigger_log_archive. Later. This has the benefit of providing us a nice table though :)

sigmavirus24 commented 6 years ago

👀 Fixed the standard JS problems and added --json