Problem/Motivation
Possible cases where two blocks are moved to the same place at the same time, the ajax command will return an error and the wrong value will be stored in the layout store
Steps to reproduce
Try load testing
Proposed resolution
Add progress throbber to lock the page
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | interdiff-3217150-2_3.txt | 1.17 KB | gauravvvv |
| #3 | 3217150-3.patch | 1.17 KB | gauravvvv |
| layout-builder-prevent-twice-send-ajax-request.patch | 711 bytes | oleh.tarasiuk |
Issue fork drupal-3217150
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
oleh.tarasiuk commentedComment #3
gauravvvv commentedHi @oleh.tarasiuk, Don't write code directly into .js file. First, write in es6.js then compile it into .js file.
with following commands:
yarn run build:js
Re-rolled the patch. Attached interdiff for same.
Comment #7
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.
Curious how are you able to trigger this?
Regardless it will need a test case.
Comment #10
danielvezaI can kind of replicate this on a fresh standard install with LB. I think it might be a general internet speed issue, I have to throttle my speed to get the occasional 500 to be thrown in the network tab if I perform multiple drags in quick succession. Unfortunately the patch doesn't resolve this.
Some more steps to replicate would be good here to track things down