Repository navigation
Fix #165: Validate features before subscribing - #183
Conversation
|
@checkaayush it's failing gofmt; you can either run |
|
Glad to see you are still around @checkaayush 🎉 |
jfrerich
left a comment
There was a problem hiding this comment.
Have one comment pending another dev approval. @checkaayush, if this would be a simple fix, you could go ahead and implement! Thanks for the PR!
d467f98 to
371bedb
Compare
marianunez
left a comment
There was a problem hiding this comment.
Great work @checkaayush! 🎉Thanks for adding the tests for this as well 💯
|
Hi @checkaayush thanks for this improvement! It really adds some usability to the feature. I think I may have found an issue with this change. I testes subscribing to all features and the validation. I'm not seeing the use of labels work as expected on your branch. |
Check for labels when validating features
Nice catch @DHaussermann! Have made the required changes and added relevant tests. I've assumed validating labels, when present, from the GH API is out of scope of the current fix. |
There was a problem hiding this comment.
Thanks for the fix @checkaayush This is now working as expected!
No checking if the label exists was not part of this issue. This PR already solves the problem of a subscription not delivering any events because it contains an invalid feature.
Tested and passed
- Features are validated
- All supported features work to save a subscription (including passing in a label)
- Invalid features are caught when used individually or in coma separated lists
- When invalid save attempt is made, no change is made to an existing subscription
LGTM!
Updated release testing to cover this.
|
Hey @marianunez, I've made some critical code changes to fix bugs pointed out during QA after you reviewed the code. Could you have a quick look at the changes again? |
|
/update-branch |
marianunez
left a comment
There was a problem hiding this comment.
Thanks @checkaayush! LGTM.
Just a reminder for future PRs that always try and avoid force pushing a PR that's actively being reviewed.
See https://developers.mattermost.com/blog/submitting-great-prs/#4-avoid-force-pushing
Summary
Adds validation to prevent subscription to a repo with invalid feature(s)
Ticket Link
Fixes #165