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

unskip Chrome UI Functional Tests.test/functional/apps/dashboard/group3/dashboard_state·ts #152245

Merged
merged 12 commits into from
Feb 28, 2023

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Feb 27, 2023

Fixes #139762

flaky test runner https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1965

2 changes where required to get functional tests running

  • Switch application state updating from string replace to rison decode/encode. _a is not longer provided in the URL unless there are unsaved changes to simple string replace did not work in some cases. Using rison decode/encode was easier then handling a lot of if statements around whether _a exists before attempting string replace, plus rison decode/encode is a lot more maintainable and robust.
  • Fix bug where appending &_a=(panels:()) to URL would not remove panels. Updated logic in sync_dashboard_url_state to handle case where panels has no length.

@nreese nreese marked this pull request as ready for review February 28, 2023 02:53
@nreese nreese requested a review from a team as a code owner February 28, 2023 02:53
@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.8.0 labels Feb 28, 2023
@elasticmachine
Copy link
Contributor

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

@nreese
Copy link
Contributor Author

nreese commented Feb 28, 2023

@elasticmachine merge upstream

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! nice cleanup!

code review

@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 385.3KB 385.3KB +29.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
securitySolution 428 430 +2

Total ESLint disabled count

id before after diff
securitySolution 506 508 +2

History

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

@nreese nreese merged commit 280b597 into elastic:main Feb 28, 2023
bmorelli25 pushed a commit to bmorelli25/kibana that referenced this pull request Mar 10, 2023
…p3/dashboard_state·ts (elastic#152245)

Fixes elastic#139762

flaky test runner
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1965

2 changes where required to get functional tests running
* Switch application state updating from string replace to rison
decode/encode. `_a` is not longer provided in the URL unless there are
unsaved changes to simple string replace did not work in some cases.
Using rison decode/encode was easier then handling a lot of if
statements around whether `_a` exists before attempting string replace,
plus rison decode/encode is a lot more maintainable and robust.
* Fix bug where appending `&_a=(panels:())` to URL would not remove
panels. Updated logic in sync_dashboard_url_state to handle case where
panels has no length.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
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.8.0
Projects
None yet
5 participants