Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement pre-undeploy-event-reg hook to undeploy event registrations #65

Merged
merged 7 commits into from
Jul 20, 2023

Conversation

sangeetha5491
Copy link
Contributor

@sangeetha5491 sangeetha5491 commented Jul 14, 2023

Description

Undeploy event registrations in the pre-undeploy-event-reg hook

Related Issue

Is Blocked By

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@sangeetha5491 sangeetha5491 marked this pull request as draft July 14, 2023 07:35
@sangeetha5491 sangeetha5491 marked this pull request as ready for review July 14, 2023 08:54
@sangeetha5491 sangeetha5491 changed the base branch from master to CI-5884 July 14, 2023 08:55
@sangeetha5491 sangeetha5491 changed the base branch from CI-5884 to master July 14, 2023 13:06
@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Merging #65 (00a922e) into master (7fb5778) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #65   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           24        25    +1     
  Lines          611       633   +22     
  Branches        82        87    +5     
=========================================
+ Hits           611       633   +22     
Impacted Files Coverage Δ
src/hooks/pre-undeploy-event-reg.js 100.00% <100.00%> (ø)
src/hooks/utils/hook-utils.js 100.00% <100.00%> (ø)

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

Copy link
Member

@purplecabbage purplecabbage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

* @param {object} appConfigRoot.appConfig - Object containing events and project details
* @param {object} appConfigRoot.appConfig.project - Project details from the .aio file
* @param {object} appConfigRoot.appConfig.events - Events registrations that are part of the app.config.yaml file
* @param {string} hookType - pre-deploy-event-reg or post-deploy-event-reg hook values
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need this anymore ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hookType that is, since its always gonna be pre-deploy-event-reg now ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@sangeetha5491 sangeetha5491 merged commit 547c011 into master Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants