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 Sensitivity result is not updated when selective reporting is missing #26

Merged
merged 3 commits into from
Jun 21, 2023

Conversation

xispa
Copy link
Member

@xispa xispa commented Jun 21, 2023

Description of the issue/feature this PR addresses

This Pull Request guarantees the sensitivity result is correctly updated when no selective reporting analysis is set, either because the AST was added manually (via "Customize" option) or because the AST Panel selected had the option "Selective reporting" set to False.

The reason of why this was not working as expected is because the calc_ast calculation was not returning the result to be set to the given analysis. Reason is that the calculation logic itself was updating the results already. When a selective reporting analysis was present, the last calculation to be called was bound to the reporting analysis itself and therefore, the results of the sensitivity were updated, and not overwritten by the calc machinery afterwards.

Current behavior before PR

Sensitivity results are not updated (but cleared) when no selective reporting is set

Desired behavior after PR is merged

Sensitivity results are updated when no selective reporting is set, assuming that all results must be reported

--
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 Sensitivitry result is not updated when selective reporting is missing Sensitivity result is not updated when selective reporting is missing Jun 21, 2023
@xispa xispa changed the title Sensitivity result is not updated when selective reporting is missing Fix Sensitivity result is not updated when selective reporting is missing Jun 21, 2023
@ramonski ramonski merged commit 73eb744 into master Jun 21, 2023
@ramonski ramonski deleted the no-result-selective branch June 21, 2023 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants