[ML] Move duplicate Single Metric Viewer code to single location#263155
Conversation
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
Pinging @elastic/ml-ui (:ml) |
|
@elasticmachine merge upstream |
⏳ Build in-progress, with failures
Failed CI StepsHistory
|
peteharverson
left a comment
There was a problem hiding this comment.
Tested and couldn't find any regressions in the ML Single Metric Viewer or the dashboard panel. Just left a couple of comments.
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
This has been updated and is ready for a final look when you get a chance. 🙏 cc @peteharverson |
peteharverson
left a comment
There was a problem hiding this comment.
LGTM. Gave it another test, in the ML view and for the embeddable in Dashboard and Cases.
|
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
History
|
|
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
History
|
Summary
Fixes #201020
This PR implements a Single Metric Viewer (SMV) / time series chart refactor: logic that used to live in two places (
timeseriesexplorer.jsandtimeseriesexplorer_embeddable_chart.js) is centralized under a newtimeseriesexplorer_chart_controllerarea so the full-page Time Series Explorer and the embeddable chart share one implementation.Details
Under the new shared module,
timeseriesexplorer_chart_controller/:load_single_metric_context_data.tssmv_host_wiring.tscontext_chart_zoom_pipeline.tsresolve_context_finish_focus_range.tsanomalies_table_data.ts,normalize_table_severity.ts,entity_partition_helpers.tssingle_metric_viewer_chart_surface.tsx,use_single_metric_viewer_chart_model.ts,partition_fields_required_callout.tsxSMV-no-split.mov
SMV-with-split.mov
SMV-tables-under.mov
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesbackport:*labels.Identify risks
Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.
Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.