Skip to content

[Canvas] Single POST when manipulating multiple elements#26119

Merged
monfera merged 2 commits intomasterfrom
single-post-on-multi-element-manipulation
Nov 28, 2018
Merged

[Canvas] Single POST when manipulating multiple elements#26119
monfera merged 2 commits intomasterfrom
single-post-on-multi-element-manipulation

Conversation

@monfera
Copy link
Contributor

@monfera monfera commented Nov 23, 2018

Summary

With the introduction of selecting and manipulating multiple elements in Canvas (multiselect with Shift and clicks), a position change of the ad-hoc group resulted in multiple updates: one per element in the group. This contributes to slow performance of persisting changes. This PR batches the changes before a request is issued.

Another PR with a related performance enhancement potential is #26092 - slow performance arises due to a combination of various causes.

single-post

Without this PR it looked like this:
old

Checklist

For maintainers

@monfera monfera added the Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// label Nov 23, 2018
@monfera monfera self-assigned this Nov 23, 2018
@monfera monfera requested review from rashidkpc and w33ble November 23, 2018 13:32
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas

@monfera monfera changed the title [Canvas] Single post on multi element manipulation [Canvas] Single POST when manipulating multiple elements Nov 23, 2018
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@rashidkpc rashidkpc left a comment

Choose a reason for hiding this comment

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

Nice tweak, LGTM

@monfera monfera merged commit f27a0d7 into master Nov 28, 2018
@monfera
Copy link
Contributor Author

monfera commented Nov 28, 2018

@rashidkpc @timroes should it be backported to 6.5 and 6.x?

@monfera monfera deleted the single-post-on-multi-element-manipulation branch November 28, 2018 08:57
monfera added a commit to monfera/kibana that referenced this pull request Nov 28, 2018
* Feature: POST only once even when updating multiple Canvas elements

* Chore: remove disused action
monfera added a commit to monfera/kibana that referenced this pull request Nov 28, 2018
* Feature: POST only once even when updating multiple Canvas elements

* Chore: remove disused action
monfera added a commit that referenced this pull request Nov 28, 2018
…6365)

* Feature: POST only once even when updating multiple Canvas elements

* Chore: remove disused action
monfera added a commit that referenced this pull request Nov 28, 2018
…6366)

* Feature: POST only once even when updating multiple Canvas elements

* Chore: remove disused action
monfera added a commit to monfera/kibana that referenced this pull request Nov 28, 2018
* Feature: POST only once even when updating multiple Canvas elements

* Chore: remove disused action

(cherry picked from commit f27a0d7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t//

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants