bug #10340
closedCategorical and Quantitative Data details view must only show recommended modifiers
100%
Description
... for state data or statistical measurement values respectively.
Currently it seems to load all modifiers (but not modifier subtypes)
Related issues
Updated by Andreas Müller 11 months ago
- Related to feature request #10337: Allow supportedCategoricalEnumeration and recommendedModfiers for term collection added
Updated by Andreas Müller 11 months ago
- Status changed from New to Resolved
- % Done changed from 0 to 70
Applied in changeset taxeditor|48d470ad785b28decc38bbbd235c110347153ae6.
Updated by Andreas Müller 11 months ago
This is generally fixed now. Please review.
During implementation I realized that in ModifierElement.setEntity() the combo_modifier != null part is never called.
So it looks like we can delete it. Do you agree.
In this code it was originally tried to set the recommende modifiers (but unsuccessful as it was not called).
Or should we adapt the code so this code is called (again)?
Can you please decide what is more consistent with other code?
What is missing in the current code is
combo_modifier.removeEmptyElement();
which is not nice as we do not need an empty element as soon as the value is set for the first time.
Is there a way to integrate this again?
Updated by Andreas Müller 11 months ago
Also we need to check if the recommended modifiers only mean the single states/values or for the complete categorical/numerical data record (which is the same modifier implementation as for all DescriptionElementBase subclasses. The later in general is missing a possibility of defining a list to take the modifiers from as far as I can see. This might be another ticket.
Updated by Katja Luther 11 months ago
Andreas Müller wrote in #note-3:
This is generally fixed now. Please review.
During implementation I realized that in ModifierElement.setEntity() the combo_modifier != null part is never called.
So it looks like we can delete it. Do you agree.In this code it was originally tried to set the recommende modifiers (but unsuccessful as it was not called).
Or should we adapt the code so this code is called (again)?
Can you please decide what is more consistent with other code?
What is missing in the current code is
combo_modifier.removeEmptyElement();
which is not nice as we do not need an empty element as soon as the value is set for the first time.
Is there a way to integrate this again?
You are right this part of the code is never reached. I will clean up the code and reintegrate the combo_modifier.removeEmptyElement().
-> this can be done by calling createDefinedTermComboElement() with a parameter defining the presence of an empty element.
Updated by Katja Luther 11 months ago
Andreas Müller wrote in #note-5:
Also we need to check if the recommended modifiers only mean the single states/values or for the complete categorical/numerical data record (which is the same modifier implementation as for all DescriptionElementBase subclasses. The later in general is missing a possibility of defining a list to take the modifiers from as far as I can see. This might be another ticket.
I would move this to a new ticket.
Updated by Katja Luther 11 months ago
- Assignee changed from Katja Luther to Andreas Müller
Please check again whether the changes are correct.
Updated by Andreas Müller 11 months ago
- Status changed from Resolved to Closed
- % Done changed from 70 to 100
Works as expected now
Updated by Andreas Müller 10 months ago
- Related to feature request #10364: Implement state modifiers for matrix added
Updated by Andreas Müller 5 months ago
- Related to feature request #10436: Make state modifiers invisible if no recommended term collection is selected added