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

Consider analyses with result options or string result in duplicate valid range #1516

Merged
merged 9 commits into from
Feb 4, 2020

Conversation

xispa
Copy link
Member

@xispa xispa commented Feb 3, 2020

Description of the issue/feature this PR addresses

The calculation of valid range for a given duplicate does not take into consideration when the original analysis has results options or string result enabled. Rather, it applies same algorithm used for when result is numeric (% of duplicate variation).

This pull request guarantees that when the original analysis has result options enabled or its result is a non-numeric value, the expected result for duplicate is an exact match and the duplicate variation is not used.

Current behavior before PR

Analyses with results range options or string result are not considered in duplicate's valid range

Desired behavior after PR is merged

Analyses with results range options or string result are considered in duplicate's valid range

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

@xispa xispa changed the title Consider analyses with result range options or string result in duplicate valid range Consider analyses with result options or string result in duplicate valid range Feb 3, 2020
@xispa xispa requested a review from ramonski February 3, 2020 21:22
@ramonski ramonski merged commit 0b39e49 into master Feb 4, 2020
@ramonski ramonski deleted the duplicate-selection branch February 4, 2020 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants