-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[TSVB] Allow custom label for fields via index pattern field management #84612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
28f0c02 to
f5b9887
Compare
|
@elasticmachine merge upstream |
bf9accd to
06f8e71
Compare
06f8e71 to
640d89c
Compare
|
Pinging @elastic/kibana-app (Team:KibanaApp) |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
src/plugins/vis_type_timeseries/common/extract_index_patterns.test.ts
Outdated
Show resolved
Hide resolved
src/plugins/vis_type_timeseries/public/application/components/aggs/cumulative_sum.js
Outdated
Show resolved
Hide resolved
| } | ||
| }); | ||
|
|
||
| if (type === METRIC_TYPES.COUNT) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it would be a good idea to move this check in the beginning of the component. As it returns null for this type. no need to run the rest of the code, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this component should be refactored to use useEffect instead. But agree as a fast enhancement we can move that if up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree but let's do this for now ❤️
src/plugins/vis_type_timeseries/public/application/components/aggs/metric_select.js
Show resolved
Hide resolved
src/plugins/vis_type_timeseries/public/application/components/aggs/positive_only.js
Outdated
Show resolved
Hide resolved
src/plugins/vis_type_timeseries/public/application/components/aggs/serial_diff.js
Outdated
Show resolved
Hide resolved
src/plugins/vis_type_timeseries/public/application/components/aggs/std_sibling.js
Outdated
Show resolved
Hide resolved
stratoula
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, tested on Safari and seems to work fine.
sulemanof
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Tested in Chrome, works perfect 💕
src/plugins/vis_type_timeseries/server/lib/vis_data/get_series_data.js
Outdated
Show resolved
Hide resolved
|
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
…nt (elastic#84612) * [TSVB] Allow custom label for fields via index pattern field management Closes: elastic#84336 * replace saveObject, elasticsearch client to new one * fix CI * update schema * fix Top Hit * some changes * partially move getting fields into client side * fix PR comments * fix issue with getting fields * move SanitizedFieldType to common types * fix issue on changing index pattern * fix issue * fix regression * some work * remove extractFieldName, createCustomLabelSelectHandler * request/response processors should be async * some work * remove tests for createCustomLabelSelectHandler * fix table * fix placeholder * some work * fix jest * fix CI * fix label for table view * test: visualize app visual builder switch index patterns should be able to switch between index patterns * fix functional tests * fix sorting * fix labels for entire timerange mode * add createFieldsFetcher method * table view - fix pivot label * fix PR comments * fix issue with selecting buckets scripts * fix types * Update create_select_handler.test.ts * fix PR comments Co-authored-by: Kibana Machine <[email protected]>
…nt (#84612) (#88074) * [TSVB] Allow custom label for fields via index pattern field management Closes: #84336 * replace saveObject, elasticsearch client to new one * fix CI * update schema * fix Top Hit * some changes * partially move getting fields into client side * fix PR comments * fix issue with getting fields * move SanitizedFieldType to common types * fix issue on changing index pattern * fix issue * fix regression * some work * remove extractFieldName, createCustomLabelSelectHandler * request/response processors should be async * some work * remove tests for createCustomLabelSelectHandler * fix table * fix placeholder * some work * fix jest * fix CI * fix label for table view * test: visualize app visual builder switch index patterns should be able to switch between index patterns * fix functional tests * fix sorting * fix labels for entire timerange mode * add createFieldsFetcher method * table view - fix pivot label * fix PR comments * fix issue with selecting buckets scripts * fix types * Update create_select_handler.test.ts * fix PR comments Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Closes: #84336
Summary
Describe the feature:
In #70039 we have started to use custom label for fields in
Discoveryplugin. The same functionality needs to be implemented forTSVBtoo.TSVBallows you to work with multiple indexes + non-Kibanaindex patterns (egElasticindexes,Rollupindexes), we should only enable this feature if the user is using oneKibana Index Patternfor their visualization!For those who will test this PR
Below you can find all places where lists with fields can be used:
We should be able to select Field for Metric Aggregations:


Average,Cardinality,Counter Rate,Max,Min,Percentile,Percentile Rank,Std. Deviation,Sum,Sum of squares,Top Hit,Value Count,VarianceWe should be able to select Field for PanelOptions -> Time Field:


Placeholder for
Time Fieldmust also support custom labels:Custom label should be applied when there is no label for aggregation (valid for each tabs)

We should be able to select Field for Table tab -> Group by field Label should be applied also in table Header!

We should be able to select Field for TimeSeries -> Annotations

For

Top HitAggregation we should be able for select Field forOrder ByGroup By -> By

Markdown Tab

Panel Options -> Override index Pattern

Checklist