Argus icon indicating copy to clipboard operation
Argus copied to clipboard

Make it possible to filter events by a given list of event types

Open johannaengland opened this issue 2 years ago • 9 comments

Closes #699.

johannaengland avatar Sep 27 '23 09:09 johannaengland

Test results

       7 files     511 suites   20m 1s :stopwatch:    412 tests    411 :heavy_check_mark: 1 :zzz: 0 :x: 2 884 runs  2 877 :heavy_check_mark: 7 :zzz: 0 :x:

Results for commit bee63997.

:recycle: This comment has been updated with latest results.

github-actions[bot] avatar Sep 27 '23 10:09 github-actions[bot]

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 79.47%. Comparing base (8a3e712) to head (bee6399).

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              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Sep 27 '23 10:09 codecov-commenter

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:

filter: {"event_types": []}

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.

johannaengland avatar Sep 28 '23 08:09 johannaengland

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Sep 28 '23 08:09 sonarqubecloud[bot]

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...

lunkwill42 avatar Sep 29 '23 11:09 lunkwill42

I guess the big question is whether this will be impacted by the conclusions of #700 - as

I might go as far as claiming this PR should be labelled as blocked until we have made this design decision...

lunkwill42 avatar Sep 29 '23 11:09 lunkwill42

This will be merged after towncrier so add a changelog fragment in the correct place.

hmpf avatar Feb 08 '24 10:02 hmpf

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Feb 09 '24 11:02 sonarqubecloud[bot]

This is as it stands not backwards compatible. I will continue this work in a new branch, reusing the commits.

hmpf avatar May 14 '24 07:05 hmpf

Replaced by #813

hmpf avatar May 14 '24 07:05 hmpf