Skip to content

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

Merged
kibanamachine merged 1 commit intoelastic:9.2from
kibanamachine:backport/9.2/pr-265782
May 5, 2026
Merged

[9.2] [Security Solution][DQD] Fix empty page when language is set to Japanese (#265782)#267754
kibanamachine merged 1 commit intoelastic:9.2from
kibanamachine:backport/9.2/pr-265782

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.2:

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 kibanamachine added the backport This PR is a backport of another PR label May 5, 2026
@kibanamachine kibanamachine enabled auto-merge (squash) May 5, 2026 14:15
@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 8317 8318 +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 11.1MB 11.1MB +106.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
securitySolution 107.4KB 107.4KB -1.0B

cc @agusruidiazgd

@kibanamachine kibanamachine merged commit 666f2f2 into elastic:9.2 May 5, 2026
24 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