Skip to content

Fix 'workpad flash' when loading new workpad#44387

Merged
clintandrewhall merged 3 commits intoelastic:masterfrom
clintandrewhall:fix-workpad-load
Aug 30, 2019
Merged

Fix 'workpad flash' when loading new workpad#44387
clintandrewhall merged 3 commits intoelastic:masterfrom
clintandrewhall:fix-workpad-load

Conversation

@clintandrewhall
Copy link
Copy Markdown
Contributor

Summary

Fixes #29956.

The workpad state is not "reset" when visiting the home page of Canvas. As a result, the previously-loaded workpad stays active until the user chooses another workpad to load. When the do so, the previous workpad "flashes" in place before the next is loaded. This has some awkward consequences, including re-saving the newly-loaded workpad, (because the persist middleware catches the change in workpad), and the link to load the previously-loaded workpad is bold, which is a feature reserved for the loading workpad dialog, not the home page.

This fix resets the workpad state back to the "default" workpad when visiting the home page. It also instructs the persist middleware to ignore resetWorkpad as well as appReady, (why persist the workpad when the app just loaded?)

@clintandrewhall clintandrewhall added 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:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. labels Aug 29, 2019
@clintandrewhall clintandrewhall requested review from a team as code owners August 29, 2019 15:41
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-canvas

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@cqliu1 cqliu1 added the review label Aug 29, 2019
@nik9000
Copy link
Copy Markdown
Member

nik9000 commented Aug 29, 2019

@elasticmachine run elasticsearch-ci/docs

Copy link
Copy Markdown
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

SCSS changes are minor and moves. Did not test functionality.

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@clintandrewhall
Copy link
Copy Markdown
Contributor Author

jenkins test this

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Copy link
Copy Markdown
Contributor

@cqliu1 cqliu1 left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Works as described, and now it only shows a blank workpad before loading the active workpad. Thanks for fixing that flash!

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@clintandrewhall clintandrewhall merged commit e65fb7c into elastic:master Aug 30, 2019
clintandrewhall added a commit that referenced this pull request Aug 30, 2019
* Fix 'workpad flash' when loading new workpad

* Fix SCSS path
jloleysens added a commit to jloleysens/kibana that referenced this pull request Sep 2, 2019
…-to-np-ready

* 'master' of github.com:elastic/kibana: (409 commits)
  [ML] Data frame analytics: Fix source index checks. (elastic#44479)
  [Code] try fix this test (elastic#43692)
  skip flaky suite (elastic#44572) (elastic#42111) (elastic#44286) (elastic#43557) (elastic#42567)
  skip flaky suite (elastic#44560)
  skip flaky suite (elastic#44250)
  disable flaky suite (elastic#41336)
  [code] Update download URLs for go lsp. (elastic#44581)
  disable flaky suite (elastic#44575)
  disable flaky suite (elastic#44576)
  [Code] add functional test to verify lang server full api symbol/reference counts (elastic#44051)
  Improve Storybook scripts and load time (elastic#44511)
  Update Dependencies (elastic#44519)
  Remove use of injecti18n in Embeddables plugin (elastic#44043)
  [SIEM] Adds a configuraton option for the default SIEM date time range (elastic#44540)
  [Uptime]Fix/issue 40584  section headline should be inside panel (elastic#43468)
  disable flaky suite (elastic#22322)
  Changes network to use ECS fields (elastic#44392)
  Fix 'workpad flash' when loading new workpad (elastic#44387)
  [renovate] bump new PR version labels
  Update dependency cmd-shim to ^2.1.0 (elastic#44034)
  ...

# Conflicts:
#	src/legacy/core_plugins/console/public/index.html
@clintandrewhall clintandrewhall deleted the fix-workpad-load branch September 18, 2019 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our 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// v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Canvas - unnecessary fetch of previously loaded workpad

5 participants