Skip to content

Commit

Permalink
[8.11] [inspector] fix clusters and shards table expanded row does no…
Browse files Browse the repository at this point in the history
…t update when request is changed (#171232) (#171263)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[inspector] fix clusters and shards table expanded row does not
update when request is changed
(#171232)](#171232)

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

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

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-11-15T02:23:16Z","message":"[inspector]
fix clusters and shards table expanded row does not update when request
is changed (#171232)\n\nFixes
https://github.com/elastic/kibana/issues/171231\r\n\r\nPR adds key
property to ClustersTable to force new instance when
request\r\nchanges\r\n\r\nCo-authored-by: Kibana Machine
<[email protected]>","sha":"f2917035668640cb7a83f016d882917c5371e933","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Inspector","Team:Presentation","v8.12.0","v8.11.2"],"number":171232,"url":"https://github.com/elastic/kibana/pull/171232","mergeCommit":{"message":"[inspector]
fix clusters and shards table expanded row does not update when request
is changed (#171232)\n\nFixes
https://github.com/elastic/kibana/issues/171231\r\n\r\nPR adds key
property to ClustersTable to force new instance when
request\r\nchanges\r\n\r\nCo-authored-by: Kibana Machine
<[email protected]>","sha":"f2917035668640cb7a83f016d882917c5371e933"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/171232","number":171232,"mergeCommit":{"message":"[inspector]
fix clusters and shards table expanded row does not update when request
is changed (#171232)\n\nFixes
https://github.com/elastic/kibana/issues/171231\r\n\r\nPR adds key
property to ClustersTable to force new instance when
request\r\nchanges\r\n\r\nCo-authored-by: Kibana Machine
<[email protected]>","sha":"f2917035668640cb7a83f016d882917c5371e933"}},{"branch":"8.11","label":"v8.11.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <[email protected]>
kibanamachine and nreese authored Nov 15, 2023
1 parent 8d16b46 commit 377e0ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ export class ClustersView extends Component<DetailViewProps> {
<>
<EuiSpacer size="m" />
{Object.keys(clusters).length > 1 ? <ClustersHealth clusters={clusters} /> : null}
<ClustersTable clusters={clusters} />
<ClustersTable key={this.props.request.id} clusters={clusters} />
</>
) : null;
}

0 comments on commit 377e0ec

Please sign in to comment.