Closed willbarton closed 5 years ago
755a11290c70f7048f479525a5593d3554cc0ae7 did some refactoring of when optional and required conditions are filtered. This has resulted in some issues where conditions aren't being correctly evaluated.
Thanks to @chosak, the issue is conditions is modified on the Flag object after __init__ is called, but optional_conditions and required_conditions are never updated after __init__.
conditions
Flag
__init__
optional_conditions
required_conditions
This seems like it was a false optimization. This PR reverts it to fix the issue.
While Travis is bogged down, it sure would be nice to have a test that tests this specific problem. 🐴
Forgot to push this yesterday — test added in bb82064.
755a11290c70f7048f479525a5593d3554cc0ae7 did some refactoring of when optional and required conditions are filtered. This has resulted in some issues where conditions aren't being correctly evaluated.
Thanks to @chosak, the issue is
conditions
is modified on theFlag
object after__init__
is called, butoptional_conditions
andrequired_conditions
are never updated after__init__
.This seems like it was a false optimization. This PR reverts it to fix the issue.