-
Notifications
You must be signed in to change notification settings - Fork 14
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
Make it possible to filter events by a given list of event types #701
Make it possible to filter events by a given list of event types #701
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #701 +/- ##
==========================================
+ Coverage 79.43% 79.47% +0.03%
==========================================
Files 73 73
Lines 3608 3615 +7
==========================================
+ Hits 2866 2873 +7
Misses 742 742 ☔ View full report in Codecov by Sentry. |
ae73098
to
bb98af8
Compare
After a discussion with @hmpf and @stveit we've come to the conclusion that the user should be forbidden from posting a filter as such:
since that would lead to no events ever being sent as notifications, since every event has an event type. This should be explicitly documented, both as a test as well in the API documentation. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
I guess the big question is whether this will be impacted by the conclusions of #700 - as having an incident filter that includes event attributes is kind of useless and confusing when in the main filter editing form: The incidents list page. Filtering on event attributes here would have no discernible effect on the incidents list. During notification processing is the only time the make sense, really... |
I might go as far as claiming this PR should be labelled as blocked until we have made this design decision... |
9f7f544
to
98b33e7
Compare
This will be merged after towncrier so add a changelog fragment in the correct place. |
Quality Gate passedIssues Measures |
16d96be
to
5b5fb2f
Compare
When filtering notifications we have the choice to filter one event type This change makes it to filter by a list, so that we can get notifications about events of multiple types
This would result in no notifications ever being sent
5b5fb2f
to
bee6399
Compare
Quality Gate passedIssues Measures |
This is as it stands not backwards compatible. I will continue this work in a new branch, reusing the commits. |
Replaced by #813 |
Closes #699.