Skip to content

[Canvas] Better handling navigating to/from canvas#66407

Merged
crob611 merged 7 commits intoelastic:masterfrom
crob611:canvas-app-navigation
May 26, 2020
Merged

[Canvas] Better handling navigating to/from canvas#66407
crob611 merged 7 commits intoelastic:masterfrom
crob611:canvas-app-navigation

Conversation

@crob611
Copy link
Copy Markdown
Contributor

@crob611 crob611 commented May 13, 2020

Summary

Fixes #66183

We were tearing down all of Canvas (services, stores, navigation, etc) when navigating away from Canvas.

But there were a couple of scenarios where we could have requests in flight that upon completion are still dependent on those things. (Refreshing a workpad. Auto refresh timers. Autoplay timers.)

So this PR leaves some area uncleaned and then reinitializes them new upon rentering Canvas.

We are still tearing down our router and history (maybe we don't need to, but we can revisit that). But our router is dependent on being manipulated by some middleware at startup, so we are rebuilding the store when re-entering Canvas.

Would be good to come back and entirely clean up our routing/history stuff and attempt to make it much less dependent on the store.

@crob611 crob611 added review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// loe:small Small Level of Effort v8.0.0 release_note:skip Skip the PR/issue when compiling release notes impact:critical This issue should be addressed immediately due to a critical level of impact on the product. v7.8.0 v7.9.0 labels May 13, 2020
@crob611 crob611 requested a review from a team as a code owner May 13, 2020 13:41
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-canvas (Team:Canvas)

@crob611 crob611 force-pushed the canvas-app-navigation branch from 1863790 to dbcc254 Compare May 13, 2020 20:30
@crob611
Copy link
Copy Markdown
Contributor Author

crob611 commented May 18, 2020

@elasticmachine merge upstream

Copy link
Copy Markdown
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

@crob611
Copy link
Copy Markdown
Contributor Author

crob611 commented May 25, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

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

@crob611 crob611 merged commit 5d26740 into elastic:master May 26, 2020
jloleysens added a commit that referenced this pull request May 26, 2020
…ine-editor

* 'master' of github.com:elastic/kibana: (129 commits)
  [Canvas] Force embeddables to refresh when renderable reevaluated (#67133)
  [Canvas] Better handling navigating to/from canvas (#66407)
  [Ingest pipelines] Fix schema validation for simulate and update routes (#67199)
  do not use es from setup (#67277)
  Auto expand replicas for event log (#67286)
  Observability & APM do not use elasticsearch client provided via setup contract  (#67263)
  Fix privileges check when security is not enabled (#67308)
  add IIS home (#66918)
  [ML] Adding additional job service endpoint tests (#66892)
  [Ingest Manager] Update fleet internal doc with latest flags (#67193)
  [Discover] Deangularize the loading spinner (#67165)
  Add `application.navigateToUrl` core API (#67110)
  Improve indexpattern without timefield functional test (#67031)
  KibanaContext in index pattern managment ui (#66985)
  Fix Azure metrics tutorial inside the App Home/ Add data area (#66901)
  add azure logs home (#66910)
  fix: rum agent should work correctly on new platform (#67037)
  [test_utils/Testbed] Move to src/test_utils folder (OSS) (#66898)
  only block registration when appRoute contains the exact basePath (#67125)
  Changed actions API endpoints urls to follow Kibana STYLEGUIDE (#65936)
  ...

# Conflicts:
#	x-pack/plugins/ingest_pipelines/public/application/components/pipeline_form/pipeline_form_fields.tsx
crob611 pushed a commit to crob611/kibana that referenced this pull request May 26, 2020
* Better handling navigating to/from canvas

* fix types

* prettier

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
crob611 pushed a commit to crob611/kibana that referenced this pull request May 26, 2020
* Better handling navigating to/from canvas

* fix types

* prettier

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
crob611 pushed a commit that referenced this pull request May 26, 2020
* Better handling navigating to/from canvas

* fix types

* prettier

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
crob611 pushed a commit that referenced this pull request May 26, 2020
* Better handling navigating to/from canvas

* fix types

* prettier

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:critical This issue should be addressed immediately due to a critical level of impact on the product. loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v7.8.0 v7.9.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Canvas not handling app navigations properly

4 participants