-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed an incorrect blocking of plugin cleanup on cancellation (#537)
* Removed an incorrect blocking of plugin cleanup on cancellation * Rebundle the js to be able to test the new changes. * Woudl help if i added the bundlegit status * Added a possibel solution to ensuring that a ghost plugin can never cause corruption issues for a page * Handle the error when a bound plugin cannot be found * Add a better comment to describe the new feature amd a better translatable error message * Added tests to test all boundaries * Added a note to check how the plugin position is generated and to think about cleaning ghosts * Merged latest changes from upstream support/4 and cleaned new flake 8 and isort failures * Added better comments * Added test to highlight ghosting issue * Remove any orphans hat hav ebeen left behind and reork logic to handle any in the future * Clean up the errors in cms_plugins * Bulk out tests to cover all eventualities, currently broken by the fact that we are catching an IntegrityError error * clean out typos found in PR * fix flake 8 errors in the tests * Cleaned out test logic that incorrectly tries to add a new plugin when it should reuse the ghost plugins position * Fixed the test on the transaction Index error * Added additional method to handle the creation of the ghost to clean the add_view method * Fix flke8 error * Fix incorrect write up for the test method get_plugin_id_from_response * Add additional edge checks to the tests and fix typos, and add additional information * Renamed the clean ghosts method
- Loading branch information
Showing
6 changed files
with
243 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ist/bundle-807097e2af.cms.ckeditor.min.js → ...ist/bundle-035eee7f1e.cms.ckeditor.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
# -*- coding: utf-8 -*- | ||
from cms.test_utils.testcases import CMSTestCase | ||
|
||
from djangocms_helper.base_test import BaseTestCase as _BaseTestCase | ||
from djangocms_helper.base_test import ( | ||
BaseTestCase as _BaseTestCase, | ||
BaseTransactionTestCase as _BaseTransactionTestCase | ||
) | ||
|
||
|
||
BaseTestCase = type('BaseTestCase', (CMSTestCase, _BaseTestCase), {}) | ||
BaseTransactionTestCase = type('BaseTestCase', (CMSTestCase, _BaseTransactionTestCase), {}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters