Skip to content

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

Merged
agusruidiazgd merged 3 commits intoelastic:mainfrom
agusruidiazgd:fix/dqd-japanese-lang-issue
May 5, 2026
Merged

[Security Solution][DQD] Fix empty page when language is set to Japanese#265782
agusruidiazgd merged 3 commits intoelastic:mainfrom
agusruidiazgd:fix/dqd-japanese-lang-issue

Conversation

@agusruidiazgd
Copy link
Copy Markdown
Contributor

@agusruidiazgd agusruidiazgd commented Apr 27, 2026

Summary

Closes: #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:

Screen.Recording.2026-04-27.at.15.10.44.mov

Japanese version after fix:

Screen.Recording.2026-04-27.at.15.09.50.mov

@agusruidiazgd agusruidiazgd self-assigned this Apr 27, 2026
@agusruidiazgd agusruidiazgd requested a review from a team as a code owner April 27, 2026 13:23
@agusruidiazgd agusruidiazgd added release_note:fix Team:Threat Hunting Security Solution Threat Hunting Team ci:cloud-deploy Create or update a Cloud deployment backport:version Backport to applied version labels v9.4.0 v9.3.4 v9.2.9 v8.19.15 labels Apr 27, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@kibanamachine
Copy link
Copy Markdown
Contributor

kibanamachine commented May 5, 2026

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 9378 9379 +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

Copy link
Copy Markdown
Contributor

@PhilippeOberti PhilippeOberti left a comment

Choose a reason for hiding this comment

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

Sorry for the late review, I had opened the tab then forgot about it!

@agusruidiazgd agusruidiazgd merged commit 1f8538f into elastic:main May 5, 2026
25 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.2, 9.3, 9.4

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

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 Some backports could not be created

Status Branch Result
8.19 Backport failed because of merge conflicts
9.2
9.3
9.4

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 265782

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request May 5, 2026
… Japanese (#265782) (#267754)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[Security Solution][DQD] Fix empty page when language is set to
Japanese (#265782)](#265782)

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

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

<!--BACKPORT [{"author":{"name":"Agustina Nahir
Ruidiaz","email":"61565784+agusruidiazgd@users.noreply.github.com"},"sourceCommit":{"committedDate":"2026-05-05T14:02:54Z","message":"[Security
Solution][DQD] Fix empty page when language is set to Japanese
(#265782)\n\n## Summary\n\nCloses:
https://github.com/elastic/kibana/issues/180860\nFixes the Security Data
Quality dashboard showing no data when Kibana\nuses a localized Japanese
UI , while network responses still return\nindex stats.\n\n##
Cause\n\nILM phase combo options use **localized `label`** and
**canonical\nEnglish `value`** (`hot`, `warm`, `unmanaged`, …). The
panel built\n`ilmPhases` from **`label` only**, then filtered indices by
comparing to\n`getIlmPhase()` output (always English). Under non-English
locales, **no\nphase matched**, so all indices were dropped and the UI
looked empty.\n\nILM filter **tooltips** passed `option.label`
into\n`getIlmPhaseDescription()`, which only switches on English keys,
so\ndescriptions were blank when labels were translated.\n\n##
Resolution\n\n- Derive **`ilmPhases` from `option.value`**, not
`label`\n(`ilmPhasesFromSelectedOptions` + unit test).\n- In
**`IlmPhaseFilter` `renderOption`**, keep **`label` for visible\ntext**
and use **`value`** for **`getIlmPhaseDescription`**.\n\n##
Verification\n\n- Jest: `ilm_phases_from_selected_options.test.ts` and
existing Data\nQuality / ILM filter tests.\n- Manual: set `i18n.locale:
\"ja-JP\"`, open **Security → Data Quality** —\ncounts, treemap, and
tables should match English behavior; ILM option\ntooltips should show
full descriptions.\n\n\n\nEnglish
version:\n\n\nhttps://github.com/user-attachments/assets/08a08ae8-c348-4c70-8304-fc93d47e292b\n\nJapanese
version after fix:
\n\n\nhttps://github.com/user-attachments/assets/d6c087bb-1c90-46cf-8cd2-1c80906a5f06","sha":"1f8538fd8aabc35e0eef0fe4dfb59fcc01e61d79","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Threat
Hunting","ci:cloud-deploy","backport:version","v9.4.0","v9.5.0","v9.2.9","v8.19.16","v9.3.5"],"title":"[Security
Solution][DQD] Fix empty page when language is set to
Japanese","number":265782,"url":"https://github.com/elastic/kibana/pull/265782","mergeCommit":{"message":"[Security
Solution][DQD] Fix empty page when language is set to Japanese
(#265782)\n\n## Summary\n\nCloses:
https://github.com/elastic/kibana/issues/180860\nFixes the Security Data
Quality dashboard showing no data when Kibana\nuses a localized Japanese
UI , while network responses still return\nindex stats.\n\n##
Cause\n\nILM phase combo options use **localized `label`** and
**canonical\nEnglish `value`** (`hot`, `warm`, `unmanaged`, …). The
panel built\n`ilmPhases` from **`label` only**, then filtered indices by
comparing to\n`getIlmPhase()` output (always English). Under non-English
locales, **no\nphase matched**, so all indices were dropped and the UI
looked empty.\n\nILM filter **tooltips** passed `option.label`
into\n`getIlmPhaseDescription()`, which only switches on English keys,
so\ndescriptions were blank when labels were translated.\n\n##
Resolution\n\n- Derive **`ilmPhases` from `option.value`**, not
`label`\n(`ilmPhasesFromSelectedOptions` + unit test).\n- In
**`IlmPhaseFilter` `renderOption`**, keep **`label` for visible\ntext**
and use **`value`** for **`getIlmPhaseDescription`**.\n\n##
Verification\n\n- Jest: `ilm_phases_from_selected_options.test.ts` and
existing Data\nQuality / ILM filter tests.\n- Manual: set `i18n.locale:
\"ja-JP\"`, open **Security → Data Quality** —\ncounts, treemap, and
tables should match English behavior; ILM option\ntooltips should show
full descriptions.\n\n\n\nEnglish
version:\n\n\nhttps://github.com/user-attachments/assets/08a08ae8-c348-4c70-8304-fc93d47e292b\n\nJapanese
version after fix:
\n\n\nhttps://github.com/user-attachments/assets/d6c087bb-1c90-46cf-8cd2-1c80906a5f06","sha":"1f8538fd8aabc35e0eef0fe4dfb59fcc01e61d79"}},"sourceBranch":"main","suggestedTargetBranches":["9.4","9.2","8.19","9.3"],"targetPullRequestStates":[{"branch":"9.4","label":"v9.4.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/265782","number":265782,"mergeCommit":{"message":"[Security
Solution][DQD] Fix empty page when language is set to Japanese
(#265782)\n\n## Summary\n\nCloses:
https://github.com/elastic/kibana/issues/180860\nFixes the Security Data
Quality dashboard showing no data when Kibana\nuses a localized Japanese
UI , while network responses still return\nindex stats.\n\n##
Cause\n\nILM phase combo options use **localized `label`** and
**canonical\nEnglish `value`** (`hot`, `warm`, `unmanaged`, …). The
panel built\n`ilmPhases` from **`label` only**, then filtered indices by
comparing to\n`getIlmPhase()` output (always English). Under non-English
locales, **no\nphase matched**, so all indices were dropped and the UI
looked empty.\n\nILM filter **tooltips** passed `option.label`
into\n`getIlmPhaseDescription()`, which only switches on English keys,
so\ndescriptions were blank when labels were translated.\n\n##
Resolution\n\n- Derive **`ilmPhases` from `option.value`**, not
`label`\n(`ilmPhasesFromSelectedOptions` + unit test).\n- In
**`IlmPhaseFilter` `renderOption`**, keep **`label` for visible\ntext**
and use **`value`** for **`getIlmPhaseDescription`**.\n\n##
Verification\n\n- Jest: `ilm_phases_from_selected_options.test.ts` and
existing Data\nQuality / ILM filter tests.\n- Manual: set `i18n.locale:
\"ja-JP\"`, open **Security → Data Quality** —\ncounts, treemap, and
tables should match English behavior; ILM option\ntooltips should show
full descriptions.\n\n\n\nEnglish
version:\n\n\nhttps://github.com/user-attachments/assets/08a08ae8-c348-4c70-8304-fc93d47e292b\n\nJapanese
version after fix:
\n\n\nhttps://github.com/user-attachments/assets/d6c087bb-1c90-46cf-8cd2-1c80906a5f06","sha":"1f8538fd8aabc35e0eef0fe4dfb59fcc01e61d79"}},{"branch":"9.2","label":"v9.2.9","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.16","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.3","label":"v9.3.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Agustina Nahir Ruidiaz <61565784+agusruidiazgd@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request May 5, 2026
… Japanese (#265782) (#267755)

# Backport

This will backport the following commits from `main` to `9.3`:
- [[Security Solution][DQD] Fix empty page when language is set to
Japanese (#265782)](#265782)

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

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

<!--BACKPORT [{"author":{"name":"Agustina Nahir
Ruidiaz","email":"61565784+agusruidiazgd@users.noreply.github.com"},"sourceCommit":{"committedDate":"2026-05-05T14:02:54Z","message":"[Security
Solution][DQD] Fix empty page when language is set to Japanese
(#265782)\n\n## Summary\n\nCloses:
https://github.com/elastic/kibana/issues/180860\nFixes the Security Data
Quality dashboard showing no data when Kibana\nuses a localized Japanese
UI , while network responses still return\nindex stats.\n\n##
Cause\n\nILM phase combo options use **localized `label`** and
**canonical\nEnglish `value`** (`hot`, `warm`, `unmanaged`, …). The
panel built\n`ilmPhases` from **`label` only**, then filtered indices by
comparing to\n`getIlmPhase()` output (always English). Under non-English
locales, **no\nphase matched**, so all indices were dropped and the UI
looked empty.\n\nILM filter **tooltips** passed `option.label`
into\n`getIlmPhaseDescription()`, which only switches on English keys,
so\ndescriptions were blank when labels were translated.\n\n##
Resolution\n\n- Derive **`ilmPhases` from `option.value`**, not
`label`\n(`ilmPhasesFromSelectedOptions` + unit test).\n- In
**`IlmPhaseFilter` `renderOption`**, keep **`label` for visible\ntext**
and use **`value`** for **`getIlmPhaseDescription`**.\n\n##
Verification\n\n- Jest: `ilm_phases_from_selected_options.test.ts` and
existing Data\nQuality / ILM filter tests.\n- Manual: set `i18n.locale:
\"ja-JP\"`, open **Security → Data Quality** —\ncounts, treemap, and
tables should match English behavior; ILM option\ntooltips should show
full descriptions.\n\n\n\nEnglish
version:\n\n\nhttps://github.com/user-attachments/assets/08a08ae8-c348-4c70-8304-fc93d47e292b\n\nJapanese
version after fix:
\n\n\nhttps://github.com/user-attachments/assets/d6c087bb-1c90-46cf-8cd2-1c80906a5f06","sha":"1f8538fd8aabc35e0eef0fe4dfb59fcc01e61d79","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Threat
Hunting","ci:cloud-deploy","backport:version","v9.4.0","v9.5.0","v9.2.9","v8.19.16","v9.3.5"],"title":"[Security
Solution][DQD] Fix empty page when language is set to
Japanese","number":265782,"url":"https://github.com/elastic/kibana/pull/265782","mergeCommit":{"message":"[Security
Solution][DQD] Fix empty page when language is set to Japanese
(#265782)\n\n## Summary\n\nCloses:
https://github.com/elastic/kibana/issues/180860\nFixes the Security Data
Quality dashboard showing no data when Kibana\nuses a localized Japanese
UI , while network responses still return\nindex stats.\n\n##
Cause\n\nILM phase combo options use **localized `label`** and
**canonical\nEnglish `value`** (`hot`, `warm`, `unmanaged`, …). The
panel built\n`ilmPhases` from **`label` only**, then filtered indices by
comparing to\n`getIlmPhase()` output (always English). Under non-English
locales, **no\nphase matched**, so all indices were dropped and the UI
looked empty.\n\nILM filter **tooltips** passed `option.label`
into\n`getIlmPhaseDescription()`, which only switches on English keys,
so\ndescriptions were blank when labels were translated.\n\n##
Resolution\n\n- Derive **`ilmPhases` from `option.value`**, not
`label`\n(`ilmPhasesFromSelectedOptions` + unit test).\n- In
**`IlmPhaseFilter` `renderOption`**, keep **`label` for visible\ntext**
and use **`value`** for **`getIlmPhaseDescription`**.\n\n##
Verification\n\n- Jest: `ilm_phases_from_selected_options.test.ts` and
existing Data\nQuality / ILM filter tests.\n- Manual: set `i18n.locale:
\"ja-JP\"`, open **Security → Data Quality** —\ncounts, treemap, and
tables should match English behavior; ILM option\ntooltips should show
full descriptions.\n\n\n\nEnglish
version:\n\n\nhttps://github.com/user-attachments/assets/08a08ae8-c348-4c70-8304-fc93d47e292b\n\nJapanese
version after fix:
\n\n\nhttps://github.com/user-attachments/assets/d6c087bb-1c90-46cf-8cd2-1c80906a5f06","sha":"1f8538fd8aabc35e0eef0fe4dfb59fcc01e61d79"}},"sourceBranch":"main","suggestedTargetBranches":["9.4","9.2","8.19","9.3"],"targetPullRequestStates":[{"branch":"9.4","label":"v9.4.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/265782","number":265782,"mergeCommit":{"message":"[Security
Solution][DQD] Fix empty page when language is set to Japanese
(#265782)\n\n## Summary\n\nCloses:
https://github.com/elastic/kibana/issues/180860\nFixes the Security Data
Quality dashboard showing no data when Kibana\nuses a localized Japanese
UI , while network responses still return\nindex stats.\n\n##
Cause\n\nILM phase combo options use **localized `label`** and
**canonical\nEnglish `value`** (`hot`, `warm`, `unmanaged`, …). The
panel built\n`ilmPhases` from **`label` only**, then filtered indices by
comparing to\n`getIlmPhase()` output (always English). Under non-English
locales, **no\nphase matched**, so all indices were dropped and the UI
looked empty.\n\nILM filter **tooltips** passed `option.label`
into\n`getIlmPhaseDescription()`, which only switches on English keys,
so\ndescriptions were blank when labels were translated.\n\n##
Resolution\n\n- Derive **`ilmPhases` from `option.value`**, not
`label`\n(`ilmPhasesFromSelectedOptions` + unit test).\n- In
**`IlmPhaseFilter` `renderOption`**, keep **`label` for visible\ntext**
and use **`value`** for **`getIlmPhaseDescription`**.\n\n##
Verification\n\n- Jest: `ilm_phases_from_selected_options.test.ts` and
existing Data\nQuality / ILM filter tests.\n- Manual: set `i18n.locale:
\"ja-JP\"`, open **Security → Data Quality** —\ncounts, treemap, and
tables should match English behavior; ILM option\ntooltips should show
full descriptions.\n\n\n\nEnglish
version:\n\n\nhttps://github.com/user-attachments/assets/08a08ae8-c348-4c70-8304-fc93d47e292b\n\nJapanese
version after fix:
\n\n\nhttps://github.com/user-attachments/assets/d6c087bb-1c90-46cf-8cd2-1c80906a5f06","sha":"1f8538fd8aabc35e0eef0fe4dfb59fcc01e61d79"}},{"branch":"9.2","label":"v9.2.9","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.16","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.3","label":"v9.3.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Agustina Nahir Ruidiaz <61565784+agusruidiazgd@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request May 5, 2026
… Japanese (#265782) (#267756)

# Backport

This will backport the following commits from `main` to `9.4`:
- [[Security Solution][DQD] Fix empty page when language is set to
Japanese (#265782)](#265782)

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

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

<!--BACKPORT [{"author":{"name":"Agustina Nahir
Ruidiaz","email":"61565784+agusruidiazgd@users.noreply.github.com"},"sourceCommit":{"committedDate":"2026-05-05T14:02:54Z","message":"[Security
Solution][DQD] Fix empty page when language is set to Japanese
(#265782)\n\n## Summary\n\nCloses:
https://github.com/elastic/kibana/issues/180860\nFixes the Security Data
Quality dashboard showing no data when Kibana\nuses a localized Japanese
UI , while network responses still return\nindex stats.\n\n##
Cause\n\nILM phase combo options use **localized `label`** and
**canonical\nEnglish `value`** (`hot`, `warm`, `unmanaged`, …). The
panel built\n`ilmPhases` from **`label` only**, then filtered indices by
comparing to\n`getIlmPhase()` output (always English). Under non-English
locales, **no\nphase matched**, so all indices were dropped and the UI
looked empty.\n\nILM filter **tooltips** passed `option.label`
into\n`getIlmPhaseDescription()`, which only switches on English keys,
so\ndescriptions were blank when labels were translated.\n\n##
Resolution\n\n- Derive **`ilmPhases` from `option.value`**, not
`label`\n(`ilmPhasesFromSelectedOptions` + unit test).\n- In
**`IlmPhaseFilter` `renderOption`**, keep **`label` for visible\ntext**
and use **`value`** for **`getIlmPhaseDescription`**.\n\n##
Verification\n\n- Jest: `ilm_phases_from_selected_options.test.ts` and
existing Data\nQuality / ILM filter tests.\n- Manual: set `i18n.locale:
\"ja-JP\"`, open **Security → Data Quality** —\ncounts, treemap, and
tables should match English behavior; ILM option\ntooltips should show
full descriptions.\n\n\n\nEnglish
version:\n\n\nhttps://github.com/user-attachments/assets/08a08ae8-c348-4c70-8304-fc93d47e292b\n\nJapanese
version after fix:
\n\n\nhttps://github.com/user-attachments/assets/d6c087bb-1c90-46cf-8cd2-1c80906a5f06","sha":"1f8538fd8aabc35e0eef0fe4dfb59fcc01e61d79","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Threat
Hunting","ci:cloud-deploy","backport:version","v9.4.0","v9.5.0","v9.2.9","v8.19.16","v9.3.5"],"title":"[Security
Solution][DQD] Fix empty page when language is set to
Japanese","number":265782,"url":"https://github.com/elastic/kibana/pull/265782","mergeCommit":{"message":"[Security
Solution][DQD] Fix empty page when language is set to Japanese
(#265782)\n\n## Summary\n\nCloses:
https://github.com/elastic/kibana/issues/180860\nFixes the Security Data
Quality dashboard showing no data when Kibana\nuses a localized Japanese
UI , while network responses still return\nindex stats.\n\n##
Cause\n\nILM phase combo options use **localized `label`** and
**canonical\nEnglish `value`** (`hot`, `warm`, `unmanaged`, …). The
panel built\n`ilmPhases` from **`label` only**, then filtered indices by
comparing to\n`getIlmPhase()` output (always English). Under non-English
locales, **no\nphase matched**, so all indices were dropped and the UI
looked empty.\n\nILM filter **tooltips** passed `option.label`
into\n`getIlmPhaseDescription()`, which only switches on English keys,
so\ndescriptions were blank when labels were translated.\n\n##
Resolution\n\n- Derive **`ilmPhases` from `option.value`**, not
`label`\n(`ilmPhasesFromSelectedOptions` + unit test).\n- In
**`IlmPhaseFilter` `renderOption`**, keep **`label` for visible\ntext**
and use **`value`** for **`getIlmPhaseDescription`**.\n\n##
Verification\n\n- Jest: `ilm_phases_from_selected_options.test.ts` and
existing Data\nQuality / ILM filter tests.\n- Manual: set `i18n.locale:
\"ja-JP\"`, open **Security → Data Quality** —\ncounts, treemap, and
tables should match English behavior; ILM option\ntooltips should show
full descriptions.\n\n\n\nEnglish
version:\n\n\nhttps://github.com/user-attachments/assets/08a08ae8-c348-4c70-8304-fc93d47e292b\n\nJapanese
version after fix:
\n\n\nhttps://github.com/user-attachments/assets/d6c087bb-1c90-46cf-8cd2-1c80906a5f06","sha":"1f8538fd8aabc35e0eef0fe4dfb59fcc01e61d79"}},"sourceBranch":"main","suggestedTargetBranches":["9.4","9.2","8.19","9.3"],"targetPullRequestStates":[{"branch":"9.4","label":"v9.4.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/265782","number":265782,"mergeCommit":{"message":"[Security
Solution][DQD] Fix empty page when language is set to Japanese
(#265782)\n\n## Summary\n\nCloses:
https://github.com/elastic/kibana/issues/180860\nFixes the Security Data
Quality dashboard showing no data when Kibana\nuses a localized Japanese
UI , while network responses still return\nindex stats.\n\n##
Cause\n\nILM phase combo options use **localized `label`** and
**canonical\nEnglish `value`** (`hot`, `warm`, `unmanaged`, …). The
panel built\n`ilmPhases` from **`label` only**, then filtered indices by
comparing to\n`getIlmPhase()` output (always English). Under non-English
locales, **no\nphase matched**, so all indices were dropped and the UI
looked empty.\n\nILM filter **tooltips** passed `option.label`
into\n`getIlmPhaseDescription()`, which only switches on English keys,
so\ndescriptions were blank when labels were translated.\n\n##
Resolution\n\n- Derive **`ilmPhases` from `option.value`**, not
`label`\n(`ilmPhasesFromSelectedOptions` + unit test).\n- In
**`IlmPhaseFilter` `renderOption`**, keep **`label` for visible\ntext**
and use **`value`** for **`getIlmPhaseDescription`**.\n\n##
Verification\n\n- Jest: `ilm_phases_from_selected_options.test.ts` and
existing Data\nQuality / ILM filter tests.\n- Manual: set `i18n.locale:
\"ja-JP\"`, open **Security → Data Quality** —\ncounts, treemap, and
tables should match English behavior; ILM option\ntooltips should show
full descriptions.\n\n\n\nEnglish
version:\n\n\nhttps://github.com/user-attachments/assets/08a08ae8-c348-4c70-8304-fc93d47e292b\n\nJapanese
version after fix:
\n\n\nhttps://github.com/user-attachments/assets/d6c087bb-1c90-46cf-8cd2-1c80906a5f06","sha":"1f8538fd8aabc35e0eef0fe4dfb59fcc01e61d79"}},{"branch":"9.2","label":"v9.2.9","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.16","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.3","label":"v9.3.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Agustina Nahir Ruidiaz <61565784+agusruidiazgd@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels ci:cloud-deploy Create or update a Cloud deployment release_note:fix Team:Threat Hunting Security Solution Threat Hunting Team v8.19.16 v9.2.9 v9.3.5 v9.4.0 v9.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data Quality page is not filled up when the locale is set to Japanese

5 participants