Skip to content

Conversation

@dubee
Copy link
Member

@dubee dubee commented Nov 18, 2019

If for some reason a trigger has been deleted though the associated feed still exists, a user cannot delete the corresponding feed manually.

console.log(`Trigger auth error: ${JSON.stringify(err)}`);
return Promise.reject({ authError: 'You are not authorized for this trigger.'});
if (err.statusCode && err.statusCode === 404 && !rejectNotFound) {
return Promise.resolve()
Copy link
Member Author

Choose a reason for hiding this comment

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

Is this promise needed or can we do return true?

Copy link
Member Author

Choose a reason for hiding this comment

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

Either way, I think.

@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

@rabbah
Copy link
Member

rabbah commented Nov 20, 2019

@dubee does this affect other openwhisk feed providers? Can you mention this on the dev list 🙏

@dubee
Copy link
Member Author

dubee commented Nov 20, 2019

@rabbah, sure. This and #360 affect the other providers.

@jasonpet jasonpet merged commit b6e1d0d into apache:master Nov 20, 2019
@jasonpet
Copy link

jasonpet commented Nov 20, 2019

this functionality has always existed for the other providers (Cloudant and Alarms)

@dubee
Copy link
Member Author

dubee commented Nov 20, 2019

@rabbah, correction on that last comment. Alarms and Cloudant providers already allow for deletion of a feed that is triggerless. Changes here are to have the equivalent functionality for the Kafka provider. #360 on the other hand does apply to the other providers.

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.

3 participants