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

[controls] fix timeslider control not filtering dashboard panels #145184

Merged
merged 6 commits into from
Nov 15, 2022

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Nov 14, 2022

#140739 caused a regression with timeslider control where ControlGroupContainer was not not firing updateOutput on output.timeslice changes.

This PR resolves the regression and adds functional tests to ensure interactions with timeslider properly flow to dashboard saved search panel

@nreese nreese changed the title Fix timeslider [controls] fix timeslider control not filtering dashboard panels Nov 14, 2022
@nreese
Copy link
Contributor Author

nreese commented Nov 14, 2022

@elasticmachine merge upstream

@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
controls 473.5KB 473.6KB +99.0B
discover 414.0KB 414.0KB +45.0B
total +144.0B
Unknown metric groups

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 59 65 +6
osquery 108 113 +5
securitySolution 441 447 +6
total +19

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 67 73 +6
osquery 109 115 +6
securitySolution 518 524 +6
total +20

History

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

@nreese nreese added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting v8.6.0 labels Nov 15, 2022
@nreese nreese marked this pull request as ready for review November 15, 2022 00:09
@nreese nreese requested review from a team as code owners November 15, 2022 00:09
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

Copy link
Contributor

@davismcphee davismcphee left a comment

Choose a reason for hiding this comment

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

Discover data-test-subj change LGTM

Copy link
Member

@nickpeihl nickpeihl left a comment

Choose a reason for hiding this comment

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

lgtm!

code review and tested in chrome.

@@ -11,6 +11,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import { compareFilters, COMPARE_ALL_OPTIONS, Filter, uniqFilters } from '@kbn/es-query';
import { BehaviorSubject, merge, Subject, Subscription } from 'rxjs';
import _ from 'lodash';
Copy link
Member

Choose a reason for hiding this comment

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

Honest question, because I really don't know. Would import { isEqual } from 'lodash'; be any better for compilation or performance?

Copy link
Contributor Author

@nreese nreese Nov 15, 2022

Choose a reason for hiding this comment

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

I found this article which demonstrates that either method produces the same bundle size. I am not sure how the 2 methods effect compilation speed.

Copy link
Member

@nickpeihl nickpeihl Nov 15, 2022

Choose a reason for hiding this comment

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

Makes sense. Looks like we also have lodash in @kbn/ui-shared-deps-src. And I've found more context here. tldr; don't import from 'lodash/*.

@nreese nreese merged commit b74137e into elastic:main Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants