Giter Club home page Giter Club logo

aio-cli-plugin-events's People

Contributors

adobe-bot avatar amulyakashyap09 avatar arjuncooliitr avatar dependabot[bot] avatar fe-lix- avatar florind12 avatar greenkeeper[bot] avatar michaelgoberling avatar moritzraho avatar purplecabbage avatar sandeep-paliwal avatar sangeetha5491 avatar shazron avatar shikhartanwar avatar

Stargazers

 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

aio-cli-plugin-events's Issues

`TypeError: Help is not a constructor` on all event command.

Expected Behaviour

Running aio event should print the help page of the aio event plugin.

Actual Behaviour

$ aio event
    TypeError: Help is not a constructor

Steps to Reproduce

$ npm install -g @adobe/aio-cli 
[...]
$  aio plugins install @adobe/aio-cli-plugin-events
Installing plugin @adobe/aio-cli-plugin-events... installed v1.1.5
$ aio event
    TypeError: Help is not a constructor
$ aio plugins
@adobe/aio-cli-plugin-events 1.1.

Platform and Version

$ npm -v
8.5.1
$ node -v
v17.6.0

Logs taken while reproducing problem

TypeError: Help is not a constructor
(node:74901) WARNING: Exited the environment with code 1
    at exit (node:internal/process/per_thread:194:13)
    at /opt/homebrew/lib/node_modules/@adobe/aio-cli/node_modules/@oclif/errors/lib/handle.js:28:37

Better feedback when commands fail

I would suggest, to make the cli commands a bit more consistent, verbose and failsafe.

Consistency: Some aio-cli commands take "json" files as input, some are interactive. It's better to have both options in all commands. If I had to choose, I'd prefer the non-interactive way - because that can be scripted (e.g. for ci/cd)

Failsafe: If Event-Metadata is mandatory, why not have it created with aio event provider create in one command? If there is a usecase for metadata-less providers, this could be done with a flag in the command (--nometadata) .. everything else will yield an error ("please provide metadata")..

Verboseness: The provider create command could create a hint ("Don't forget to register metadata"); the provider list could have a column for "metadata" or "metadata missing".

Verboseness: When registering an event (listener) and the provider does not have metadata or the event-code to be registered is not provided we should not return a 400-bad request but what specifically went wrong. If the underlying API does not provide that information, the client could provide some hints ("please check if the provider has metadata and it aligns with the event metadata you are registering for")

npm publish failing

via Github Actions token publish. Most probably 2FA needs to be turned off for the repo.

documentation of delivery_type and webhoook_url

I don't get the point of

 BODYJSONFILE
      Path to a file in JSON format with the information to create a new Event Registration.
      The JSON should follow the following format:
      {
         "name": "<event registration name>",
         "description": "<event registration description>",
         "delivery_type": "WEBHOOK|WEBHOOK_BATCH|JOURNAL",
         "webhook_url": "<webhook URL responding to challenge>"
         "events_of_interest": [{
           "provider_id": "<event provider id>"
           "event_code": "<event provider event_code metadata>"
         }, { <...more events> }]
      }
  1. When I choose "JOURNAL" is "webhoook_url" optional (if so.. please document)
  2. I thought that each provider registration implicitly creates a Journal. Where is the point in creating a Journal Event Registration?

@adobe/aio-lib-ims will require node-12 or greater starting July 14th, 2021

Your module is dependent on @adobe/aio-lib-ims.

Adobe IMS is retiring TLS 1.0 and TLS 1.1 support on July 14th, 2021.
TLSv1.2 is the default for node-12 or higher: https://nodejs.org/api/cli.html#cli_tls_min_v1_2

Therefore any calls to Adobe IMS using @adobe/aio-lib-ims using node-10 will fail after the retirement date above.

This module should impose a minimum requirement of node-12 going forward.

Add this to your package.json:

{
   "engineStrict": true, 
   "engines" : { 
         "node" : ">=12" 
    }
}

error: credential already exists

Failed to add event to app ..
aio app init
aio app add events

✔ Finished running template @adobe/generator-add-events-generic
 ›   Error: [CoreConsoleAPISDK:ERROR_CREATE_OAUTH_SERVER_TO_SERVER_CREDENTIAL] 409 - Conflict 
 ›   ({"id":"XwuODNm97cd5Nrpw1vtgtfbEhCXQ6RFn","messages":[{"template":"ERR_MSG_CONFLICT","message":"Credential already exists"}]})

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.