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

[ML] Anomaly Detection Settings: Fix key attribute for filter list table #156392

Conversation

walterra
Copy link
Contributor

@walterra walterra commented May 2, 2023

Summary

Part of #148228.

Fixes the React dev mode warning "Warning: Each child in a list should have a unique "key" prop." by adding a key attribute to the DeleteFilterListModal component.

Checklist

@walterra walterra added bug Fixes for quality problems that affect the customer experience :ml Feature:Anomaly Detection ML anomaly detection release_note:skip Skip the PR/issue when compiling release notes v8.8.0 v8.9.0 labels May 2, 2023
@walterra walterra self-assigned this May 2, 2023
@walterra walterra requested a review from a team as a code owner May 2, 2023 14:12
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@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
ml 3.4MB 3.4MB +25.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
securitySolution 398 401 +3
total +5

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
securitySolution 478 481 +3
total +5

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

cc @walterra

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and LGTM

@walterra walterra merged commit 7a4ae72 into elastic:main May 3, 2023
@walterra walterra deleted the ml-148228-react-dev-error-key-settings-filter-list branch May 3, 2023 08:33
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 3, 2023
…ble (elastic#156392)

Fixes the React dev mode warning "Warning: Each child in a list should
have a unique "key" prop." by adding a key attribute to the
`DeleteFilterListModal` component.

(cherry picked from commit 7a4ae72)
@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 added a commit that referenced this pull request May 3, 2023
…ist table (#156392) (#156482)

# Backport

This will backport the following commits from `main` to `8.8`:
- [[ML] Anomaly Detection Settings: Fix key attribute for filter list
table (#156392)](#156392)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Walter
Rafelsberger","email":"walter.rafelsberger@elastic.co"},"sourceCommit":{"committedDate":"2023-05-03T08:33:11Z","message":"[ML]
Anomaly Detection Settings: Fix key attribute for filter list table
(#156392)\n\nFixes the React dev mode warning \"Warning: Each child in a
list should\r\nhave a unique \"key\" prop.\" by adding a key attribute
to the\r\n`DeleteFilterListModal`
component.","sha":"7a4ae72bceb23c30f3287339621a66f80caf06c9","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug",":ml","Feature:Anomaly
Detection","release_note:skip","v8.8.0","v8.9.0"],"number":156392,"url":"https://github.com/elastic/kibana/pull/156392","mergeCommit":{"message":"[ML]
Anomaly Detection Settings: Fix key attribute for filter list table
(#156392)\n\nFixes the React dev mode warning \"Warning: Each child in a
list should\r\nhave a unique \"key\" prop.\" by adding a key attribute
to the\r\n`DeleteFilterListModal`
component.","sha":"7a4ae72bceb23c30f3287339621a66f80caf06c9"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/156392","number":156392,"mergeCommit":{"message":"[ML]
Anomaly Detection Settings: Fix key attribute for filter list table
(#156392)\n\nFixes the React dev mode warning \"Warning: Each child in a
list should\r\nhave a unique \"key\" prop.\" by adding a key attribute
to the\r\n`DeleteFilterListModal`
component.","sha":"7a4ae72bceb23c30f3287339621a66f80caf06c9"}}]}]
BACKPORT-->

Co-authored-by: Walter Rafelsberger <walter.rafelsberger@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Anomaly Detection ML anomaly detection :ml release_note:skip Skip the PR/issue when compiling release notes v8.8.0 v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants