[UnifiedFieldList] Change icon of field list when mapping changes from unmapped to mapped #221308
Merged
kertal merged 7 commits intoelastic:mainfrom May 27, 2025
Merged
Conversation
Member
Author
|
/ci |
Member
Author
|
/ci |
Contributor
|
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
History
cc @kertal |
AlexGPlay
reviewed
May 27, 2025
Comment on lines
+201
to
+205
| if (shouldRefresh) { | ||
| expect(mockDataViewsService.refreshFields).toHaveBeenCalledWith(mockDataView, false, true); | ||
| } else { | ||
| expect(mockDataViewsService.refreshFields).not.toHaveBeenCalled(); | ||
| } |
Contributor
There was a problem hiding this comment.
question: should we split the tests in the ones that refresh and the ones that don't so we keep them without any logic?
AlexGPlay
approved these changes
May 27, 2025
Contributor
Member
Author
|
thx @AlexGPlay ! |
Contributor
|
Starting backport for target branches: 8.19 |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
May 27, 2025
…m unmapped to mapped (elastic#221308) When a field changes from unmapped to mapped the field list is updated, before this change it wasn't (cherry picked from commit 62bd0b9)
Contributor
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
kibanamachine
added a commit
that referenced
this pull request
May 27, 2025
…ges from unmapped to mapped (#221308) (#221622) # Backport This will backport the following commits from `main` to `8.19`: - [[UnifiedFieldList] Change icon of field list when mapping changes from unmapped to mapped (#221308)](#221308) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Matthias Wilhelm","email":"matthias.wilhelm@elastic.co"},"sourceCommit":{"committedDate":"2025-05-27T13:23:25Z","message":"[UnifiedFieldList] Change icon of field list when mapping changes from unmapped to mapped (#221308)\n\nWhen a field changes from unmapped to mapped the field list is updated, before this change it wasn't","sha":"62bd0b97394516ccbe022daaf85353abd398def3","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:DataDiscovery","backport:version","v9.1.0","v8.19.0"],"title":"[UnifiedFieldList] Change icon of field list when mapping changes from unmapped to mapped ","number":221308,"url":"https://github.com/elastic/kibana/pull/221308","mergeCommit":{"message":"[UnifiedFieldList] Change icon of field list when mapping changes from unmapped to mapped (#221308)\n\nWhen a field changes from unmapped to mapped the field list is updated, before this change it wasn't","sha":"62bd0b97394516ccbe022daaf85353abd398def3"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/221308","number":221308,"mergeCommit":{"message":"[UnifiedFieldList] Change icon of field list when mapping changes from unmapped to mapped (#221308)\n\nWhen a field changes from unmapped to mapped the field list is updated, before this change it wasn't","sha":"62bd0b97394516ccbe022daaf85353abd398def3"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
akowalska622
pushed a commit
to akowalska622/kibana
that referenced
this pull request
May 29, 2025
…m unmapped to mapped (elastic#221308) When a field changes from unmapped to mapped the field list is updated, before this change it wasn't
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Resolves #201751
This PR updates the field list, when a field changes from unmapped to mapped. Due to caching, before this change, the field stayed unmapped, when reloading Discover.
Testing
testfield should be mapped correctly, no longer unmappedChecklist