HomePhorge

ConditionalDefaultsLookup: allow to dynamically add conditions for evaluation

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

ConditionalDefaultsLookup: allow to dynamically add conditions for evaluation

Why:
To facilitate the evaluation of conditions not directly
"known" by the lookup, eg: owned by extensions

What:

  • Add ConditionalDefaultOptionsAddCondition hook which

runs before instantiating ConditionalDefaultsLookup allowing
to add conditions for evaluation in the $extraConditions
array.

  • Evaluate the configured conditional default against the extra added conditions after evaluation of "known"

conditions.

Bug: T376918
Change-Id: Ife6f96397eafd61fdb40528aac315ddde1ef2774

Details

Provenance
Sergio GimenoAuthored on Oct 10 2024, 2:34 PM

Event Timeline

Sergio Gimeno <sgimeno@wikimedia.org> committed rMW37985a198de7: ConditionalDefaultsLookup: allow to dynamically add conditions for evaluation (authored by Sergio Gimeno <sgimeno@wikimedia.org>).Oct 16 2024, 3:39 PM

Commit No Longer Exists

This commit no longer exists in the repository.