Skip to content

[9.4] [Security Solution][DQD] Fix empty page when language is set to Japanese (#265782)#267756

Merged
kibanamachine merged 2 commits intoelastic:9.4from
kibanamachine:backport/9.4/pr-265782
May 5, 2026
Merged

[9.4] [Security Solution][DQD] Fix empty page when language is set to Japanese (#265782)#267756
kibanamachine merged 2 commits intoelastic:9.4from
kibanamachine:backport/9.4/pr-265782

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

…ese (elastic#265782)

## Summary

Closes: elastic#180860
Fixes the Security Data Quality dashboard showing no data when Kibana
uses a localized Japanese UI , while network responses still return
index stats.

## Cause

ILM phase combo options use **localized `label`** and **canonical
English `value`** (`hot`, `warm`, `unmanaged`, …). The panel built
`ilmPhases` from **`label` only**, then filtered indices by comparing to
`getIlmPhase()` output (always English). Under non-English locales, **no
phase matched**, so all indices were dropped and the UI looked empty.

ILM filter **tooltips** passed `option.label` into
`getIlmPhaseDescription()`, which only switches on English keys, so
descriptions were blank when labels were translated.

## Resolution

- Derive **`ilmPhases` from `option.value`**, not `label`
(`ilmPhasesFromSelectedOptions` + unit test).
- In **`IlmPhaseFilter` `renderOption`**, keep **`label` for visible
text** and use **`value`** for **`getIlmPhaseDescription`**.

## Verification

- Jest: `ilm_phases_from_selected_options.test.ts` and existing Data
Quality / ILM filter tests.
- Manual: set `i18n.locale: "ja-JP"`, open **Security → Data Quality** —
counts, treemap, and tables should match English behavior; ILM option
tooltips should show full descriptions.

English version:

https://github.com/user-attachments/assets/08a08ae8-c348-4c70-8304-fc93d47e292b

Japanese version after fix:

https://github.com/user-attachments/assets/d6c087bb-1c90-46cf-8cd2-1c80906a5f06
(cherry picked from commit 1f8538f)
@kibanamachine
Copy link
Copy Markdown
Contributor Author

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 9435 9436 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 12.0MB 12.0MB +107.0B

History

cc @agusruidiazgd

@kibanamachine kibanamachine merged commit 8de2440 into elastic:9.4 May 5, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants