senaite / senaite.core

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

Fix user who retest is not considered a verifier #2522

Closed xispa closed 6 months ago

xispa commented 6 months ago

Description of the issue/feature this PR addresses

This Pull Request addresses a bug introduced with https://github.com/senaite/senaite.core/pull/1582 so users that performed a 'retest' transition were not considered verifiers.

The problem was that when retrieving the verifiers from a given analysis, the transition retest was not being considered at https://github.com/senaite/senaite.core/blob/1.3.x/bika/lims/content/abstractanalysis.py#L218

Linked issue: https://github.com/senaite/senaite.core/issues/

Current behavior before PR

User that retests an analysis is not considered a verifier of the analysis

Desired behavior after PR is merged

User that retests an analysis is considered a verifier of the analysis

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