Skip to content

Commit

Permalink
Fix issue not returning identity overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell committed May 9, 2024
1 parent 5b830e8 commit 3ce0c25
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion api/features/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ def get_live_feature_states(
environment
)
latest_version_uuids = [efv.uuid for efv in latest_versions]
qs_filter &= Q(environment_feature_version__uuid__in=latest_version_uuids)

# Note that since identity overrides aren't part of the versioning system,
# we need to make sure we also return them here. We can still then subsequently
# filter them out with the `additional_filters` if needed.
qs_filter &= Q(
Q(environment_feature_version__uuid__in=latest_version_uuids)
| Q(identity__isnull=False)
)
else:
qs_filter &= Q(
live_from__isnull=False,
Expand Down

0 comments on commit 3ce0c25

Please sign in to comment.