-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution] Able to add Same Start Time and End Time in Schedule for Snooze Notifications of Rule #158565
Conversation
…ule for Snooze Notifications of Rule Co-authored-by: KlingerMatheus <[email protected]> Co-authored-by: gitstart_bot <[email protected]>
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for contributing!
This fixes the issue in the UI but doesn't guard against a user creating a snooze with the same start and end time using the API. However in order to do that I believe you'd have to pass duration: 0
, and that's not an easy mistake to make, as opposed to this UI behavior where it was very easy to accidentally pass the same start and end time. So I'm comfortable merging this and adding that guard to the API in another issue.
@elasticmachine merge upstream |
buildkite test this |
💚 Build Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
To update your PR or re-run it, just comment with: |
@elasticmachine run elasticsearch-ci/docs |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…ule for Snooze Notifications of Rule (elastic#158565) ## What does this PR do? * It doesn't allows the user to pick the same date and time in the schedule component. ## Issue References * Client: elastic#157865 ## Video/Screenshot Demo ###### FIX: https://www.loom.com/share/fc4a43eba71f485384621ecec457ce1a --- This code was written and reviewed by GitStart Community. Growing great engineers, one PR at a time. Co-authored-by: KlingerMatheus <[email protected]> Co-authored-by: gitstart_bot <[email protected]> (cherry picked from commit d9eff3f)
… Schedule for Snooze Notifications of Rule (#158565) (#159331) # Backport This will backport the following commits from `main` to `8.8`: - [[Security Solution] Able to add Same Start Time and End Time in Schedule for Snooze Notifications of Rule (#158565)](#158565) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"GitStart","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-06-08T15:57:03Z","message":"[Security Solution] Able to add Same Start Time and End Time in Schedule for Snooze Notifications of Rule (#158565)\n\n## What does this PR do?\r\n* It doesn't allows the user to pick the same date and time in the\r\nschedule component.\r\n\r\n## Issue References\r\n* Client: https://github.com/elastic/kibana/issues/157865\r\n\r\n## Video/Screenshot Demo \r\n\r\n###### FIX:\r\nhttps://www.loom.com/share/fc4a43eba71f485384621ecec457ce1a\r\n\r\n---\r\nThis code was written and reviewed by GitStart Community. Growing great\r\nengineers, one PR at a time.\r\n\r\nCo-authored-by: KlingerMatheus <[email protected]>\r\nCo-authored-by: gitstart_bot <[email protected]>","sha":"d9eff3fd84c7eb9da0f3d3e1106d6054b3a4cad7","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","💝community","v8.9.0","v8.8.2"],"number":158565,"url":"https://github.com/elastic/kibana/pull/158565","mergeCommit":{"message":"[Security Solution] Able to add Same Start Time and End Time in Schedule for Snooze Notifications of Rule (#158565)\n\n## What does this PR do?\r\n* It doesn't allows the user to pick the same date and time in the\r\nschedule component.\r\n\r\n## Issue References\r\n* Client: https://github.com/elastic/kibana/issues/157865\r\n\r\n## Video/Screenshot Demo \r\n\r\n###### FIX:\r\nhttps://www.loom.com/share/fc4a43eba71f485384621ecec457ce1a\r\n\r\n---\r\nThis code was written and reviewed by GitStart Community. Growing great\r\nengineers, one PR at a time.\r\n\r\nCo-authored-by: KlingerMatheus <[email protected]>\r\nCo-authored-by: gitstart_bot <[email protected]>","sha":"d9eff3fd84c7eb9da0f3d3e1106d6054b3a4cad7"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/158565","number":158565,"mergeCommit":{"message":"[Security Solution] Able to add Same Start Time and End Time in Schedule for Snooze Notifications of Rule (#158565)\n\n## What does this PR do?\r\n* It doesn't allows the user to pick the same date and time in the\r\nschedule component.\r\n\r\n## Issue References\r\n* Client: https://github.com/elastic/kibana/issues/157865\r\n\r\n## Video/Screenshot Demo \r\n\r\n###### FIX:\r\nhttps://www.loom.com/share/fc4a43eba71f485384621ecec457ce1a\r\n\r\n---\r\nThis code was written and reviewed by GitStart Community. Growing great\r\nengineers, one PR at a time.\r\n\r\nCo-authored-by: KlingerMatheus <[email protected]>\r\nCo-authored-by: gitstart_bot <[email protected]>","sha":"d9eff3fd84c7eb9da0f3d3e1106d6054b3a4cad7"}},{"branch":"8.8","label":"v8.8.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: GitStart <[email protected]>
What does this PR do?
Issue References
Video/Screenshot Demo
FIX:
https://www.loom.com/share/fc4a43eba71f485384621ecec457ce1a
This code was written and reviewed by GitStart Community. Growing great engineers, one PR at a time.