senaite / senaite.core

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

Make `uncatalog_brain` to fallback to RID when no UID (as path) found #2489

Closed xispa closed 8 months ago

xispa commented 8 months ago

Description of the issue/feature this PR addresses

This Pull Request ensures the uncatalog_brain takes into account that the path of some brains might be different from the path they had when they were catalogued for the first time.

Current behavior before PR

Is not possible to un-catalog brains that were catalogued before the object had the definitive path

Desired behavior after PR is merged

Is possible to un-catalog brains that were catalogued before the object had the definitive path

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

ramonski commented 8 months ago

Hi Jordi, let me know how you would like to proceed with this one.