Skip to content

Fix files management flyout crashing#237588

Merged
kowalczyk-krzysztof merged 4 commits intoelastic:mainfrom
kowalczyk-krzysztof:fix/fix-diagnostic-flyout-crashing
Oct 7, 2025
Merged

Fix files management flyout crashing#237588
kowalczyk-krzysztof merged 4 commits intoelastic:mainfrom
kowalczyk-krzysztof:fix/fix-diagnostic-flyout-crashing

Conversation

@kowalczyk-krzysztof
Copy link
Member

@kowalczyk-krzysztof kowalczyk-krzysztof commented Oct 6, 2025

Summary

This PR fixes flyout on files management page crashing when there are any uploaded files (to open the flyout, click Statistics on /app/management/kibana/filesManagement).

It has been crashing since 9.1 release. I'm not exactly sure what the actual reason for the crashing is. This fix changes the xScaleType from Time to Ordinal. The value displayed on x axis is key, which in this context is the file extension, so it doesn't make a sense to use Time here.

Closes: #235534

@kowalczyk-krzysztof kowalczyk-krzysztof self-assigned this Oct 6, 2025
@kowalczyk-krzysztof kowalczyk-krzysztof requested a review from a team as a code owner October 6, 2025 08:57
@kowalczyk-krzysztof kowalczyk-krzysztof added release_note:fix Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// backport:all-open Backport to all branches that could still receive a release labels Oct 6, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@kowalczyk-krzysztof kowalczyk-krzysztof enabled auto-merge (squash) October 6, 2025 08:57
Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

Ideally, I would include a small ftr test to check that the flyout loads and that a chart is displayed. we already should have files management suite, so shouldn't be a big lift to add this test

@kowalczyk-krzysztof kowalczyk-krzysztof requested a review from a team as a code owner October 6, 2025 10:12
@kowalczyk-krzysztof kowalczyk-krzysztof force-pushed the fix/fix-diagnostic-flyout-crashing branch from aaeec16 to 9ee3213 Compare October 6, 2025 10:13
@kowalczyk-krzysztof kowalczyk-krzysztof enabled auto-merge (squash) October 6, 2025 12:37
@kowalczyk-krzysztof kowalczyk-krzysztof merged commit 72c5997 into elastic:main Oct 7, 2025
13 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.19, 9.0, 9.1, 9.2

https://github.com/elastic/kibana/actions/runs/18308983774

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #118 / Solution navigation smoke tests security solution sidenav & breadcrumbs renders tour
  • [job] [logs] FTR Configs #34 / Space awareness agents POST /agents/bulkUpdateAgentTags should only update tags of agents in the same space when passing a list of agent ids

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
filesManagement 105.9KB 106.0KB +110.0B

History

cc @kowalczyk-krzysztof

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 7, 2025
## Summary

This PR fixes flyout on files management page (click `Statistics` on
`/app/management/kibana/filesManagement`) crashing. It has been crashing
since 9.1. I'm not exactly sure what the actual reason for crashing is.
This fix changes the `xScaleType` from `Time` to `Ordinal`. The value
displayed on x axis is `key`, which in this context is file extension,
so it doesn't make a sense to use `Time` here.

Closes: elastic#235534
(cherry picked from commit 72c5997)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 7, 2025
## Summary

This PR fixes flyout on files management page (click `Statistics` on
`/app/management/kibana/filesManagement`) crashing. It has been crashing
since 9.1. I'm not exactly sure what the actual reason for crashing is.
This fix changes the `xScaleType` from `Time` to `Ordinal`. The value
displayed on x axis is `key`, which in this context is file extension,
so it doesn't make a sense to use `Time` here.

Closes: elastic#235534
(cherry picked from commit 72c5997)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 7, 2025
## Summary

This PR fixes flyout on files management page (click `Statistics` on
`/app/management/kibana/filesManagement`) crashing. It has been crashing
since 9.1. I'm not exactly sure what the actual reason for crashing is.
This fix changes the `xScaleType` from `Time` to `Ordinal`. The value
displayed on x axis is `key`, which in this context is file extension,
so it doesn't make a sense to use `Time` here.

Closes: elastic#235534
(cherry picked from commit 72c5997)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 7, 2025
## Summary

This PR fixes flyout on files management page (click `Statistics` on
`/app/management/kibana/filesManagement`) crashing. It has been crashing
since 9.1. I'm not exactly sure what the actual reason for crashing is.
This fix changes the `xScaleType` from `Time` to `Ordinal`. The value
displayed on x axis is `key`, which in this context is file extension,
so it doesn't make a sense to use `Time` here.

Closes: elastic#235534
(cherry picked from commit 72c5997)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 7, 2025
## Summary

This PR fixes flyout on files management page (click `Statistics` on
`/app/management/kibana/filesManagement`) crashing. It has been crashing
since 9.1. I'm not exactly sure what the actual reason for crashing is.
This fix changes the `xScaleType` from `Time` to `Ordinal`. The value
displayed on x axis is `key`, which in this context is file extension,
so it doesn't make a sense to use `Time` here.

Closes: elastic#235534
(cherry picked from commit 72c5997)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.18
8.19
9.0
9.1
9.2

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

Questions ?

Please refer to the Backport tool documentation

@kowalczyk-krzysztof kowalczyk-krzysztof deleted the fix/fix-diagnostic-flyout-crashing branch October 7, 2025 11:11
kibanamachine added a commit that referenced this pull request Oct 7, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [Fix files management flyout crashing
(#237588)](#237588)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Krzysztof
Kowalczyk","email":"krzysztof.kowalczyk@elastic.co"},"sourceCommit":{"committedDate":"2025-10-07T09:58:21Z","message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:SharedUX","backport:all-open","v9.3.0"],"title":"Fix
files management flyout
crashing","number":237588,"url":"https://github.com/elastic/kibana/pull/237588","mergeCommit":{"message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/237588","number":237588,"mergeCommit":{"message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a"}}]}]
BACKPORT-->

Co-authored-by: Krzysztof Kowalczyk <krzysztof.kowalczyk@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 7, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [Fix files management flyout crashing
(#237588)](#237588)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Krzysztof
Kowalczyk","email":"krzysztof.kowalczyk@elastic.co"},"sourceCommit":{"committedDate":"2025-10-07T09:58:21Z","message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:SharedUX","backport:all-open","v9.3.0"],"title":"Fix
files management flyout
crashing","number":237588,"url":"https://github.com/elastic/kibana/pull/237588","mergeCommit":{"message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/237588","number":237588,"mergeCommit":{"message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a"}}]}]
BACKPORT-->

Co-authored-by: Krzysztof Kowalczyk <krzysztof.kowalczyk@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 7, 2025
# Backport

This will backport the following commits from `main` to `9.2`:
- [Fix files management flyout crashing
(#237588)](#237588)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Krzysztof
Kowalczyk","email":"krzysztof.kowalczyk@elastic.co"},"sourceCommit":{"committedDate":"2025-10-07T09:58:21Z","message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:SharedUX","backport:all-open","v9.3.0"],"title":"Fix
files management flyout
crashing","number":237588,"url":"https://github.com/elastic/kibana/pull/237588","mergeCommit":{"message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/237588","number":237588,"mergeCommit":{"message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a"}}]}]
BACKPORT-->

Co-authored-by: Krzysztof Kowalczyk <krzysztof.kowalczyk@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 7, 2025
# Backport

This will backport the following commits from `main` to `8.18`:
- [Fix files management flyout crashing
(#237588)](#237588)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Krzysztof
Kowalczyk","email":"krzysztof.kowalczyk@elastic.co"},"sourceCommit":{"committedDate":"2025-10-07T09:58:21Z","message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:SharedUX","backport:all-open","v9.3.0"],"title":"Fix
files management flyout
crashing","number":237588,"url":"https://github.com/elastic/kibana/pull/237588","mergeCommit":{"message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/237588","number":237588,"mergeCommit":{"message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a"}}]}]
BACKPORT-->

Co-authored-by: Krzysztof Kowalczyk <krzysztof.kowalczyk@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 7, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [Fix files management flyout crashing
(#237588)](#237588)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Krzysztof
Kowalczyk","email":"krzysztof.kowalczyk@elastic.co"},"sourceCommit":{"committedDate":"2025-10-07T09:58:21Z","message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:SharedUX","backport:all-open","v9.3.0"],"title":"Fix
files management flyout
crashing","number":237588,"url":"https://github.com/elastic/kibana/pull/237588","mergeCommit":{"message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/237588","number":237588,"mergeCommit":{"message":"Fix
files management flyout crashing (#237588)\n\n## Summary\n\nThis PR
fixes flyout on files management page (click `Statistics`
on\n`/app/management/kibana/filesManagement`) crashing. It has been
crashing\nsince 9.1. I'm not exactly sure what the actual reason for
crashing is.\nThis fix changes the `xScaleType` from `Time` to
`Ordinal`. The value\ndisplayed on x axis is `key`, which in this
context is file extension,\nso it doesn't make a sense to use `Time`
here.\n\nCloses:
https://github.com/elastic/kibana/issues/235534","sha":"72c59976bb5fe8236e6070c68d1aa279d2de839a"}}]}]
BACKPORT-->

Co-authored-by: Krzysztof Kowalczyk <krzysztof.kowalczyk@elastic.co>
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
## Summary

This PR fixes flyout on files management page (click `Statistics` on
`/app/management/kibana/filesManagement`) crashing. It has been crashing
since 9.1. I'm not exactly sure what the actual reason for crashing is.
This fix changes the `xScaleType` from `Time` to `Ordinal`. The value
displayed on x axis is `key`, which in this context is file extension,
so it doesn't make a sense to use `Time` here.

Closes: elastic#235534
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:all-open Backport to all branches that could still receive a release release_note:fix Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// v8.18.9 v8.19.6 v9.0.9 v9.1.5 v9.2.0 v9.3.0

6 participants