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

[Dashboard] Un-skip Show Underlying Data Tests #148409

Conversation

ThomThomson
Copy link
Contributor

@ThomThomson ThomThomson commented Jan 4, 2023

Summary

Fixes #147625.

Flaky test runner
Screen Shot 2023-01-04 at 3 44 56 PM

When the dashboard was saved as without creating a copy, the set state from save modal reducer erroneously set the time range and time restore to undefined, when they should have just been left as-is. This PR fixes that, and unskips the test that was failing because of it.

This PR also introduces some changes to the refresh interval setting, which removes some slight flakiness from the dashboard view edit mode and solves some inconsistent behaviour. These changes include:

  • The refresh interval setting is now tracked properly in redux.
  • The refresh interval setting is now diffed properly, alongside the time range setting.

@ThomThomson ThomThomson added Feature:Dashboard Dashboard related features Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas loe:medium Medium Level of Effort release_note:skip Skip the PR/issue when compiling release notes impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. labels Jan 4, 2023
@ThomThomson
Copy link
Contributor Author

@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
dashboard 365.6KB 365.8KB +278.0B

History

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

@ThomThomson ThomThomson marked this pull request as ready for review January 9, 2023 17:30
@ThomThomson ThomThomson requested review from a team as code owners January 9, 2023 17:30
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@nreese nreese 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

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

Visualizations changes LGTM! (an unskipped test). Thanx Devon!

@ThomThomson ThomThomson merged commit 95a3313 into elastic:main Jan 10, 2023
@kibanamachine kibanamachine added v8.7.0 backport:skip This commit does not require backporting labels Jan 10, 2023
jennypavlova pushed a commit to jennypavlova/kibana that referenced this pull request Jan 13, 2023
Fix tracking of refresh interval setting in dashboard state
unskip show underlying data tests
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 Feature:Dashboard Dashboard related features impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:medium Medium Level of Effort release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.7.0
Projects
None yet
6 participants