Skip to content
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

[ML] Fix Single Metric Viewer chart failing to load if no points during calendar event #130000

Merged
merged 2 commits into from
Apr 12, 2022

Conversation

peteharverson
Copy link
Contributor

@peteharverson peteharverson commented Apr 12, 2022

Summary

Fixes #128462 where the main Single Metric Viewer chart would fail to load if there were no source data points during a calendar event.

Extra points are now manually added to the chart for scheduled events when there is absence of source metric data at the same time.

Before:
image

After:
image

Note for reviewers - the rare and high_non_zero_count detectors as shown in #128462 (comment) against the filebeat-nginx-2019.02.05 index from the filebeat_ecs QA snapshot can be used to reproduce this issue.

Fixes #128462

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

Code LGTM, was able to reproduce the issue on main and verified it's fixed with the PR.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
ml 3.3MB 3.3MB +198.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @peteharverson

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

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

LGTM ⚡

@peteharverson peteharverson added the auto-backport Deprecated - use backport:version if exact versions are needed label Apr 12, 2022
@peteharverson peteharverson merged commit 8afa2c3 into elastic:main Apr 12, 2022
@peteharverson peteharverson deleted the ml-smv-calendar-events-fix branch April 12, 2022 16:32
kibanamachine pushed a commit that referenced this pull request Apr 12, 2022
…ng calendar event (#130000)

* [ML] Fix Single Metric Viewer chart load if no points during calendar event

* [ML] Type fix

(cherry picked from commit 8afa2c3)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.2

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Apr 12, 2022
…ng calendar event (#130000) (#130041)

* [ML] Fix Single Metric Viewer chart load if no points during calendar event

* [ML] Type fix

(cherry picked from commit 8afa2c3)

Co-authored-by: Pete Harverson <[email protected]>
jloleysens added a commit to jloleysens/kibana that referenced this pull request Apr 13, 2022
…disable-server-side

* 'main' of github.com:elastic/kibana: (35 commits)
  [Uptime] remove latency limit warnings when using monitor management (elastic#129597)
  [Security Solution] [ReponseOps] Executes Cases Cypress test when there is a change on cases plugin (elastic#129992)
  Paramaterized Discover tests (elastic#129684)
  [Security Solution][Investigations] - Minor bug fixes (elastic#130054)
  [DOCS} Adds technical preview to Lens annotations (elastic#130058)
  [Security solution] [Endpoint] Revisit blocklist wrong labels (elastic#128773)
  [Security Solutions] Adds API docs for value lists (elastic#129962)
  [CI] Move jest tests to spot instances, and fix spot retries in PRs (elastic#130045)
  chore(NA): upgrades rules_node_js to v5.4.0 (elastic#130051)
  [SecuritySolution] Remove the cell hovers actions for agent status (elastic#130042)
  Upgrade RxJS to 7 (elastic#129087)
  [SecuritySolution] Clean up CaseContext (elastic#130036)
  Revert "chore(NA): upgrades rules_node_js to v5.4.0 (elastic#130021)"
  Use RuleDataReader to query for threshold signal history (elastic#129763)
  Remove securityRulesCancelEnabled setting and set shorter default timeouts (elastic#129769)
  Upgrade EUI to v54.0.0 (elastic#129653)
  [Security Solution] More Ransomware exceptionable fields (elastic#130039)
  Add e2e for the apm integration policy form (elastic#129860)
  chore(NA): upgrades rules_node_js to v5.4.0 (elastic#130021)
  [ML] Fix Single Metric Viewer chart failing to load if no points during calendar event (elastic#130000)
  ...

# Conflicts:
#	x-pack/plugins/screenshotting/server/screenshots/index.test.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Anomaly Detection ML anomaly detection :ml release_note:fix review v8.2.0 v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Single Metric Viewer chart fails to load if no points during a calendar event
7 participants