4teamwork / ftw.solr

Solr integration for Plone
5 stars 5 forks source link

Update the modified index to match new rounding of zope DateTime #166

Closed njohner closed 4 years ago

njohner commented 4 years ago

In https://github.com/4teamwork/ftw.solr/issues/165 we fixed a rounding issue with the conversion of zope DateTime objects. We now need to update the modified index in solr to mirror that change and avoid having half the objects recognised as out of sync...

For the implementation of the upgrade, I copied the code from ftw.solr.browser.maintenance and tried to modify it as little as possible. The main differences are:

I also add tests that conversion works the same for python datetime and zope DateTime objects.

For https://github.com/4teamwork/ftw.solr/issues/165

njohner commented 4 years ago

voila, thanks for the review!

njohner commented 4 years ago

Estimated run time is 35 minutes for 500'000 objects.