GithubHelp home page GithubHelp logo

heroku / heroku-connect-plugin Goto Github PK

View Code? Open in Web Editor NEW
23.0 95.0 7.0 583 KB

CLI plugin for Heroku Connect (experimental)

License: Apache License 2.0

JavaScript 100.00%
heroku heroku-cli-plugin heroku-connect

heroku-connect-plugin's People

Contributors

alouie-sfdc avatar cafreeman avatar codingjoe avatar dependabot[bot] avatar fivetanley avatar gulopine avatar iamjem avatar jdx avatar jheikes515 avatar kennyp avatar kenyaplenty avatar lambacck avatar mattrothenberg avatar mimen avatar scottpersinger avatar sigmavirus24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heroku-connect-plugin's Issues

Capture useful trigger log queries

There's lots of useful queries for exploring the trigger log table that we seem to provide to customers regularly. If we could capture those in CLI commands that could be really useful.

Add --json to commands where appropriate

Other CLI commands offer a --json option to dump API output directly to the console, where it can be consumed by tools like jq for more advanced scripting. We should do that at least with connect:info, and other commands as appropriate.

Upgrade to the v6 structure

Heroku CLI v6 plugins use a very different code format for defining commands and command options. We should upgrade to this structure as well, to start taking advantage of newer features.

In particular, command flags can now be complicated pieces of functionality that can intelligently choose defaults, interactively prompt for options and provide custom objects to the rest of the function. The app flag is a good example of this, and can serve as a template for how we can reimplement our resource flag, and perhaps contribute it back to the core codebase once we have a good implementation.

Add a connect:list command

Currently, connect:info lists very basic information about every Heroku Connect connection on an app. With #67, that'll be harder to make readable, and I'm not convinced this is a good idea anyway. Instead, we should add a separate connect:list command that lists all the connections using a table, something like this:

<customer's defined name> | <our guid> | <resource name>

add -x or similar command to get deep=true info

It would be great if there was a way to pass a flag to connect:info to get the rest of the information that comes with deep=true. This would be especially handy for the case of having to use sudo to get at customer info like row counts without having to fight with API tokens and curl.

Db-set command not working

Hi, I'm currently using your plugin and it is very useful! :)
but when I try to use db-set command I always get an error before trying to set the database.
Screen Shot 2020-02-10 at 13 31 40

However, I could do it through the endpoint using directly curl.

It seems to me that the problem is on this method fetchKeys and maybe the error was introduced when doing this change on the db-set.js file but I'm not completely sure.
Screen Shot 2020-02-10 at 13 34 58

I wanted to let you know about it. Thanks in advance!

Add mapping validation

Hi,

currently when you import a new mapping, there is not way to know if it will actually work or not. The mapping will always be accepted and eventually your connection state will switch to error.

That behavior makes deployments ever so more risky. Therefore I would suggest to add a new command, something like connect:validate FILE to send a file via API and wait for a response if the mapping could be successfully applied based on the connected Salesforce instance.

I am aware that there are certain limitations that can not easily be overcome, due to the Salesforce API.
But the Heroku Connect interface has a fairly good understanding of the Object and fields structure of the salesforce instance. It is also aware of certain constrains and even displays warnings.

I would assume that this information could be made accessible via the API. But I would suggest to keep it simple. Any kind of validation is better then none. This would be our priority list:

  1. Objects and Fields exist
  2. Required fields are in the mapping
  3. Required indexes are added
  4. Polling is not available

I hope that helps a bit, we would certainly appreciate such a feature. We could build the plugin part, but you guys need to provide the API.

Best
-Joe

Cannot read property 'length' of undefined

Hello,

I'm trying to diagnose the connection as described in here, by running heroku connect:diagnose --verbose, but it returns an error

Diagnosing connection... done

=== Connection: magellan-jets-api
▸    Cannot read property 'length' of undefined

Here is a workaround I received from support heroku connect:mapping:diagnose user

Move commands to top-level commands directory

It seems that the current best practice for heroku cli plugins is to use a top level commands and a top-level lib directory that contains the helper utilities for the commands. Currently our commands directory is under lib.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.