Skip to content

[Discover] Fix formatting and sorting for custom ES|QL vars#209360

Merged
jughosta merged 18 commits intoelastic:mainfrom
jughosta:208020-esql-sorting
Feb 11, 2025
Merged

[Discover] Fix formatting and sorting for custom ES|QL vars#209360
jughosta merged 18 commits intoelastic:mainfrom
jughosta:208020-esql-sorting

Conversation

@jughosta
Copy link
Contributor

@jughosta jughosta commented Feb 3, 2025

Summary

By default the data view (which is used in ES|QL mode) has only mapped fields as per field caps for the current index pattern. This PR dynamically extends with additional fields based on ES|QL meta information.

This change helps to fix the formatting for ES|QL var values and fixes sorting on them.

Screenshot 2025-02-03 at 18 42 14 Screenshot 2025-02-03 at 18 42 50

Checklist

@jughosta jughosta added release_note:fix Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// Feature:ES|QL ES|QL related features in Kibana labels Feb 3, 2025
@jughosta jughosta self-assigned this Feb 3, 2025
@jughosta jughosta changed the title [Discover] Handle custom ES|QL fields [Discover] Fix formatting and sorting for custom ES|QL vars Feb 3, 2025
@jughosta jughosta marked this pull request as ready for review February 5, 2025 15:19
@jughosta jughosta requested review from a team as code owners February 5, 2025 15:19
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@jughosta jughosta requested a review from a team February 5, 2025 15:19
Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

yes this works great now 🙌 Thanx a ton Julia fir working on it (I didnt check the code, just tested the feature!)

Copy link
Contributor

@davismcphee davismcphee left a comment

Choose a reason for hiding this comment

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

Code changes look good, and it seems like it will also solve some other subtle issues, thanks! We might want to consider if this could be centralized at some point so ES|QL based data views include custom fields directly in their field lists, but not something for now at least.

Comment on lines +111 to +113
public readonly create = (field: FieldSpec): DataViewField => {
return new DataViewField({ ...field, shortDotsEnable });
};
Copy link
Contributor

Choose a reason for hiding this comment

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

I partly wonder if this would be more intuitive on the data views service instead since it doesn't actually modify the data view, but I don't feel strongly about it

Copy link
Contributor Author

@jughosta jughosta Feb 10, 2025

Choose a reason for hiding this comment

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

@davismcphee Yes, it might be a good location for it too. I wanted to keep it rather as a sync function but getting shortDotsEnable would require to make it async if defined for data views service.

Also should have mentioned it earlier, having this new create method allows to create data view field instances also from packages. DataViewField class is defined in the plugin and can be instantiated directly only in a plugin - we should probably move the whole class to a its own package at some point 🙃

Copy link
Contributor

Choose a reason for hiding this comment

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

I wanted to keep it rather as a sync function but getting shortDotsEnable would require to make it async if defined for data views service.

Good point, I also ran into a similar issue when working on the "All logs" data view since I originally tried to add the cloning logic directly in the data views service as a sync method. There seemed to be a way to work around this by modifying the UI settings abstraction used by the data views service, but I decided against it to avoid expanding the scope of that work.

DataViewField class is defined in the plugin and cannot be instantiated directly only in a plugin - we should probably move the whole class to a its own package at some point 🙃

++ This would probably be the best approach. I didn't clue in that this was a workaround for that limitation, but it would certainly be easier to manage if we could import and instantiate directly from packages.

@jughosta
Copy link
Contributor Author

@davismcphee Agree, centralizing it would be better. I considered doing it now too but there are some nuances:

  • Mutating the current data view fields list might create some unexpected side effects. One of them is what to do with the initial time field vs what is returned in the query response. Should the data view keep its time field or discard it if it's not present in the response. How would it affect the time picker.
  • Having a separate data view with only fields based on ES|QL response could be an option too. But creating a data view is an async operation and cannot be simply done during the rendering process. We would need to store it somewhere and most probably pass as an extra prop to UnifiedDataTable and UnifiedDocViewer which is cumbersome.

As a side note here, there is definitely a room for optimizing ES|QL mode by skipping fields fetching when ES|QL data view is created. It would work faster. But we would still need to fetch the time field separately I guess.

@davismcphee
Copy link
Contributor

@jughosta Thanks for the additional context, it's insightful. I'm actually encountering similar obstacles with the state management work related to data view async methods too. I created a separate issue from those observations so we don't lose track of them: #210464. Please feel free to reformat or add any additional context to the issue since you've been working on it lately.

@jughosta jughosta enabled auto-merge (squash) February 11, 2025 08:14
@jughosta jughosta merged commit 9635cfa into elastic:main Feb 11, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.x, 9.0

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

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
aiops 606 607 +1
apm 1702 1703 +1
canvas 1226 1227 +1
cloudSecurityPosture 792 793 +1
dashboard 728 729 +1
data 623 624 +1
datasetQuality 282 283 +1
dataViewManagement 223 224 +1
dataVisualizer 854 855 +1
discover 1099 1100 +1
esql 211 212 +1
esqlDataGrid 517 518 +1
eventAnnotationListing 744 745 +1
infra 1303 1304 +1
investigateApp 354 355 +1
lens 1819 1820 +1
lists 431 432 +1
logsShared 362 363 +1
maps 1338 1339 +1
ml 2217 2218 +1
observability 1347 1348 +1
observabilityAIAssistantApp 526 527 +1
presentationUtil 148 149 +1
searchPlayground 295 296 +1
securitySolution 6697 6698 +1
slo 993 994 +1
stackAlerts 273 274 +1
unifiedDocViewer 280 281 +1
unifiedHistogram 286 287 +1
unifiedSearch 395 396 +1
total +30

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/data-view-utils 6 11 +5

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
cloudSecurityPosture 537.4KB 537.7KB +257.0B
discover 847.1KB 847.3KB +169.0B
esqlDataGrid 190.5KB 190.8KB +256.0B
securitySolution 21.4MB 21.4MB +1.5KB
slo 877.6KB 877.8KB +260.0B
unifiedDocViewer 148.2KB 148.5KB +254.0B
total +2.7KB

Page load bundle

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

id before after diff
cloudSecurityPosture 18.9KB 18.8KB -139.0B
dataViews 62.9KB 62.9KB +39.0B
esqlDataGrid 9.4KB 9.3KB -139.0B
total -239.0B
Unknown metric groups

API count

id before after diff
@kbn/data-view-utils 8 13 +5
dataViews 1229 1233 +4
total +9

History

cc @jughosta

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Feb 11, 2025
…209360)

- Closes elastic#208020

## Summary

By default the data view (which is used in ES|QL mode) has only mapped
fields as per field caps for the current index pattern. This PR
dynamically extends with additional fields based on ES|QL meta
information.

This change helps to fix the formatting for ES|QL var values and fixes
sorting on them.

<img width="1673" alt="Screenshot 2025-02-03 at 18 42 14"
src="https://github.com/user-attachments/assets/3647a375-f0f5-43e6-815d-d5a4292c637a"
/>
<img width="643" alt="Screenshot 2025-02-03 at 18 42 50"
src="https://github.com/user-attachments/assets/9d84bc23-7665-43c1-8ac2-d67174b68c31"
/>

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
(cherry picked from commit 9635cfa)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.18 Backport failed because of merge conflicts
8.x Backport failed because of merge conflicts
9.0

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 209360

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 11, 2025
…09360) (#210519)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Discover] Fix formatting and sorting for custom ES|QL vars
(#209360)](#209360)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2025-02-11T09:58:51Z","message":"[Discover]
Fix formatting and sorting for custom ES|QL vars (#209360)\n\n- Closes
https://github.com/elastic/kibana/issues/208020\r\n\r\n##
Summary\r\n\r\nBy default the data view (which is used in ES|QL mode)
has only mapped\r\nfields as per field caps for the current index
pattern. This PR\r\ndynamically extends with additional fields based on
ES|QL meta\r\ninformation.\r\n\r\nThis change helps to fix the
formatting for ES|QL var values and fixes\r\nsorting on
them.\r\n\r\n<img width=\"1673\" alt=\"Screenshot 2025-02-03 at 18 42
14\"\r\nsrc=\"https://github.com/user-attachments/assets/3647a375-f0f5-43e6-815d-d5a4292c637a\"\r\n/>\r\n<img
width=\"643\" alt=\"Screenshot 2025-02-03 at 18 42
50\"\r\nsrc=\"https://github.com/user-attachments/assets/9d84bc23-7665-43c1-8ac2-d67174b68c31\"\r\n/>\r\n\r\n\r\n###
Checklist\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Stratoula Kalafateli
<efstratia.kalafateli@elastic.co>","sha":"9635cfa5268c6250111f8eb5edcd693311a47193","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:DataDiscovery","Feature:ES|QL","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Discover]
Fix formatting and sorting for custom ES|QL
vars","number":209360,"url":"https://github.com/elastic/kibana/pull/209360","mergeCommit":{"message":"[Discover]
Fix formatting and sorting for custom ES|QL vars (#209360)\n\n- Closes
https://github.com/elastic/kibana/issues/208020\r\n\r\n##
Summary\r\n\r\nBy default the data view (which is used in ES|QL mode)
has only mapped\r\nfields as per field caps for the current index
pattern. This PR\r\ndynamically extends with additional fields based on
ES|QL meta\r\ninformation.\r\n\r\nThis change helps to fix the
formatting for ES|QL var values and fixes\r\nsorting on
them.\r\n\r\n<img width=\"1673\" alt=\"Screenshot 2025-02-03 at 18 42
14\"\r\nsrc=\"https://github.com/user-attachments/assets/3647a375-f0f5-43e6-815d-d5a4292c637a\"\r\n/>\r\n<img
width=\"643\" alt=\"Screenshot 2025-02-03 at 18 42
50\"\r\nsrc=\"https://github.com/user-attachments/assets/9d84bc23-7665-43c1-8ac2-d67174b68c31\"\r\n/>\r\n\r\n\r\n###
Checklist\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Stratoula Kalafateli
<efstratia.kalafateli@elastic.co>","sha":"9635cfa5268c6250111f8eb5edcd693311a47193"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.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/209360","number":209360,"mergeCommit":{"message":"[Discover]
Fix formatting and sorting for custom ES|QL vars (#209360)\n\n- Closes
https://github.com/elastic/kibana/issues/208020\r\n\r\n##
Summary\r\n\r\nBy default the data view (which is used in ES|QL mode)
has only mapped\r\nfields as per field caps for the current index
pattern. This PR\r\ndynamically extends with additional fields based on
ES|QL meta\r\ninformation.\r\n\r\nThis change helps to fix the
formatting for ES|QL var values and fixes\r\nsorting on
them.\r\n\r\n<img width=\"1673\" alt=\"Screenshot 2025-02-03 at 18 42
14\"\r\nsrc=\"https://github.com/user-attachments/assets/3647a375-f0f5-43e6-815d-d5a4292c637a\"\r\n/>\r\n<img
width=\"643\" alt=\"Screenshot 2025-02-03 at 18 42
50\"\r\nsrc=\"https://github.com/user-attachments/assets/9d84bc23-7665-43c1-8ac2-d67174b68c31\"\r\n/>\r\n\r\n\r\n###
Checklist\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Stratoula Kalafateli
<efstratia.kalafateli@elastic.co>","sha":"9635cfa5268c6250111f8eb5edcd693311a47193"}},{"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>
@jughosta
Copy link
Contributor Author

jughosta commented May 5, 2025

💚 All backports created successfully

Status Branch Result
8.19

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

Questions ?

Please refer to the Backport tool documentation

jughosta added a commit to jughosta/kibana that referenced this pull request May 5, 2025
…209360)

- Closes elastic#208020

## Summary

By default the data view (which is used in ES|QL mode) has only mapped
fields as per field caps for the current index pattern. This PR
dynamically extends with additional fields based on ES|QL meta
information.

This change helps to fix the formatting for ES|QL var values and fixes
sorting on them.

<img width="1673" alt="Screenshot 2025-02-03 at 18 42 14"
src="https://github.com/user-attachments/assets/3647a375-f0f5-43e6-815d-d5a4292c637a"
/>
<img width="643" alt="Screenshot 2025-02-03 at 18 42 50"
src="https://github.com/user-attachments/assets/9d84bc23-7665-43c1-8ac2-d67174b68c31"
/>

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
(cherry picked from commit 9635cfa)

# Conflicts:
#	src/platform/packages/shared/kbn-discover-utils/src/__mocks__/data_view.ts
#	src/platform/packages/shared/kbn-unified-data-table/tsconfig.json
#	src/platform/plugins/shared/unified_doc_viewer/tsconfig.json
@jughosta jughosta deleted the 208020-esql-sorting branch May 5, 2025 12:31
jughosta added a commit that referenced this pull request May 5, 2025
…209360) (#220069)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Discover] Fix formatting and sorting for custom ES|QL vars
(#209360)](#209360)

<!--- 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-11T09:58:51Z","message":"[Discover]
Fix formatting and sorting for custom ES|QL vars (#209360)\n\n- Closes
https://github.com/elastic/kibana/issues/208020\r\n\r\n##
Summary\r\n\r\nBy default the data view (which is used in ES|QL mode)
has only mapped\r\nfields as per field caps for the current index
pattern. This PR\r\ndynamically extends with additional fields based on
ES|QL meta\r\ninformation.\r\n\r\nThis change helps to fix the
formatting for ES|QL var values and fixes\r\nsorting on
them.\r\n\r\n<img width=\"1673\" alt=\"Screenshot 2025-02-03 at 18 42
14\"\r\nsrc=\"https://github.com/user-attachments/assets/3647a375-f0f5-43e6-815d-d5a4292c637a\"\r\n/>\r\n<img
width=\"643\" alt=\"Screenshot 2025-02-03 at 18 42
50\"\r\nsrc=\"https://github.com/user-attachments/assets/9d84bc23-7665-43c1-8ac2-d67174b68c31\"\r\n/>\r\n\r\n\r\n###
Checklist\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Stratoula Kalafateli
<efstratia.kalafateli@elastic.co>","sha":"9635cfa5268c6250111f8eb5edcd693311a47193","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:DataDiscovery","Feature:ES|QL","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Discover]
Fix formatting and sorting for custom ES|QL
vars","number":209360,"url":"https://github.com/elastic/kibana/pull/209360","mergeCommit":{"message":"[Discover]
Fix formatting and sorting for custom ES|QL vars (#209360)\n\n- Closes
https://github.com/elastic/kibana/issues/208020\r\n\r\n##
Summary\r\n\r\nBy default the data view (which is used in ES|QL mode)
has only mapped\r\nfields as per field caps for the current index
pattern. This PR\r\ndynamically extends with additional fields based on
ES|QL meta\r\ninformation.\r\n\r\nThis change helps to fix the
formatting for ES|QL var values and fixes\r\nsorting on
them.\r\n\r\n<img width=\"1673\" alt=\"Screenshot 2025-02-03 at 18 42
14\"\r\nsrc=\"https://github.com/user-attachments/assets/3647a375-f0f5-43e6-815d-d5a4292c637a\"\r\n/>\r\n<img
width=\"643\" alt=\"Screenshot 2025-02-03 at 18 42
50\"\r\nsrc=\"https://github.com/user-attachments/assets/9d84bc23-7665-43c1-8ac2-d67174b68c31\"\r\n/>\r\n\r\n\r\n###
Checklist\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Stratoula Kalafateli
<efstratia.kalafateli@elastic.co>","sha":"9635cfa5268c6250111f8eb5edcd693311a47193"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.19"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/210519","number":210519,"state":"MERGED","mergeCommit":{"sha":"3f49fd963f5d9386dcf47381d053d0e00cc8c37e","message":"[9.0]
[Discover] Fix formatting and sorting for custom ES|QL vars (#209360)
(#210519)\n\n# Backport\n\nThis will backport the following commits from
`main` to `9.0`:\n- [[Discover] Fix formatting and sorting for custom
ES|QL
vars\n(#209360)](https://github.com/elastic/kibana/pull/209360)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n\n\nCo-authored-by:
Julia Rechkunova
<julia.rechkunova@elastic.co>"}},{"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/209360","number":209360,"mergeCommit":{"message":"[Discover]
Fix formatting and sorting for custom ES|QL vars (#209360)\n\n- Closes
https://github.com/elastic/kibana/issues/208020\r\n\r\n##
Summary\r\n\r\nBy default the data view (which is used in ES|QL mode)
has only mapped\r\nfields as per field caps for the current index
pattern. This PR\r\ndynamically extends with additional fields based on
ES|QL meta\r\ninformation.\r\n\r\nThis change helps to fix the
formatting for ES|QL var values and fixes\r\nsorting on
them.\r\n\r\n<img width=\"1673\" alt=\"Screenshot 2025-02-03 at 18 42
14\"\r\nsrc=\"https://github.com/user-attachments/assets/3647a375-f0f5-43e6-815d-d5a4292c637a\"\r\n/>\r\n<img
width=\"643\" alt=\"Screenshot 2025-02-03 at 18 42
50\"\r\nsrc=\"https://github.com/user-attachments/assets/9d84bc23-7665-43c1-8ac2-d67174b68c31\"\r\n/>\r\n\r\n\r\n###
Checklist\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Stratoula Kalafateli
<efstratia.kalafateli@elastic.co>","sha":"9635cfa5268c6250111f8eb5edcd693311a47193"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
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 Feature:ES|QL ES|QL related features in Kibana release_note:fix Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// v8.18.0 v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Discover] [ES|QL] Client side sorting doesnt work for fields not in the index

5 participants