File tree Expand file tree Collapse file tree 5 files changed +6
-18
lines changed Expand file tree Collapse file tree 5 files changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ def map_context_and_identity_data_to_context(
9393 ** context ,
9494 "identity" : {
9595 "identifier" : identifier ,
96- "key" : f"{ context ['environment' ]['key' ]} _{ identifier } " ,
9796 "traits" : {
9897 trait_key : (
9998 trait_value_or_config ["value" ]
@@ -200,7 +199,6 @@ def _map_identity_overrides_to_segments(
200199 overrides = [
201200 {
202201 "key" : "" , # Identity overrides never carry multivariate options
203- "feature_key" : str (flagsmith_id ),
204202 "name" : feature_name ,
205203 "enabled" : feature_enabled ,
206204 "value" : feature_value ,
@@ -245,7 +243,6 @@ def _map_environment_document_feature_states_to_feature_contexts(
245243 key = str (
246244 feature_state .get ("django_id" ) or feature_state ["featurestate_uuid" ]
247245 ),
248- feature_key = str (feature_state ["feature" ]["id" ]),
249246 name = feature_state ["feature" ]["name" ],
250247 enabled = feature_state ["enabled" ],
251248 value = feature_state ["feature_state_value" ],
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ documentation = "https://docs.flagsmith.com"
1010packages = [{ include = " flagsmith" }]
1111
1212[tool .poetry .dependencies ]
13- flagsmith-flag-engine = " ^9.1 .0"
13+ flagsmith-flag-engine = " ^10.0 .0"
1414python = " >=3.9,<4"
1515requests = " ^2.32.3"
1616requests-futures = " ^1.0.1"
Original file line number Diff line number Diff line change @@ -165,7 +165,6 @@ def test_get_identity_flags_uses_local_environment_when_available(
165165 "name" : "some_feature" ,
166166 "enabled" : True ,
167167 "value" : "some-feature-state-value" ,
168- "feature_key" : "1" ,
169168 "metadata" : {"flagsmith_id" : 1 },
170169 }
171170 },
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ def test_flag_from_evaluation_result() -> None:
1010 # Given
1111 flag_result : SDKFlagResult = {
1212 "enabled" : True ,
13- "feature_key" : "123" ,
1413 "name" : "test_feature" ,
1514 "reason" : "DEFAULT" ,
1615 "value" : "test-value" ,
@@ -36,7 +35,6 @@ def test_flag_from_evaluation_result() -> None:
3635 {
3736 "feature1" : {
3837 "enabled" : True ,
39- "feature_key" : "1" ,
4038 "name" : "feature1" ,
4139 "reason" : "DEFAULT" ,
4240 "value" : "value1" ,
@@ -49,7 +47,6 @@ def test_flag_from_evaluation_result() -> None:
4947 {
5048 "feature1" : {
5149 "enabled" : True ,
52- "feature_key" : "1" ,
5350 "name" : "feature1" ,
5451 "reason" : "DEFAULT" ,
5552 "value" : "value1" ,
@@ -62,23 +59,20 @@ def test_flag_from_evaluation_result() -> None:
6259 {
6360 "feature1" : {
6461 "enabled" : True ,
65- "feature_key" : "1" ,
6662 "name" : "feature1" ,
6763 "reason" : "DEFAULT" ,
6864 "value" : "value1" ,
6965 "metadata" : {"flagsmith_id" : 1 },
7066 },
7167 "feature2" : {
7268 "enabled" : True ,
73- "feature_key" : "2" ,
7469 "name" : "feature2" ,
7570 "reason" : "DEFAULT" ,
7671 "value" : "value2" ,
7772 "metadata" : {"flagsmith_id" : 2 },
7873 },
7974 "feature3" : {
8075 "enabled" : True ,
81- "feature_key" : "3" ,
8276 "name" : "feature3" ,
8377 "reason" : "DEFAULT" ,
8478 "value" : 42 ,
@@ -130,7 +124,6 @@ def test_flag_from_evaluation_result_value_types(
130124 # Given
131125 flag_result : SDKFlagResult = {
132126 "enabled" : True ,
133- "feature_key" : "123" ,
134127 "name" : "test_feature" ,
135128 "reason" : "DEFAULT" ,
136129 "value" : value ,
@@ -148,7 +141,6 @@ def test_flag_from_evaluation_result_missing_metadata__raises_expected() -> None
148141 # Given
149142 flag_result : SDKFlagResult = {
150143 "enabled" : True ,
151- "feature_key" : "123" ,
152144 "name" : "test_feature" ,
153145 "reason" : "DEFAULT" ,
154146 "value" : "test-value" ,
You can’t perform that action at this time.
0 commit comments