[Metrics][Discover] Discover to prefer line chars for time series data#244595
Conversation
src/platform/packages/shared/kbn-unified-histogram/services/lens_vis_service.ts
Outdated
Show resolved
Hide resolved
3444eab to
f37dab2
Compare
735f551 to
ca5109f
Compare
ca5109f to
4c88e52
Compare
|
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
|
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
|
Pinging @elastic/kibana-esql (Team:ESQL) |
|
@elasticmachine merge upstream |
stratoula
left a comment
There was a problem hiding this comment.
Thanx Carlos, it works ok! I have added some ideas on how to make this function a bit smarter. I dont think you need the bucketColumns logic. Check my last comment.
You also don't get into account the TBucket function which I am assuming is going to be the most popular one with timeseries.
Last but not least before we merge it, let's wait for this to get merged first #244753 (to test them together) and I am also seen some weird behavior in ES|QL in some cases, for example
TS kibana_sample_data_logstsdb | EVAL meow = DATE_TRUNC(1 hour, @timestamp) | STATS AVG(LAST_OVER_TIME(bytes)) BY meow
The above is another way to create time buckets and is not working correctly in ES|QL TS mode. I asked the team, so let's wait for them to respond first to see if we should also include it on our checks or not!
src/platform/packages/shared/kbn-esql-utils/src/utils/query_parsing_helpers.ts
Outdated
Show resolved
Hide resolved
src/platform/packages/shared/kbn-esql-utils/src/utils/query_parsing_helpers.ts
Outdated
Show resolved
Hide resolved
src/platform/packages/shared/kbn-esql-utils/src/utils/query_parsing_helpers.ts
Outdated
Show resolved
Hide resolved
src/platform/packages/shared/kbn-esql-utils/src/utils/query_parsing_helpers.ts
Show resolved
Hide resolved
src/platform/packages/shared/kbn-esql-utils/src/utils/query_parsing_helpers.ts
Outdated
Show resolved
Hide resolved
davismcphee
left a comment
There was a problem hiding this comment.
Tested locally, Data Discovery changes LGTM 👍
src/platform/packages/shared/kbn-unified-histogram/services/lens_vis_service.ts
Show resolved
Hide resolved
|
@elasticmachine merge upstream |
|
Pinging @elastic/obs-presentation-team (Team:obs-presentation) |
stratoula
left a comment
There was a problem hiding this comment.
Thanx Carlos. ES|QL changes LGTM. I noticed a bug though when changing from one breakdown to another so I pushed a fix. The visualizations team needs to review
src/platform/packages/shared/kbn-esql-utils/src/utils/query_parsing_helpers.test.ts
Outdated
Show resolved
Hide resolved
| datasourceId?: string | ||
| ) { | ||
| try { | ||
| const isSubtypeSupported = |
There was a problem hiding this comment.
Adds another check for the validation of the subVisualizationId. This is important because the suggestions are being generated for all visualizations. So this is valid for XY but it is not for a partition. So we dont send it when it is not valid.
Without it if you change breakdowns (for example from TBUCKET to BUCKET) you will see a notification error.
…rsing_helpers.test.ts Co-authored-by: Stratou <stratoula1@gmail.com>
|
@elasticmachine merge upstream |
nickofthyme
left a comment
There was a problem hiding this comment.
Viz Code changes LGTM
…-prefer-line-chart-for-bucket-agg-poc
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
Unknown metric groupsAPI count
async chunk count
History
|
* commit '6647f813c9fa03ac0378e3d4756246e8dc4b4c76': (33 commits) [Detection Engine] Extracts Rules/Alerts/Exceptions permission to new Rules feature privileges (elastic#239634) [Agent Builder] Add Intro Tour (elastic#245551) Add datastream lifecycle support to indices metadata (elastic#245548) [Serverless] Update preconfigured connectors (elastic#245445) [Metrics][Discover] Discover to prefer line chars for time series data (elastic#244595) Update dependency @elastic/ebt to ^1.4.1 (main) (elastic#241629) [One Workflow] fix: request bodies with oneof schemas (`kibana.SetAlertsStatus`, etc) (elastic#245344) Update dependency ai to v5 (elastic#244675) Fix Discover trace waterfall behavior with duplicate spans (elastic#244984) [FSH] Migrated fs usage to kbn/fs for sample ingest (elastic#244163) Streamlang: Unskip type coercion test (elastic#245519) [Response Ops][Reporting] Fixing error in calculating delay value between retries (elastic#245431) Add TopNavMenuBeta to navigation plugin (elastic#243578) [scout] support custom servers configuration (elastic#244306) [Fleet] Run agentless background sync without dry run (elastic#245286) Fix Change Password Flaky Test (elastic#245443) Add new gap fill status for rules (elastic#242595) [Kibana Search] Move SLOs higher up in search results (elastic#245518) feat(slo): introduce find SLO instances internal route (elastic#245333) [FSH] Dropped unnecessary `fs` persistence for synthetics project code (elastic#244338) ...
closes #236261
Summary
Changes the call to Suggestion API in Discover to set the preferred char type as
lineif the query contains a timeseries bucket aggregationShould work
Important
The scenario above depends on this PR #244753
Should not work
