-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Apply metadata setter for default to conditionals #7197
base: dev
Are you sure you want to change the base?
Conversation
The existing code only expects the case like: ``` <actions> <action name="column_names" type="metadata" default="Geneid,${alignment.element_identifier}" /> </actions> ``` whereas a conditional can be inserted within `<actions>` yielding a case like: ``` <actions> <conditional name="format"> <when value="something_good"> <action type="metadata" name="column_names" default="one,two,three" /> </when> </conditional> </actions> ``` The fact that this is not handled causes the display logic to fail when `column_names` is set for a tabular dataset inside such a conditional. This patch provides a solution for that case.
<data format="tabular" name="output"> | ||
<actions> | ||
<conditional name="variable"> | ||
<when value="1"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pvanheus can you fix the indentation here and below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've committed a version with new indentation - is this better?
Maybe I'm confused but there doesn't seem to be anything conditional about this logic. This commit (jmchilton@98f273f) on top of your branch adds a second test case in a conditional and causes the first test to fail. |
I'm going to put this into WIP until that test passes, is that okay? |
The existing code only expects the case like:
whereas a conditional can be inserted within
<actions>
yielding a case like:The fact that this is not handled causes the display logic to fail when
column_names
is set for a tabular dataset inside such a conditional. This patch provides a solution for that case.