You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds version-aware sorting to the client side data table sorting in Lens:
The information about whether a column contains version number wasn't passed to the table so far. This PR introduces a sortingHint to the datasource operation meta data (as the datasource is aware of index patterns, it knows whether an underlying field has the version type) which is read by the datatable toExpression function and passed to the datatable function as an additional argument. In there, already existing semver and compare-versions packages are used to check for valid versions and sort accordingly.
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.
Not related to this task, but should we at some point add version as a field type? Right now it's interpreted as a string in the data panel.
yeah, it's rolled up into string in all the places (there's a many-to-one relationship between ES field types and Kibana field types). Breaking it out into its own type is much more complex because it has to be done for all the places currently handling string fields in all the apps which is probably not worth it because it's very close to string in most regards.
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
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.
Fixes #124015
This PR adds version-aware sorting to the client side data table sorting in Lens:

The information about whether a column contains version number wasn't passed to the table so far. This PR introduces a
sortingHintto the datasource operation meta data (as the datasource is aware of index patterns, it knows whether an underlying field has the version type) which is read by the datatable toExpression function and passed to the datatable function as an additional argument. In there, already existingsemverandcompare-versionspackages are used to check for valid versions and sort accordingly.