-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transition OnCallNotificatonRule to use 'Dest' field (#4004)
* Transition OnCallNotificatonRule to use 'Dest' field - Changed OnCallNotificationRuleInput to use 'Dest' instead of 'Target' - Refactored resolver and mutation logic for new field - Deprecated 'Target' in the schema and added relevant annotations - Removed unused imports and redundant validation code * Add a comment for MapDestToID validation context - Added a comment to clarify the validation purpose of MapDestToID in the notification rules function. * Remove unused function and streamline notification lookups - Removed `CompatNCToDest` function and related imports - Added SQL query for fetching notification channel destination - Updated `schedule.go` to use `FindDestByID` for destination resolution - Introduced `FindDestByID` method in store for notification channels * remove unused query * remove more unused code * update `formatNC` to use dest registry * Refactored CompatTargetToDest for context support - Added context parameter to CompatTargetToDest - Updated calls to CompatTargetToDest with context - Handled TargetTypeNotificationChannel in CompatTargetToDest - Included validation for TargetID parsing and checking
- Loading branch information
1 parent
3f29e67
commit f004df3
Showing
13 changed files
with
90 additions
and
351 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.