-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add time-based muting to routing tree #2393
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
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
c2c0c55
Add gotime library
bsattelb 5df6616
Allow time intervals in global config
bsattelb cbfbf07
Allow routes to reference time intervals
bsattelb 1d912fa
Add config timeinterval that allows intervals to be dumped back out o…
bsattelb ea5b925
Add buildah script for test container
bsattelb fe4b839
Move time intervals to own section, add config validation
bsattelb 44d8cb4
Update gotime to v0.0.2
bsattelb d1f5e07
Add mute time stage and pipeline
bsattelb f53e7a9
Add tests for TimeMuteStage
benridley a3cb125
Move timeinterval library into locally maintained package
benridley 93e0117
Change logging to debug when notifications aren't sent due to route mute
benridley c51e598
Remove container testing script
benridley 11c24d4
Correct case from renaming
benridley 3d97ee5
Update docs to include mute time sections
benridley 58c1ef5
Clarify boundaries of ranges in docs
benridley 0e9838c
Fix formatting
benridley e052540
Add license header
benridley 3ece406
Remove unused test function
benridley 44e9aa9
Change undefined route to use quoted string formatting
benridley ad385c2
Add check for undefined name in a mute time interval
benridley dd7a35e
Add tests for configuration of mute times
benridley 4c881ef
Tidy up error message formatting
benridley adf94c3
Correct errors, test for specific error messages, improve formatting
benridley 2c86b69
Prevent clamping dates that start after the end of the month
benridley 1957e3c
Add some more complete test cases, test for broken clamping
benridley 2c5c17a
Update timeinterval/timeinterval.go
benridley 70b138a
Apply formatting suggestions from code review
benridley fb60329
Add fullstops to comments
benridley 11b643d
Remove superfluous test case
benridley 1cc736c
Return from errors earlier
benridley 8e03268
Add additional test cases from code review
benridley fa2fab6
Simplify logging on time mute
benridley c34003f
Pre-allocate mute time config slice
benridley ae116cf
Fix comment formatting
benridley 5152a2f
Ensure mute time intervals are unique in config, add associated test
benridley 5d4231b
Use consistent naming for mute time intervals
benridley 24804e6
Improve comment fomatting
benridley 7ffd4ca
Change docs to reflect mute_time_intervals in routes instead of mute_…
benridley 0fe51de
Clarify timezone support in mute time intervals
benridley d177471
Improve comment formatting
benridley 5983d20
Fix formatting
benridley 253e28a
Remove unnecessary json tag in MuteTimeInterval
benridley bcab6aa
Change wording in root route mute time interval error to align with o…
benridley d9d7511
Revert unwanted formatting change
benridley d0217a8
Add JSON marshalling and unmarshalling support for time intervals
benridley 3a5f4e5
Fix formatting after merge conflict in config.go
benridley df54b4b
Improve documentation wording and formatting in response to maintaine…
benridley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.