Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Security Solution] Display Modified badge for customized field…
…s in Rule Upgrade flyout (elastic#203968) (elastic#204195) # Backport This will backport the following commits from `main` to `8.x`: - [[Security Solution] Display Modified badge for customized fields in Rule Upgrade flyout (elastic#203968)](elastic#203968) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Maxim Palenov","email":"maxim.palenov@elastic.co"},"sourceCommit":{"committedDate":"2024-12-13T11:43:45Z","message":"[Security Solution] Display Modified badge for customized fields in Rule Upgrade flyout (elastic#203968)\n\n**Resolves:** https://github.com/elastic/kibana/issues/203718\r\n\r\n## Summary\r\n\r\nThis PR adds `Modified` badge to customized fields in rules upgrade flyout.\r\n\r\n## Details\r\n\r\n`_review` API endpoint contains fields diff providing enough information on what field values were involved in the comparison. In particular `diff_outcome` is used to determine if a field was customized i.e. the rule was edited and field value has a different value than a stock value. `Modified` badge is show for fields `CustomizedValueCanUpdate`, `CustomizedValueSameUpdate` and `CustomizedValueNoUpdate`.\r\n\r\n## Screenshot\r\n\r\n![image](https://github.com/user-attachments/assets/8f773f45-7ab5-4883-9ef7-fee8f3bde768)","sha":"87079ff226b616d3b11370f7307f5c7448001b28","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","impact:medium","v9.0.0","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","backport:version","v8.18.0"],"title":"[Security Solution] Display Modified badge for customized fields in Rule Upgrade flyout","number":203968,"url":"https://github.com/elastic/kibana/pull/203968","mergeCommit":{"message":"[Security Solution] Display Modified badge for customized fields in Rule Upgrade flyout (elastic#203968)\n\n**Resolves:** https://github.com/elastic/kibana/issues/203718\r\n\r\n## Summary\r\n\r\nThis PR adds `Modified` badge to customized fields in rules upgrade flyout.\r\n\r\n## Details\r\n\r\n`_review` API endpoint contains fields diff providing enough information on what field values were involved in the comparison. In particular `diff_outcome` is used to determine if a field was customized i.e. the rule was edited and field value has a different value than a stock value. `Modified` badge is show for fields `CustomizedValueCanUpdate`, `CustomizedValueSameUpdate` and `CustomizedValueNoUpdate`.\r\n\r\n## Screenshot\r\n\r\n![image](https://github.com/user-attachments/assets/8f773f45-7ab5-4883-9ef7-fee8f3bde768)","sha":"87079ff226b616d3b11370f7307f5c7448001b28"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203968","number":203968,"mergeCommit":{"message":"[Security Solution] Display Modified badge for customized fields in Rule Upgrade flyout (elastic#203968)\n\n**Resolves:** https://github.com/elastic/kibana/issues/203718\r\n\r\n## Summary\r\n\r\nThis PR adds `Modified` badge to customized fields in rules upgrade flyout.\r\n\r\n## Details\r\n\r\n`_review` API endpoint contains fields diff providing enough information on what field values were involved in the comparison. In particular `diff_outcome` is used to determine if a field was customized i.e. the rule was edited and field value has a different value than a stock value. `Modified` badge is show for fields `CustomizedValueCanUpdate`, `CustomizedValueSameUpdate` and `CustomizedValueNoUpdate`.\r\n\r\n## Screenshot\r\n\r\n![image](https://github.com/user-attachments/assets/8f773f45-7ab5-4883-9ef7-fee8f3bde768)","sha":"87079ff226b616d3b11370f7307f5c7448001b28"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
- Loading branch information