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

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

Open
MyPyDavid opened this issue Apr 18, 2024 · 1 comment

Comments

@MyPyDavid
Copy link
Member

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:

  • support for multiple sources that can be related via "AND / OR", for example via a tabbed menu interface.
  • Add a tab view for each source allowing the user to add or remove it
  • Add a Radio-button "AND / OR" to switch between the type of conditional

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

  • allow for multiple relations that are combined when a Condition is resolved
  • add the required new settings to the edit Condition interface

Nice-to-have functionality

References / Verweise

@jochenklar
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants