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

Enhance notification types #137

Closed
wants to merge 13 commits into from

Conversation

sukhwinder33445
Copy link
Contributor

resolves #106

@sukhwinder33445 sukhwinder33445 self-assigned this Nov 28, 2023
@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Nov 28, 2023
@sukhwinder33445 sukhwinder33445 marked this pull request as draft November 28, 2023 13:04
@sukhwinder33445 sukhwinder33445 changed the base branch from main to icinga2-source November 28, 2023 14:05
@oxzi oxzi force-pushed the icinga2-source branch 5 times, most recently from ae322aa to f99810b Compare December 4, 2023 12:58
@sukhwinder33445 sukhwinder33445 force-pushed the support-other-notification-types branch 2 times, most recently from 1098d13 to 63c840e Compare December 6, 2023 09:11
@oxzi oxzi force-pushed the icinga2-source branch 2 times, most recently from 97824ac to 86c2bc0 Compare December 11, 2023 14:04
@sukhwinder33445 sukhwinder33445 force-pushed the support-other-notification-types branch 4 times, most recently from 2fb2aff to 82bff48 Compare December 22, 2023 08:11
@sukhwinder33445 sukhwinder33445 force-pushed the support-other-notification-types branch 6 times, most recently from 38b63c0 to f193809 Compare January 4, 2024 12:28
@sukhwinder33445 sukhwinder33445 force-pushed the support-other-notification-types branch 2 times, most recently from c581ca5 to 604c883 Compare January 4, 2024 16:15
Comment on lines +60 to +70
case TypeState:
case TypeAcknowledgement:
case TypeCommentAdded:
case TypeCommentRemoved:
case TypeDowntimeStart:
case TypeDowntimeEnd:
case TypeDowntimeCancelled:
case TypeCustom:
case TypeFlappingStart:
case TypeFlappingEnd:
return nil
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's no automatic fallthrough between cases, so this doesn't really do what you probably expect (or in some way it does, the next statement after switch will be the return nil at the end of the function, so you won't notice a difference here.

Hint: you can do case A, B, C:

@oxzi oxzi force-pushed the icinga2-source branch 5 times, most recently from bb764bd to d6c4d36 Compare January 12, 2024 09:38
Base automatically changed from icinga2-source to main April 12, 2024 14:33
@yhabteab yhabteab assigned yhabteab and unassigned sukhwinder33445 Apr 17, 2024
@yhabteab
Copy link
Member

I'll take over this PR from now on!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed CLA is signed by all contributors of a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support other notification types
3 participants