kibana/test
Kibana Machine 0ec6573aa8
[8.17] [Data View Field] Fix popularity score bugs (#211201) (#212614)
# Backport

This will backport the following commits from `main` to `8.17`:
- [[Data View Field] Fix popularity score bugs
(#211201)](https://github.com/elastic/kibana/pull/211201)

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

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

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2025-02-27T10:34:22Z","message":"[Data
View Field] Fix popularity score bugs (#211201)\n\n- Fixes
https://github.com/elastic/kibana/issues/211109\n\n## Summary\n\nThis PR
fixes a number of bugs in fields popularity logic:\n- [x] If field
popularity was customized via UI form, the value will be\nsaved now as a
number instead of a string\n- [x] Same for runtime fields in another
part of the code\n- [x] Since the data was polluted with string values,
this PR makes sure\nthat the incrementing would still work and the
result would be converted\nto number.\n- [x] If user opened the field
flyout, when selected/deselected fields\nas columns in the table, then
opened the field flyout again, the data\nshown as Popularity was
outdated. Now it should be fixed.\n- [x] Prevents reseting of Popularity
scores in other fields.\n- [x] Functional tests
in\n`test/functional/apps/discover/group6/_sidebar.ts`
and\n`test/functional/apps/management/data_views/_index_pattern_popularity.ts`.\n\n###
Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"97260415030a3b816b3a8507c51c4a5184ff25df","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Data
Views","v9.0.0","Team:DataDiscovery","backport:version","v8.17.0","v8.18.0","v9.1.0","v8.19.0"],"title":"[Data
View Field] Fix popularity score bugs
","number":211201,"url":"https://github.com/elastic/kibana/pull/211201","mergeCommit":{"message":"[Data
View Field] Fix popularity score bugs (#211201)\n\n- Fixes
https://github.com/elastic/kibana/issues/211109\n\n## Summary\n\nThis PR
fixes a number of bugs in fields popularity logic:\n- [x] If field
popularity was customized via UI form, the value will be\nsaved now as a
number instead of a string\n- [x] Same for runtime fields in another
part of the code\n- [x] Since the data was polluted with string values,
this PR makes sure\nthat the incrementing would still work and the
result would be converted\nto number.\n- [x] If user opened the field
flyout, when selected/deselected fields\nas columns in the table, then
opened the field flyout again, the data\nshown as Popularity was
outdated. Now it should be fixed.\n- [x] Prevents reseting of Popularity
scores in other fields.\n- [x] Functional tests
in\n`test/functional/apps/discover/group6/_sidebar.ts`
and\n`test/functional/apps/management/data_views/_index_pattern_popularity.ts`.\n\n###
Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"97260415030a3b816b3a8507c51c4a5184ff25df"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.17","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211201","number":211201,"mergeCommit":{"message":"[Data
View Field] Fix popularity score bugs (#211201)\n\n- Fixes
https://github.com/elastic/kibana/issues/211109\n\n## Summary\n\nThis PR
fixes a number of bugs in fields popularity logic:\n- [x] If field
popularity was customized via UI form, the value will be\nsaved now as a
number instead of a string\n- [x] Same for runtime fields in another
part of the code\n- [x] Since the data was polluted with string values,
this PR makes sure\nthat the incrementing would still work and the
result would be converted\nto number.\n- [x] If user opened the field
flyout, when selected/deselected fields\nas columns in the table, then
opened the field flyout again, the data\nshown as Popularity was
outdated. Now it should be fixed.\n- [x] Prevents reseting of Popularity
scores in other fields.\n- [x] Functional tests
in\n`test/functional/apps/discover/group6/_sidebar.ts`
and\n`test/functional/apps/management/data_views/_index_pattern_popularity.ts`.\n\n###
Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"97260415030a3b816b3a8507c51c4a5184ff25df"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
2025-02-27 14:36:16 +00:00
..
accessibility [8.x] [Console] UX Improvements for phase 2 (#190698) (#193169) 2024-09-18 01:22:58 -05:00
analytics [8.x] Add filters option to ftr_helper api (#196886) (#197509) 2024-10-23 14:24:10 -05:00
api_integration [8.x] [Discover][Field caps] Align with the ES responses for closed indices (#199717) (#200697) 2024-11-20 06:41:51 -06:00
common [8.x] Categorise Kibana plugins - Wave 2 (#199302) (#199461) 2024-11-09 10:18:22 -06:00
examples [8.x] [OneDiscover] Contextual App Menu Extension Point (#195448) (#198320) 2024-10-30 09:25:31 -05:00
functional [8.17] [Data View Field] Fix popularity score bugs (#211201) (#212614) 2025-02-27 14:36:16 +00:00
harden Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
health_gateway Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
interactive_setup_api_integration FIPS FTR Overrides and test skips (#192053) 2024-09-10 13:17:40 -04:00
interactive_setup_functional [8.x] chore(security, eslint): apply platform security-specific rules to all exclusively owned paths. (#195711) (#196010) 2024-10-12 11:19:03 -04:00
interpreter_functional Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
node_roles_functional Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
package [CI / FIPS] Convert smoke tests to use FIPS agent (#186858) 2024-06-26 12:55:51 -07:00
plugin_functional [8.17] [UA] Support Deprecated Data Streams Migrations (#202204) (#202601) 2024-12-02 19:01:29 -06:00
scripts [ci] Remove jenkins config (#173745) 2023-12-21 12:09:43 -06:00
server_integration [8.x] Enabling Full FTR, Integration, and Unit tests to the FIPS Test Pipeline (#192632) (#200780) 2024-11-19 13:03:12 -06:00
ui_capabilities/newsfeed_err Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc [CODEOWNERS] fix appex-qa ownership (#189602) 2024-07-31 14:20:47 +02:00
tsconfig.json [8.x] [LogsUI] Add UI setting to hide Logs Stream and dashboard panel option (#194519) (#195542) 2024-10-09 12:05:38 +02:00