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

Fix rejected sample analyses are re-added on profile removal #2672

Merged
merged 3 commits into from
Feb 12, 2025

Conversation

ramonski
Copy link
Contributor

Description of the issue/feature this PR addresses

This PR fixes the behavior that rejected sample analyses are re-added if the Profile was unlinked after the analyses have been rejected.

Example:

  1. Add a sample with a profile:
H2O-0002 — SENAITE LIMS 2025-02-12 9 AM-57-50
  1. Reject all analyses:
H2O-0002 — SENAITE LIMS 2025-02-12 9 AM-58-48
  1. Unlink the profile and save:
H2O-0002 — SENAITE LIMS 2025-02-12 9 AM-59-47

Current behavior before PR

Analyses are added again:

H2O-0002 — SENAITE LIMS 2025-02-12 10 AM-00-59

Desired behavior after PR is merged

No additional analyses are added:

H2O-0002 — SENAITE LIMS 2025-02-12 9 AM-58-48

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

@ramonski ramonski requested a review from xispa February 12, 2025 09:04
@xispa xispa merged commit a55d09c into 2.x Feb 12, 2025
2 checks passed
@xispa xispa deleted the set-profile-analyses branch February 12, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants