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

Inconsistences when applying Worksheet Templates #499

Merged
merged 31 commits into from
Dec 30, 2017
Merged

Conversation

xispa
Copy link
Member

@xispa xispa commented Dec 29, 2017

Description of the issue/feature this PR addresses

Applying Worksheet Template to a Worksheet had some inconsistences that have been fixed with this PR, along with the following issues:

Linked issues:

Current behavior before PR

Inconsistent behavior with duplicates, references, analyses when using Worksheet Templates.

Desired behavior after PR is merged

Consistent behavior with duplicates, references, analyses when using Worksheet Templates.

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

Copy link
Contributor

@ramonski ramonski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to open another PR to fix the unresolved position variable in workflow_script_reject. Approving to get forward...

@ramonski ramonski merged commit 0a022d3 into senaite:master Dec 30, 2017
self.request['context_uid'] = self.context.UID()
self.context.addDuplicateAnalyses(src_slot, position)
self.context.addDuplicateAnalyses(src_slot)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xispa reminder: revert this change, I was not aware that there is a selector in "Add Duplicate" to allow the user to choose the slot to use. That selector has the next available slot option selected by default instead of "new slot" option. If a WSTemplate is assigned to the WS, better to select the latter option as default.

@xispa
Copy link
Member Author

xispa commented Dec 31, 2017

Thanks @ramonski for your code improvements!. I will open another PR to fix the unresolved position variable in ẁorkflow_script_reject

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