Skip to content

Conversation

@dubee
Copy link
Member

@dubee dubee commented Nov 18, 2019

If for some reason a trigger is deleted, but the corresponding feed is not, allow a trigger in the same namespace with the same trigger name to be recreated with the existing feed.

reject(err);
if(err.statusCode && err.statusCode === 409) {
this.getTrigger(params.triggerName)
.then(() => this.disableTrigger(params.triggerName))
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't understand why all this async stuff is going on when the entire action functionality is blocking anyway...

@dubee
Copy link
Member Author

dubee commented Nov 18, 2019

@jasonpet, will definitely need your Node.js expertise on this one.

@dubee dubee force-pushed the trigger-create-update branch from d8a183b to c87016d Compare November 19, 2019 03:03
@dubee dubee changed the title Update existing triggers on create instead of failing Update existing trigger feeds on create instead of failing Nov 19, 2019
@dubee dubee force-pushed the trigger-create-update branch from 4aff3cc to 4634bc1 Compare November 19, 2019 23:28
@dubee dubee added the review label Nov 20, 2019
Copy link

@jasonpet jasonpet left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants