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

fix adding Visualize visualization to dashboard from modal directs user to dashboard listing page #90090

Merged
merged 3 commits into from
Feb 3, 2021

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented Feb 2, 2021

Summary

fixes #89917
Regression was introduced in #87635

In #87635 I needed additional methods on kbnUrlStateStorage and decided to completely expose underlying urlControls and removed previously exposed cancel and flush methods from kbnUrlStateStorage

I missed that state syncing utils were calling cancel when stoping state syncing: https://github.com/elastic/kibana/blob/master/src/plugins/kibana_utils/public/state_sync/state_sync.ts#L161
Calling this cancel was canceling any pending state updates which is important for #87635 scenario.

This pr returns cancel on kbnUrlStateStorage removed in #87635 and fixes #89917

Will be covered by functional test in #89245

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@Dosant Dosant marked this pull request as ready for review February 3, 2021 07:50
@Dosant Dosant requested review from a team as code owners February 3, 2021 07:50
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

Copy link
Contributor

@poffdeluxe poffdeluxe left a comment

Choose a reason for hiding this comment

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

lgtm!

@Dosant
Copy link
Contributor Author

Dosant commented Feb 3, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
kibanaUtils 154.5KB 154.5KB +23.0B

History

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

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

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

Fix looks good, appreciate the new Unit test!

@Dosant Dosant merged commit 84a67a4 into elastic:master Feb 3, 2021
Dosant added a commit to Dosant/kibana that referenced this pull request Feb 3, 2021
Dosant added a commit that referenced this pull request Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding Visualize visualization to dashboard from modal directs user to dashboard listing page
5 participants