8000 Fixed browser freezing on cms toolbar markup refresh after plugin edit by nichoski · Pull Request #7070 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

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

Conversation

nichoski
Copy link
Contributor
@nichoski nichoski commented Jun 3, 2021

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.

  • I have opened this pull request against develop
  • I have added or modified the tests when changing logic
  • I have followed the conventional commits guidelines to add meaningful information into the changelog
  • I have read the contribution guidelines and I have joined #workgroup-pr-review on Slack to find a “pr review buddy” who is going to review my pull request.

@nichoski nichoski force-pushed the 7069-page-unresponsive-after-plugin-update branch from fd79bd9 to 004d1da Compare June 3, 2021 12:49
@crydotsnake crydotsnake requested review from goutnet and vinitkumar June 3, 2021 17:22
@vinitkumar
Copy link
Member

@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.

@vinitkumar
Copy link
Member

@nichoski There is a failing test. Please make sure that the tests are passing.

@nichoski
Copy link
Contributor Author
nichoski commented Jun 4, 2021

Yes @vinitkumar I saw it. I'll fix it soon.

@nichoski
Copy link
Contributor Author
nichoski commented Jun 8, 2021

@vinitkumar the test is fixed. Please review when you can.

Copy link
Member
@vinitkumar vinitkumar left a 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 🚢 🚀

@vinitkumar vinitkumar requested a review from marksweb June 8, 2021 17:33
@vinitkumar vinitkumar merged commit ac45928 into django-cms:develop Jun 8, 2021
fsbraun pushed a commit to fsbraun/django-cms that referenced this pull request Jan 28, 2024
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
vinitkumar pushed a commit that referenced this pull request Feb 4, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Page becomes slow/unresponsive after plugin adding/editing/removing
3 participants
0