Conversation
Contributor
|
Pinging @elastic/security-detection-engine (Team:Detection Engine) |
74a8465 to
031fa99
Compare
89be0ef to
cf61e38
Compare
denar50
commented
Mar 11, 2025
...ty_solution/public/detection_engine/rule_creation_ui/components/rule_preview/translations.ts
Outdated
Show resolved
Hide resolved
a1814ad to
8e7eb09
Compare
denar50
commented
Mar 12, 2025
...ty_solution/public/detection_engine/rule_creation_ui/components/rule_preview/translations.ts
Show resolved
Hide resolved
Contributor
nkhristinin
approved these changes
Mar 14, 2025
…om's invalid state (#173930)
…ection_engine/rule_creation_ui/components/rule_preview/translations.ts Co-authored-by: Nastasha Solomon <79124755+nastasha-solomon@users.noreply.github.com>
abc4512 to
491899c
Compare
Contributor
|
Starting backport for target branches: 8.17, 8.18, 9.0 https://github.com/elastic/kibana/actions/runs/13899995733 |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Mar 17, 2025
…rm's invalid state (elastic#173930) (elastic#213801) # Summary This PR changes the behavior of the Preview rule button in the create rule form. Now the button will always be enabled, but upon clicking it the validation of the define rule form will be triggered. If the form is invalid, it will show a warning redirecting the user to the form in order to fix the errors. This PR removes the helper function `getIsRulePreviewDisabled` after verifying that all the validations that it was doing are already covered by the validation rules of the define rule form. This solves issue elastic#173930 --------- Co-authored-by: Nastasha Solomon <79124755+nastasha-solomon@users.noreply.github.com> (cherry picked from commit 07baf3a)
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Mar 17, 2025
…rm's invalid state (elastic#173930) (elastic#213801) # Summary This PR changes the behavior of the Preview rule button in the create rule form. Now the button will always be enabled, but upon clicking it the validation of the define rule form will be triggered. If the form is invalid, it will show a warning redirecting the user to the form in order to fix the errors. This PR removes the helper function `getIsRulePreviewDisabled` after verifying that all the validations that it was doing are already covered by the validation rules of the define rule form. This solves issue elastic#173930 --------- Co-authored-by: Nastasha Solomon <79124755+nastasha-solomon@users.noreply.github.com> (cherry picked from commit 07baf3a)
Contributor
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
kibanamachine
added a commit
that referenced
this pull request
Mar 17, 2025
…for form's invalid state (#173930) (#213801) (#214744) # Backport This will backport the following commits from `main` to `9.0`: - [[Security Solution][Detection Engine] fixes rule preview works for form's invalid state (#173930) (#213801)](#213801) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Edgar Santos","email":"edgar.santos@elastic.co"},"sourceCommit":{"committedDate":"2025-03-17T12:56:13Z","message":"[Security Solution][Detection Engine] fixes rule preview works for form's invalid state (#173930) (#213801)\n\n# Summary\nThis PR changes the behavior of the Preview rule button in the create\nrule form. Now the button will always be enabled, but upon clicking it\nthe validation of the define rule form will be triggered. If the form is\ninvalid, it will show a warning redirecting the user to the form in\norder to fix the errors.\n\nThis PR removes the helper function `getIsRulePreviewDisabled` after\nverifying that all the validations that it was doing are already covered\nby the validation rules of the define rule form.\n\n\nThis solves issue #173930\n\n---------\n\nCo-authored-by: Nastasha Solomon <79124755+nastasha-solomon@users.noreply.github.com>","sha":"07baf3a79f5d2e37ba2a4823c3c4ef339684959d","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Feature:Detection Rules","Feature:Detection Rule Preview","Team:Detection Engine","backport:version","v8.18.0","v9.1.0","v8.17.4"],"title":"[Security Solution][Detection Engine] fixes rule preview works for form's invalid state (#173930)","number":213801,"url":"https://github.com/elastic/kibana/pull/213801","mergeCommit":{"message":"[Security Solution][Detection Engine] fixes rule preview works for form's invalid state (#173930) (#213801)\n\n# Summary\nThis PR changes the behavior of the Preview rule button in the create\nrule form. Now the button will always be enabled, but upon clicking it\nthe validation of the define rule form will be triggered. If the form is\ninvalid, it will show a warning redirecting the user to the form in\norder to fix the errors.\n\nThis PR removes the helper function `getIsRulePreviewDisabled` after\nverifying that all the validations that it was doing are already covered\nby the validation rules of the define rule form.\n\n\nThis solves issue #173930\n\n---------\n\nCo-authored-by: Nastasha Solomon <79124755+nastasha-solomon@users.noreply.github.com>","sha":"07baf3a79f5d2e37ba2a4823c3c4ef339684959d"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.17"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213801","number":213801,"mergeCommit":{"message":"[Security Solution][Detection Engine] fixes rule preview works for form's invalid state (#173930) (#213801)\n\n# Summary\nThis PR changes the behavior of the Preview rule button in the create\nrule form. Now the button will always be enabled, but upon clicking it\nthe validation of the define rule form will be triggered. If the form is\ninvalid, it will show a warning redirecting the user to the form in\norder to fix the errors.\n\nThis PR removes the helper function `getIsRulePreviewDisabled` after\nverifying that all the validations that it was doing are already covered\nby the validation rules of the define rule form.\n\n\nThis solves issue #173930\n\n---------\n\nCo-authored-by: Nastasha Solomon <79124755+nastasha-solomon@users.noreply.github.com>","sha":"07baf3a79f5d2e37ba2a4823c3c4ef339684959d"}},{"branch":"8.17","label":"v8.17.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Edgar Santos <edgar.santos@elastic.co>
kibanamachine
added a commit
that referenced
this pull request
Mar 17, 2025
… for form's invalid state (#173930) (#213801) (#214743) # Backport This will backport the following commits from `main` to `8.18`: - [[Security Solution][Detection Engine] fixes rule preview works for form's invalid state (#173930) (#213801)](#213801) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Edgar Santos","email":"edgar.santos@elastic.co"},"sourceCommit":{"committedDate":"2025-03-17T12:56:13Z","message":"[Security Solution][Detection Engine] fixes rule preview works for form's invalid state (#173930) (#213801)\n\n# Summary\nThis PR changes the behavior of the Preview rule button in the create\nrule form. Now the button will always be enabled, but upon clicking it\nthe validation of the define rule form will be triggered. If the form is\ninvalid, it will show a warning redirecting the user to the form in\norder to fix the errors.\n\nThis PR removes the helper function `getIsRulePreviewDisabled` after\nverifying that all the validations that it was doing are already covered\nby the validation rules of the define rule form.\n\n\nThis solves issue #173930\n\n---------\n\nCo-authored-by: Nastasha Solomon <79124755+nastasha-solomon@users.noreply.github.com>","sha":"07baf3a79f5d2e37ba2a4823c3c4ef339684959d","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Feature:Detection Rules","Feature:Detection Rule Preview","Team:Detection Engine","backport:version","v8.18.0","v9.1.0","v8.17.4"],"title":"[Security Solution][Detection Engine] fixes rule preview works for form's invalid state (#173930)","number":213801,"url":"https://github.com/elastic/kibana/pull/213801","mergeCommit":{"message":"[Security Solution][Detection Engine] fixes rule preview works for form's invalid state (#173930) (#213801)\n\n# Summary\nThis PR changes the behavior of the Preview rule button in the create\nrule form. Now the button will always be enabled, but upon clicking it\nthe validation of the define rule form will be triggered. If the form is\ninvalid, it will show a warning redirecting the user to the form in\norder to fix the errors.\n\nThis PR removes the helper function `getIsRulePreviewDisabled` after\nverifying that all the validations that it was doing are already covered\nby the validation rules of the define rule form.\n\n\nThis solves issue #173930\n\n---------\n\nCo-authored-by: Nastasha Solomon <79124755+nastasha-solomon@users.noreply.github.com>","sha":"07baf3a79f5d2e37ba2a4823c3c4ef339684959d"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.17"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213801","number":213801,"mergeCommit":{"message":"[Security Solution][Detection Engine] fixes rule preview works for form's invalid state (#173930) (#213801)\n\n# Summary\nThis PR changes the behavior of the Preview rule button in the create\nrule form. Now the button will always be enabled, but upon clicking it\nthe validation of the define rule form will be triggered. If the form is\ninvalid, it will show a warning redirecting the user to the form in\norder to fix the errors.\n\nThis PR removes the helper function `getIsRulePreviewDisabled` after\nverifying that all the validations that it was doing are already covered\nby the validation rules of the define rule form.\n\n\nThis solves issue #173930\n\n---------\n\nCo-authored-by: Nastasha Solomon <79124755+nastasha-solomon@users.noreply.github.com>","sha":"07baf3a79f5d2e37ba2a4823c3c4ef339684959d"}},{"branch":"8.17","label":"v8.17.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Edgar Santos <edgar.santos@elastic.co>
This was referenced Mar 17, 2025
clintandrewhall
pushed a commit
to clintandrewhall/kibana
that referenced
this pull request
Mar 20, 2025
…rm's invalid state (elastic#173930) (elastic#213801) # Summary This PR changes the behavior of the Preview rule button in the create rule form. Now the button will always be enabled, but upon clicking it the validation of the define rule form will be triggered. If the form is invalid, it will show a warning redirecting the user to the form in order to fix the errors. This PR removes the helper function `getIsRulePreviewDisabled` after verifying that all the validations that it was doing are already covered by the validation rules of the define rule form. This solves issue elastic#173930 --------- Co-authored-by: Nastasha Solomon <79124755+nastasha-solomon@users.noreply.github.com>
CAWilson94
pushed a commit
to CAWilson94/kibana
that referenced
this pull request
Mar 22, 2025
…rm's invalid state (elastic#173930) (elastic#213801) # Summary This PR changes the behavior of the Preview rule button in the create rule form. Now the button will always be enabled, but upon clicking it the validation of the define rule form will be triggered. If the form is invalid, it will show a warning redirecting the user to the form in order to fix the errors. This PR removes the helper function `getIsRulePreviewDisabled` after verifying that all the validations that it was doing are already covered by the validation rules of the define rule form. This solves issue elastic#173930 --------- Co-authored-by: Nastasha Solomon <79124755+nastasha-solomon@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR changes the behavior of the Preview rule button in the create rule form. Now the button will always be enabled, but upon clicking it the validation of the define rule form will be triggered. If the form is invalid, it will show a warning redirecting the user to the form in order to fix the errors.
This PR removes the helper function
getIsRulePreviewDisabledafter verifying that all the validations that it was doing are already covered by the validation rules of the define rule form.This solves issue #173930