Commit 4cb3481
authored
feat(Engine): Evaluate from EvaluationContext (#108)
* Introduce context values evaluation data model
* Update engine test data
* Get ready for engine tests
* Introduce new engine
* Lint ✨
* Make priority clearer
* Update EvaluationResult spec
Contributes to Flagsmith/flagsmith#6121
* yay
* Fix identity traits data type
* Update engine test data branch
* Fix identity as an optional context
* Improve API
* Make code reusable
* Apples will never be bananas
* Track TODO with an issue
#110
* Improve type handling in the IN operator
* Make MODULO check less prone to error
* Fix obtaining a context value
* Update comment to latest reality
* Delete skippable code
* Update test cases
* Fix tests
* Carry segment metadata around
* Please run tests
(cherry picked from commit 2913611)
* Comply with latest test data
* Ensure variants are selected consistently
* Update tests1 parent 28a1063 commit 4cb3481
File tree
19 files changed
+769
-55
lines changed- .github/workflows
- src/Engine
- Utils/Types
- Context
- Result
- tests/Engine/EngineTests
19 files changed
+769
-55
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 5 | | |
9 | 6 | | |
10 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
0 commit comments