-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix DeactivatedCatalogIndexing context-manager.
DeactivatedCatalogIndexing was not working properly because collective.indexing was still adding indexing operations to the indexing queue, and the patched methods were really only used when the queue was processed. This led to issues as whether an object would be indexed or not depended on when the queue was processed instead of when the object was added to the queue. To fix that issue we modify the Monkey patch to always skip indexing when active and modify the context-manager to patch and unpatch the indexing methods instead of adding an interface to the request as was done previously.
- Loading branch information
Niklaus Johner
committed
Apr 22, 2021
1 parent
61d0ab1
commit 99822e8
Showing
4 changed files
with
62 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix catalog inconsistency when creating a dossier from a dossiertemplate. [njohner] |
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
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