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

feat(notifier): fix sending unwanted notifications on muted and deleted triggers and muted metrics #943

Merged
merged 33 commits into from
Nov 13, 2023

Conversation

almostinf
Copy link
Member

@almostinf almostinf commented Oct 24, 2023

Add notifier config

Add description of notification config, in detail:

  • delayed_time - if the difference between notification sending time (timestamp) and creation time (created_at) is greater than this time, then the notification is considered delayed, otherwise it is considered not delayed
  • transaction_timeout - timeout time between transactions in fetchNotifications
  • transaction_max_retries - maximum number of transactions in fetchNotifications
  • transaction_heuristic_limit - limit, if exceeded, all notifications will be fetched from the database.

Divided 1 big PR into 3 parts, here are the rest:

@almostinf almostinf requested a review from a team as a code owner October 24, 2023 06:53
@codecov-commenter
Copy link

codecov-commenter commented Oct 24, 2023

Codecov Report

Merging #943 (63e69b2) into master (cac64ea) will increase coverage by 0.49%.
Report is 12 commits behind head on master.
The diff coverage is 78.86%.

❗ Current head 63e69b2 differs from pull request most recent head 887a4d7. Consider uploading reports for the commit 887a4d7 to get more accurate results

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##           master     #943      +/-   ##
==========================================
+ Coverage   68.94%   69.44%   +0.49%     
==========================================
  Files         196      196              
  Lines       11038    11208     +170     
==========================================
+ Hits         7610     7783     +173     
+ Misses       2983     2962      -21     
- Partials      445      463      +18     
Files Coverage Δ
api/handler/config.go 0.00% <ø> (ø)
api/handler/contact.go 47.22% <100.00%> (+47.22%) ⬆️
database/redis/database.go 92.59% <100.00%> (+1.54%) ⬆️
datatypes.go 80.37% <100.00%> (+1.74%) ⬆️
notifier/registrator.go 37.03% <100.00%> (+0.78%) ⬆️
notifier/scheduler.go 84.54% <100.00%> (+0.28%) ⬆️
cmd/cli/main.go 0.00% <0.00%> (ø)
cmd/api/main.go 0.00% <0.00%> (ø)
database/redis/last_check.go 85.38% <84.61%> (-0.09%) ⬇️
helpers.go 89.47% <90.00%> (+0.09%) ⬆️
... and 3 more

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

msaf1980
msaf1980 previously approved these changes Oct 26, 2023
kissken
kissken previously approved these changes Oct 30, 2023
@almostinf almostinf requested a review from Tetrergeru October 31, 2023 11:02
cmd/api/config.go Outdated Show resolved Hide resolved
@almostinf almostinf dismissed stale reviews from kissken and msaf1980 via e509234 November 3, 2023 16:37
Tetrergeru
Tetrergeru previously approved these changes Nov 7, 2023
@almostinf almostinf requested a review from Tetrergeru November 13, 2023 07:54
@almostinf almostinf changed the title feat(notifier): add notifier config feat(notifier): fix sending unwanted notifications on muted and deleted triggers and muted metrics Nov 13, 2023
@almostinf
Copy link
Member Author

/build

@almostinf almostinf merged commit ed1f263 into master Nov 13, 2023
6 checks passed
@almostinf almostinf deleted the feat/add-redis-notifier-config branch November 13, 2023 08:32
Copy link

Build and push Docker images with tag: 2023-11-13.ed1f263

Tetrergeru added a commit that referenced this pull request Nov 13, 2023
…nd deleted triggers and muted metrics (#943)"

This reverts commit ed1f263.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants