rdmorganiser / rdmo

A tool to support the planning, implementation, and organization of research data management.
https://rdmorganiser.github.io
Apache License 2.0
104 stars 49 forks source link

[DMP Review] enable multiple combined evaluations of relations for conditions #975

Open MyPyDavid opened 6 months ago

MyPyDavid commented 6 months ago

Rationale / Begründung

Conditions are currently targeting only one attribute and are resolved for a single relation. It should be possible to evaluate multiple attributes in one condition each against different target texts/options.

These conditions can be connected via AND or OR.

In the edit Condition interface:

PS it might sound like a ConditionSet but it should be editable as a normal Condition in order to not overflow the UI with complexity.

Affected

Users, Managers

Minimal functionality

Nice-to-have functionality

*

References / Verweise

jochenklar commented 5 months ago

I think the OR part can already be done with multiple conditions on one element (https://github.com/rdmorganiser/rdmo/blob/main/rdmo/projects/utils.py#L31). The AND part can be complicated to implement.

Zack-83 commented 3 months ago

We also have this need. We have a set of questions which are dependent from a derived variable DIL, defined from the answer to two questions CU and CP as follows:

DIL = if(CU==1)1 else max(CU,CP)

grafik