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

fix: support hooks for deployRecentValidation and async deploys #75

Merged
merged 1 commit into from
May 4, 2021

Conversation

WillieRuemmele
Copy link
Contributor

What does this PR do?

adds postdeploy hook to quickdeploys
adds predeploy hook to async deploys

What issues does this PR fix or reference?

@W-9177575@

@WillieRuemmele WillieRuemmele requested a review from shetzel May 4, 2021 20:52
Copy link
Contributor

@peternhale peternhale left a comment

Choose a reason for hiding this comment

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

Just a nit.

await this.lifecycle.emit('predeploy', cs.toArray());
if (this.isAsync) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@WillieRuemmele since this will fail the command, why not move this just after this.isAsync is assigned?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is where it should be when async deploys are coded. Unit tests can ensure that the ComponentSetBuilder is called as expected even with it throwing.

@shetzel shetzel merged commit ac787f9 into main May 4, 2021
@shetzel shetzel deleted the wr/asyncHooks branch May 4, 2021 23:45
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