Skip to content

Issue 28471: Added strict id checking#40673

Merged
igoristic merged 7 commits intoelastic:masterfrom
igoristic:28471
Jul 16, 2019
Merged

Issue 28471: Added strict id checking#40673
igoristic merged 7 commits intoelastic:masterfrom
igoristic:28471

Conversation

@igoristic
Copy link
Copy Markdown
Contributor

@igoristic igoristic commented Jul 9, 2019

Resolves #28471

Summary

The current implementation was only checking if the first word matches thus: Stores and Stores (Primaries) would always match.

This was hard to reproduce, because usually Store sizes lineup perfectly behind each other and Stores (Primaries) would always cover Stores, so there was no way to see which toggle state it was in. I randomized the data a little to be able to distinguish them.

@igoristic igoristic added bug Fixes for quality problems that affect the customer experience release_note:fix Team:Monitoring Stack Monitoring team v8.0.0 v7.2.1 v6.8.2 labels Jul 9, 2019
@igoristic igoristic requested a review from chrisronline July 9, 2019 18:18
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/stack-monitoring

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@chrisronline
Copy link
Copy Markdown
Contributor

Have you looked into adding a test for this?

Copy link
Copy Markdown
Contributor

@chrisronline chrisronline left a comment

Choose a reason for hiding this comment

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

Functionally, this LGTM!

I ran a script to manually make the primary storage size smaller than the total and observed the broken behavior and then saw the fixed behavior with this PR. Great job!

@igoristic igoristic requested a review from chrisronline July 12, 2019 23:47
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@chrisronline
Copy link
Copy Markdown
Contributor

Per our discussion in slack, let's convert this unit test into a jest test by renaming the test file to chart_target.test.js. Jest tests are much easier to maintain and iterate on and we should strive to use these moving forward.

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Copy link
Copy Markdown
Contributor

@chrisronline chrisronline left a comment

Choose a reason for hiding this comment

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

Test looks good!

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@igoristic igoristic merged commit 5d3dc60 into elastic:master Jul 16, 2019
@igoristic igoristic deleted the 28471 branch July 16, 2019 17:44
igoristic added a commit to igoristic/kibana that referenced this pull request Jul 16, 2019
* Added a strict id check

* Added unit tests

* Converted unit tests to jest
igoristic added a commit to igoristic/kibana that referenced this pull request Jul 16, 2019
* Added a strict id check

* Added unit tests

* Converted unit tests to jest
@igoristic
Copy link
Copy Markdown
Contributor Author

igoristic commented Jul 16, 2019

Backport:
7.x: 2dc1df7
7.2: 6e4a055
7.3 7e6a590

igoristic added a commit to igoristic/kibana that referenced this pull request Jul 16, 2019
* Added a strict id check

* Added unit tests

* Converted unit tests to jest
igoristic added a commit that referenced this pull request Jul 16, 2019
* Added a strict id check

* Added unit tests

* Converted unit tests to jest
igoristic added a commit that referenced this pull request Jul 16, 2019
* Added a strict id check

* Added unit tests

* Converted unit tests to jest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience release_note:fix Team:Monitoring Stack Monitoring team v7.2.2 v7.3.0 v7.4.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kibana graph "Disk (MB)" "Store (Primaries)" toggle'ing does not work.

3 participants