[Lens] Move field existence from Lens to UnifiedFieldList plugin#139453
[Lens] Move field existence from Lens to UnifiedFieldList plugin#139453dimaanj merged 17 commits intoelastic:mainfrom
Conversation
…eld-existing-to-unified-field-list-plugin # Conflicts: # src/plugins/data_views/public/data_views/data_views_api_client.ts # x-pack/plugins/lens/public/app_plugin/app.tsx # x-pack/plugins/lens/public/indexpattern_service/loader.ts # x-pack/plugins/lens/public/indexpattern_service/service.ts # x-pack/plugins/lens/public/mocks/data_views_service_mock.ts # x-pack/plugins/lens/server/plugin.tsx # x-pack/plugins/lens/server/routes/existing_fields.ts
|
@elasticmachine merge upstream |
|
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
|
@elasticmachine merge upstream |
| */ | ||
|
|
||
| export const PLUGIN_ID = 'unifiedFieldList'; | ||
| export const FIELD_EXISTENCE_SETTING = 'unifiedFieldList:useFieldExistenceSampling'; |
There was a problem hiding this comment.
I think need migration from lens:useFieldExistenceSampling to unifiedFieldList:useFieldExistenceSampling, else the previous value of unifiedFieldList:useFieldExistenceSampling will get lost
flash1293
left a comment
There was a problem hiding this comment.
Didn't run but looks good except for the renaming of the advanced setting, I don't think that's worth the effort.
| if (params?.noDataFound) { | ||
| const isUsingSampling = core.uiSettings.get('lens:useFieldExistenceSampling'); | ||
| const isUsingSampling = core.uiSettings.get( | ||
| 'unifiedFieldList:useFieldExistenceSampling' |
There was a problem hiding this comment.
This change is not backwards compatible. As we are going to remove this setting in 8.6 anyway, let's keep it under the old name.
|
@dimaanj can the draft status be removed on this for final review? |
flash1293
left a comment
There was a problem hiding this comment.
Tested and Lens integration works fine, LGTM
|
@elasticmachine merge upstream |
kertal
left a comment
There was a problem hiding this comment.
I did just a quick check of the code and functionality locally in Lens, LGTM! Thx for taking care of this! 👍
|
@elasticmachine merge upstream |
|
merge conflict between base and head |
…eld-existing-to-unified-field-list-plugin
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: cc @dimaanj |
Summary
Closes #137658
This PR moves field existence API from Lens server to a common area of UnifiedFieldList plugin. There should be no UI changes.
Checklist