-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fixed browser freezing on cms toolbar markup refresh after plugin edit #7070
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
Fixed browser freezing on cms toolbar markup refresh after plugin edit #7070
Conversation
fd79bd9
to
004d1da
Compare
@nichoski The code looks good. If possible, can you please post a GIF or video of this fixing the slowness of diff creation comparing it to old code? That would be really nice to be documented here. Thanks. |
@nichoski There is a failing test. Please make sure that the tests are passing. |
Yes @vinitkumar I saw it. I'll fix it soon. |
@vinitkumar the test is fixed. Please review when you can. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Let's get this merged and released 🚢 🚀
django-cms#7070) * Fixed browser freezing on cms toolbar markup refresh after plugin edit * Updated tests to work with fix * Removed unused variables * Removing unused Diff-DOM definition
* Fixed browser freezing on cms toolbar markup refresh after plugin edit (#7070) * Fixed browser freezing on cms toolbar markup refresh after plugin edit * Updated tests to work with fix * Removed unused variables * Removing unused Diff-DOM definition * Fix typos and accidentally deleted imports during the merge * Update cms/static/cms/js/modules/cms.changeform.js --------- Co-authored-by: nichoski <nichoski@gmail.com>
Description
Related resources
This fixes the bug reported here:
#7069
To update the contents of the django-cms toolbar after a plugin update, instead of creating a diff between old content and new content and applying the diff, this fix simply replaces the old content with the new content. This is because on sites with more content, the diff creating process is incredibly slow. Please see issue 7069 for more info.
develop