Conditions should have a flag for ANY/ALL

Created on 28 May 2025, 2 days ago

Problem/Motivation

Conditions API include an option so any condition can be negated by default.

In the case of those conditions with multiple selection (e.g. User Role), those are matched if any of the options match.
It would be great allowing to select if we want ANY match or ALL matches.

This would translate to instead of a roleX OR roleY, the condition will match if roleX AND roleY if the flag is true.

Proposed resolution

Conditions should have a flag for ANY/ALL. Default will be ANY.

Remaining tasks

TBD

User interface changes

TBD

Added all bool to config schema `type: condition.plugin`

Introduced terminology

None.

API changes

New flag.

Data model changes

New config schema, new default, needs upgrade path.

Release notes snippet

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component

system.module

Created by

πŸ‡ͺπŸ‡ΈSpain penyaskito Seville πŸ’ƒ, Spain πŸ‡ͺπŸ‡Έ, UTC+2 πŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024