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

Filter Templates field when Sample Type is selected in Sample Add form #1481

Merged
merged 33 commits into from
Nov 29, 2019

Conversation

xispa
Copy link
Member

@xispa xispa commented Nov 28, 2019

Description of the issue/feature this PR addresses

When a Sample Type is selected in Add Sample form, the Template field is not filtered by Sample Type. This Pull Request provides this functionality, but it also comes with some code redux for indexes and metadata related with SampleType. ISampleTypeAwareMixin is also provided.

Linked issue: #968

Current behavior before PR

Sample Templates field is not filtered when a Sample Type is selected

Desired behavior after PR is merged

Sample Templates field is filtered when a Sample Type is selected

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

xispa added 30 commits November 22, 2019 19:43
When user selects a SampleType in Add Sample Form, Templates that have
a Sample Type assigned, but not the same as the one selected, are not
displayed for selection.

This commit also includes some clean-up of indexes and metadata that
are no longer used.
@xispa xispa requested a review from ramonski November 28, 2019 09:44
@ramonski ramonski merged commit 55c541e into master Nov 29, 2019
@ramonski ramonski deleted the i968 branch November 29, 2019 08:04
@xispa xispa mentioned this pull request Jul 23, 2024
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