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

Reindex AT content on PATCH #551

Merged
merged 1 commit into from
Jun 24, 2018
Merged

Reindex AT content on PATCH #551

merged 1 commit into from
Jun 24, 2018

Conversation

buchi
Copy link
Member

@buchi buchi commented Jun 23, 2018

Fixes #531

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 96.183% when pulling 204bde4 on fix-patch-reindex into 2fd577b on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 96.183% when pulling 204bde4 on fix-patch-reindex into 2fd577b on master.

@coveralls
Copy link

coveralls commented Jun 23, 2018

Coverage Status

Coverage decreased (-0.3%) to 96.127% when pulling 8deb37c on fix-patch-reindex into c92af77 on master.

@@ -67,6 +67,7 @@ def __call__(self, validate_all=False, data=None):
notify(ObjectInitializedEvent(obj))
obj.at_post_create_script()
else:
obj.reindexObject()
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we not also want this when the creation flag is set?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the creation flag is set, the object will be added to a container and reindexed because of that: https://github.com/zopefoundation/Products.CMFCore/blob/master/Products/CMFCore/CMFCatalogAware.py#L272
Thus I would like to avoid indexing twice, though collective.indexing would solve that.

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay!

@tisto tisto merged commit 8a57dab into master Jun 24, 2018
@tisto tisto deleted the fix-patch-reindex branch June 24, 2018 10:29
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.

4 participants