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

Hide method and instrument columns in analysis listing when not required #1951

Merged
merged 5 commits into from
Mar 22, 2022

Conversation

xispa
Copy link
Member

@xispa xispa commented Mar 22, 2022

Description of the issue/feature this PR addresses

User can define the methods and instruments that can be "used" for a given analysis service. In such case, methods and instruments are populated for selection later in listings for the analyst to choose the desired values.

This Pull Request makes the columns "Method" and "Instrument" to only be rendered in analyses listing when at least one of the analyses requires the introduction of either method or analysis. The columns are also rendered when at least one of the analyses has a value assigned for any of the two fields.

Current behavior before PR

Columns "Method" and "Instrument" are always displayed in analyses listing, regardless of their suitability

Desired behavior after PR is merged

Columns "Method" and "Instrument" are only displayed in analyses listing when at least one of the analyses listed requires them to be displayed

--
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.

Cool!

@ramonski ramonski merged commit d6c82cc into 2.x Mar 22, 2022
@ramonski ramonski deleted the hide-method-instr branch March 22, 2022 13:23
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