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

properly render disabled range control #20811

Merged
merged 2 commits into from
Jul 17, 2018

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Jul 14, 2018

partial fix for #20807

Update RangeControl to properly handle disabled state. Add jest tests to ensure proper rendering.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@liza-mae
Copy link
Contributor

LGTM, test is now passing. Thanks for the quick turn around @nreese !

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@stacey-gammon
Copy link
Contributor

What do you think about adding some new selenium tests to _embeddable_rendering that moves the time range to where there is no data and does a few checks like await dashboardExpect.pieSliceCount(0);. I think that would have caught this issue, and would also cover any other widgets that cause a fatal crash when there is no data.

There was another bug that would have been caught with this test too, so I think it would be helpful.

Copy link
Contributor

@cjcenizal cjcenizal 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!

@nreese
Copy link
Contributor Author

nreese commented Jul 17, 2018

@stacey-gammon I am going to merge this without the additional functional tests. The jest tests provide good coverage that the components can be rendered when disabled and this fixes a big problem with the sample data set when the data loads with holes.

@nreese nreese merged commit ffa6109 into elastic:master Jul 17, 2018
nreese added a commit to nreese/kibana that referenced this pull request Jul 17, 2018
* properly render disabled range control

* remove disabled from existing elements
nreese added a commit that referenced this pull request Jul 17, 2018
* properly render disabled range control

* remove disabled from existing elements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants