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

[Logs UI] Anomalies page dataset filtering #71110

Merged

Conversation

Kerry350
Copy link
Contributor

@Kerry350 Kerry350 commented Jul 8, 2020

⚠️ ⚠️ ⚠️ DON'T REVIEW UNTIL #70982 IS MERGED ⚠️ ⚠️ ⚠️

Summary

Adds dataset filtering to the anomalies page, closes #71063.

Testing

  • Ensure dataset filtering works with one, many, and no datasets selected.

Kerry350 added 3 commits July 7, 2020 16:59
- Adds an anomalies API endpoint
- Adds server side sorting / pagination to anomalies endpoint
- Renders category examples in the anomalies table
- Renames log entry rate examples to log entry examples
Make dataset fetching a common functionality

Add anomaies datasets route

Hook up datasets with client side hook and UI

Hook up dataset filtering to anomalies API endpoint

Hook up dataset filtering with log entry rate endpoint
@Kerry350 Kerry350 force-pushed the 71063-add-dataset-filtering-to-anomalies-page branch from cb924a7 to 216cc9e Compare July 9, 2020 10:16
@Kerry350 Kerry350 requested a review from a team July 9, 2020 10:17
@Kerry350 Kerry350 self-assigned this Jul 9, 2020
@Kerry350 Kerry350 added Feature:Logs UI Logs UI feature release_note:enhancement Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.9.0 v8.0.0 labels Jul 9, 2020
@Kerry350 Kerry350 added this to the Logs UI 7.9 milestone Jul 9, 2020
@Kerry350 Kerry350 marked this pull request as ready for review July 9, 2020 10:19
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@afgomez afgomez self-requested a review July 9, 2020 11:47
Copy link
Contributor

@afgomez afgomez left a comment

Choose a reason for hiding this comment

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

This is a first pass focused on functionality and on the most relevant commit until the blocking PR gets merged.

Functionality wise, it works! Code wise I can easily follow and understand what's going on. I have only a minor non-blocking comment about a small code duplication issue.

I'll wait until the blocking PR is merged to do a second pass and approve, but it's pretty much approved so far :)

@Kerry350
Copy link
Contributor Author

@afgomez (For tomorrow): This is ready for another look, hopefully it can squeeze in before FF.

The only notable changes from when you last looked at this are contained here: 0ec814e

The anomalies results hook was refactored to use a reducer for managing state as different parts of the tree impact others, notably pagination needs to be reset when anything changes. The dataset filtering has been added to that state management.

Everything else remains the same.

@sgrodzicki
Copy link

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

@kbn/optimizer bundle module count

id value diff baseline
infra 608 +1 607

History

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

Copy link
Contributor

@afgomez afgomez left a comment

Choose a reason for hiding this comment

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

Works as expected 🎉

@Kerry350 Kerry350 merged commit a91209c into elastic:master Jul 14, 2020
Kerry350 added a commit to Kerry350/kibana that referenced this pull request Jul 14, 2020
Adds dataset filtering to logs anomalies page
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 14, 2020
* master: (21 commits)
  [Maps] 7.9 design improvements (elastic#71563)
  [ML] Changing all calls to ML endpoints to use internal user (elastic#70487)
  [eventLog] prevent log writing when initialization fails (elastic#71339)
  [Observability] landing page always being displayed (elastic#71494)
  [IM] Address data stream copy feedback (elastic#71615)
  [Logs UI] Anomalies page dataset filtering (elastic#71110)
  [data.search.aggs] Remove `use_field_mapping` from top hits agg (elastic#71168)
  [ML] Anomaly swim lane embeddable navigation and filter actions (elastic#71082)
  Fixes typo in siem_cloudtrail job description (elastic#71569)
  Require granted API Keys to have a name (elastic#71623)
  Update  getUsageForCollection (elastic#71609)
  Only fetch saved elements once (elastic#71310)
  [SecuritySolution][Resolver] Adding siem index and guarding process ancestry (elastic#71570)
  [APM] Additional data telemetry changes (elastic#71112)
  [Visualize] Fix export table for table export links (elastic#71249)
  [Search] Server side search API (elastic#70446)
  use inclusive language (elastic#71607)
  [Security Solution] Hide timeline footer when Resolver is open (elastic#71516)
  [Index template wizard] Remove shadow and use border for components panels (elastic#71606)
  [ML] Kibana API endpoint for histogram chart data (elastic#70976)
  ...
Kerry350 added a commit that referenced this pull request Jul 14, 2020
Adds dataset filtering to logs anomalies page

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Logs UI Logs UI feature release_note:enhancement Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Logs UI] Add dataset filtering to the anomalies page
6 participants