fix: evaluation on prerequisite fails in a certain condition
kentakozuka opened this issue · comments
Kenta Kozuka commented
Version
main
Describe the bug
Evaluation on prerequisite fails in a condition;
- Flag A has a prerequisite depending on flag B.
- Flag A is a target feature(
updatedFeatures
) and Flag B is not.
bucketeer/evaluation/evaluation.go
Line 105 in eac7fbd
classDiagram
FlagB <|-- FlagA
class FlagA{
Prerequisite FlagB
}
In this case, the evaluation fails because flag B is not evaluated before flag A.
bucketeer/evaluation/evaluation.go
Line 264 in eac7fbd
The root cause of this failure is that flag B is not added in getPrerequisiteUpwards()
.
bucketeer/evaluation/evaluation.go
Line 105 in eac7fbd
See the test case (#967)
Steps to reproduce the bug
No response
Expected behavior
No response
Relevant log output
No response
Additional information
No response