adobe / aio-cli-plugin-app

Create, Build and Deploy Cloud Native Applications
Apache License 2.0
19 stars 35 forks source link

Update aio app add events to fetch events templates from Template Registry #710

Closed sangeetha5491 closed 1 year ago

sangeetha5491 commented 1 year ago

Implement aio app add event/events to fetch Event related templates from Template registry

Description

Template selection criteria: ['events', 'helper-template'] Events template require an addtional template option: 'full-key-to-events-manifest' skip prompt is set to false always for events templates since it will otherwise fail to install the template, and there can be no default values except for registration name and description when it comes to events templates.

This new feature for template selection for events is enabled only on passing the --allowEventsTemplates flag. This is a temporary flag that will be removed once the events templates are ready to be enabled. On setting the flag to false, the old implementation of installing publish-actions will continue to work as before.

Related Issue

https://github.com/adobe/generator-add-publish-events https://github.com/adobe/generator-add-events-generic

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist:

codecov[bot] commented 1 year ago

Codecov Report

Merging #710 (9bfc568) into master (1aa5f5d) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #710   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           57        57           
  Lines         3169      3199   +30     
  Branches       596       603    +7     
=========================================
+ Hits          3169      3199   +30     
Files Changed Coverage Δ
src/BaseCommand.js 100.00% <100.00%> (ø)
src/commands/app/add/event.js 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more