Repository navigation
Commit 897350a
authored
feat!: implement experimentation tracking (#37)
* build: require flagsmith >=5.5 for the experimentation API
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* feat: populate reason, variant and flag_metadata on resolutions
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* feat: support transient identities via the evaluation context
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* fix!: track() crashed on flagsmith >=5.4 and hid value in metadata
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* feat: route feature_flag.exposure tracking events to Flagsmith
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* feat: add FlagsmithExposureHook for evaluation-coupled exposures
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* feat: re-export provider, hook and exposure constant from package root
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* docs: document exposure tiers and fix broken tracking example
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* feat: emit SPLIT for multivariate assignments and gate exposures on it
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* test: pin the cross-SDK wire contract with literal assertions
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* feat: remove ia slop
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* fix: warn and drop exposures carrying a non-string variant
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* ci: run the test suite against the minimum supported flagsmith
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* refactor: drop the hook dedupe LRU in favor of SDK-side deduplication
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* feat: forward engine evaluation reasons from flagsmith >=6.2
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
* feat: map the engine DEFAULT reason to STATIC
Signed-off-by: wadii <wadii.zaim@flagsmith.com>
---------
Signed-off-by: wadii <wadii.zaim@flagsmith.com>1 parent 20c9f20 commit 897350a
11 files changed
Lines changed: 1387 additions & 124 deletions
File tree
- .github/workflows
- openfeature_flagsmith
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 72 | + | |
75 | 73 | | |
76 | | - | |
77 | 74 | | |
78 | 75 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 76 | + | |
84 | 77 | | |
85 | 78 | | |
86 | | - | |
| 79 | + | |
| 80 | + | |
87 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | | - | |
90 | | - | |
91 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
92 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
93 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
94 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
95 | 136 | | |
96 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
97 | 142 | | |
98 | 143 | | |
99 | 144 | | |
| |||
107 | 152 | | |
108 | 153 | | |
109 | 154 | | |
110 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
111 | 160 | | |
112 | 161 | | |
113 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
0 commit comments