Skip to content
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 #813

Merged
merged 8 commits into from
May 15, 2024

Conversation

hmpf
Copy link
Contributor

@hmpf hmpf commented May 14, 2024

Closes #699

Continuation of #701

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
Copy link

github-actions bot commented May 14, 2024

Test results

       7 files     595 suites   23m 0s ⏱️
   479 tests    478 ✔️ 1 💤 0
3 353 runs  3 346 ✔️ 7 💤 0

Results for commit dc26ed7.

♻️ This comment has been updated with latest results.

@codecov-commenter
Copy link

codecov-commenter commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.53%. Comparing base (c026ee0) to head (56fc93a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #813      +/-   ##
==========================================
+ Coverage   84.50%   84.53%   +0.02%     
==========================================
  Files          76       76              
  Lines        3808     3815       +7     
==========================================
+ Hits         3218     3225       +7     
  Misses        590      590              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@lunkwill42 lunkwill42 left a comment

Choose a reason for hiding this comment

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

I don't think I have any comments to the actual implementation here, but: Does this not constitute a backwards incompatible change to the external API?

@hmpf
Copy link
Contributor Author

hmpf commented May 14, 2024

True. As in: "event_type" should only have been visible on V2. "event_types" should only be visible on V2. The frontend seems to mostly use V1 though.

Copy link
Contributor

@johannaengland johannaengland left a comment

Choose a reason for hiding this comment

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

Only small changes in doc/changelog entry. Otherwise nice (as soon as the tests pass).

changelog.d/699.removed.md Outdated Show resolved Hide resolved
docs/api.rst Outdated Show resolved Hide resolved
@hmpf hmpf force-pushed the filter-by-event-type-list branch from dc26ed7 to 56fc93a Compare May 15, 2024 06:15
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
9.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@hmpf hmpf merged commit c00c45f into Uninett:master May 15, 2024
6 of 9 checks passed
@hmpf hmpf deleted the filter-by-event-type-list branch May 15, 2024 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
4 participants