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

[Security Solution] Able to add Same Start Time and End Time in Schedule for Snooze Notifications of Rule #158565

Merged
merged 3 commits into from
Jun 8, 2023

Conversation

gitstart
Copy link
Contributor

@gitstart gitstart commented May 26, 2023

What does this PR do?

  • It doesn't allows the user to pick the same date and time in the schedule component.

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.

…ule for Snooze Notifications of Rule

Co-authored-by: KlingerMatheus <[email protected]>
Co-authored-by: gitstart_bot <[email protected]>
@kibanamachine
Copy link
Contributor

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?

@gitstart gitstart changed the title ELS-120 - [Security Solution] Able to add Same Start Time and End Time in Schedule for Snooze Notifications of Rule [Security Solution] Able to add Same Start Time and End Time in Schedule for Snooze Notifications of Rule May 26, 2023
@gitstart gitstart marked this pull request as ready for review May 31, 2023 20:57
@gitstart gitstart requested a review from a team as a code owner May 31, 2023 20:57
Copy link
Contributor

@Zacqary Zacqary left a 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.

@Zacqary
Copy link
Contributor

Zacqary commented Jun 5, 2023

@elasticmachine merge upstream

@Zacqary Zacqary enabled auto-merge (squash) June 5, 2023 16:05
@XavierM
Copy link
Contributor

XavierM commented Jun 6, 2023

buildkite test this

@XavierM XavierM added the v8.8.2 label Jun 6, 2023
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
triggersActionsUi 1.4MB 1.4MB +22.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
securitySolution 413 417 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
securitySolution 497 501 +4
total +6

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@Zacqary
Copy link
Contributor

Zacqary commented Jun 8, 2023

@elasticmachine run elasticsearch-ci/docs

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.8

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 8, 2023
…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)
kibanamachine added a commit that referenced this pull request Jun 8, 2023
… 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants