Skip to content
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

Fix catalog inconsistency when creating a dossier from a dossiertemplate. #6952

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Apr 22, 2021

  1. Fix indexing of main dossier created from dossiertemplate.

    Because children are added to the main dossier with disabled indexing,
    we need to reindex the main dossier after the reinabling indexing.
    Niklaus Johner committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    61d0ab1 View commit details
    Browse the repository at this point in the history
  2. 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.
    Niklaus Johner committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    99822e8 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2021

  1. Make disable indexing thread-safe.

    Niklaus Johner committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    52841e8 View commit details
    Browse the repository at this point in the history