senaite / senaite.core

Enterprise Open Source Laboratory System (LIMS)
https://senaite.com
GNU General Public License v2.0
254 stars 145 forks source link

Cleanup UID catalog and remove orphan temporary objects #2494

Closed ramonski closed 8 months ago

ramonski commented 8 months ago

Description of the issue/feature this PR addresses

NOTE: Please merge https://github.com/senaite/senaite.core/pull/2492 first

This PR checks the UID catalog integrity to remove duplicate catalog brains and remove orphan objects with temporary IDs.

Current behavior before PR

Duplicate catalog entries might exist on their relative and absolute paths.

Desired behavior after PR is merged

Duplicate catalog entries are removed and orphan temporary objects are deleted.

-- I confirm I have tested this PR thoroughly and coded it according to PEP8 and Plone's Python styleguide standards.