Skip to content

properly render disabled range control#20811

Merged
nreese merged 2 commits intoelastic:masterfrom
nreese:disabled_range_control
Jul 17, 2018
Merged

properly render disabled range control#20811
nreese merged 2 commits intoelastic:masterfrom
nreese:disabled_range_control

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

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