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 sample specs get overwritten on manage analyses save #2415

Merged
merged 3 commits into from
Nov 2, 2023
Merged

Conversation

xispa
Copy link
Member

@xispa xispa commented Oct 31, 2023

Description of the issue/feature this PR addresses

This Pull Request prevents the message "Ranges for some analyses are different from the Specification" to be displayed when adding analyses manually on a Sample with specifications already set and with the setting "Enable Sample Specifications" disabled. The message "result range is different from specification" is also displayed next to analyses.

If the setting "Enable Sample Specifications" is disabled, the system must not overwrite the specifications set for a given analysis through the "Specification" field.

276761264-4804fd54-45f4-4fbc-a4a4-676790a71a54

276761487-10978fb7-172f-47ee-bcc8-e8b6c3e3b252

Current behavior before PR

Sample results ranges are overwritten when adding analyses manually, even though the setting "Enable Sample Specifications" is disabled.

Desired behavior after PR is merged

Sample results ranges are not overwritten when adding analyses manually and with the setting "Enable Sample Specifications" disabled.

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

@xispa xispa added the Bug 🐞 label Oct 31, 2023
@xispa xispa changed the title Do not overwrite sample specs when adding analyses manually unless explicitely set Fix sample specs get overwritten on manage analyses save Oct 31, 2023
@xispa xispa requested a review from ramonski October 31, 2023 14:07
@ramonski ramonski merged commit 2b922f8 into 2.x Nov 2, 2023
2 checks passed
@ramonski ramonski deleted the fix-specs branch November 2, 2023 21:09
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