Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions flagsmith/mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def map_context_and_identity_data_to_context(
**context,
"identity": {
"identifier": identifier,
"key": f"{context['environment']['key']}_{identifier}",
"traits": {
trait_key: (
trait_value_or_config["value"]
Expand Down Expand Up @@ -200,7 +199,6 @@ def _map_identity_overrides_to_segments(
overrides=[
{
"key": "", # Identity overrides never carry multivariate options
"feature_key": str(flagsmith_id),
"name": feature_name,
"enabled": feature_enabled,
"value": feature_value,
Expand Down
10 changes: 5 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ documentation = "https://docs.flagsmith.com"
packages = [{ include = "flagsmith" }]

[tool.poetry.dependencies]
flagsmith-flag-engine = "^9.1.0"
flagsmith-flag-engine = "^10.0.0"
python = ">=3.9,<4"
requests = "^2.32.3"
requests-futures = "^1.0.1"
Expand Down
1 change: 0 additions & 1 deletion tests/test_flagsmith.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ def test_get_identity_flags_uses_local_environment_when_available(
"name": "some_feature",
"enabled": True,
"value": "some-feature-state-value",
"feature_key": "1",
"metadata": {"flagsmith_id": 1},
}
},
Expand Down
8 changes: 0 additions & 8 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def test_flag_from_evaluation_result() -> None:
# Given
flag_result: SDKFlagResult = {
"enabled": True,
"feature_key": "123",
"name": "test_feature",
"reason": "DEFAULT",
"value": "test-value",
Expand All @@ -36,7 +35,6 @@ def test_flag_from_evaluation_result() -> None:
{
"feature1": {
"enabled": True,
"feature_key": "1",
"name": "feature1",
"reason": "DEFAULT",
"value": "value1",
Expand All @@ -49,7 +47,6 @@ def test_flag_from_evaluation_result() -> None:
{
"feature1": {
"enabled": True,
"feature_key": "1",
"name": "feature1",
"reason": "DEFAULT",
"value": "value1",
Expand All @@ -62,23 +59,20 @@ def test_flag_from_evaluation_result() -> None:
{
"feature1": {
"enabled": True,
"feature_key": "1",
"name": "feature1",
"reason": "DEFAULT",
"value": "value1",
"metadata": {"flagsmith_id": 1},
},
"feature2": {
"enabled": True,
"feature_key": "2",
"name": "feature2",
"reason": "DEFAULT",
"value": "value2",
"metadata": {"flagsmith_id": 2},
},
"feature3": {
"enabled": True,
"feature_key": "3",
"name": "feature3",
"reason": "DEFAULT",
"value": 42,
Expand Down Expand Up @@ -130,7 +124,6 @@ def test_flag_from_evaluation_result_value_types(
# Given
flag_result: SDKFlagResult = {
"enabled": True,
"feature_key": "123",
"name": "test_feature",
"reason": "DEFAULT",
"value": value,
Expand All @@ -148,7 +141,6 @@ def test_flag_from_evaluation_result_missing_metadata__raises_expected() -> None
# Given
flag_result: SDKFlagResult = {
"enabled": True,
"feature_key": "123",
"name": "test_feature",
"reason": "DEFAULT",
"value": "test-value",
Expand Down
Loading