catalyst / moodle-tool_dynamic_cohorts

Moodle dynamic cohorts admin tool
https://moodle.org/plugins/tool_dynamic_cohorts
4 stars 2 forks source link

Ability to select operator per rule #52

Closed dmitriim closed 6 months ago

dmitriim commented 6 months ago

Currently conditions are applied using “AND“ logic. This means users have to meet all conditions to be allocated to a cohort the rule is linked to.

Would be nice to be flexible and be able to configure a rule using OR / AND operator per rule.

Ideally to be fully flexible we should be able to configure it's per condition like Condition 1 AND (Condition 2 OR Condition 3). But this will be another level of complexity.

Doing it per rule should be pretty straight forward.

Rough tasks: