Skip to content

Commit

Permalink
fix: fix structure of group properties param in feature_enabled call (#…
Browse files Browse the repository at this point in the history
…20079)

fix structure of group properties param
  • Loading branch information
xrdt authored Feb 1, 2024
1 parent c3623b0 commit 3180726
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions ee/billing/quota_limiting.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ def org_quota_limited_until(organization: Organization, resource: QuotaResource)
QUOTA_LIMIT_DATA_RETENTION_FLAG,
organization.id,
groups={"organization": str(organization.id)},
group_properties={
"organization": str(organization.id),
},
group_properties={"organization": {"id": str(organization.id)}},
):
# Don't drop data for this org but record that they __would have__ been
# limited.
Expand Down
2 changes: 1 addition & 1 deletion ee/billing/test/test_quota_limiting.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_dont_quota_limit_feature_flag_enabled(self, patch_feature_enabled, patc
QUOTA_LIMIT_DATA_RETENTION_FLAG,
self.organization.id,
groups={"organization": str(self.organization.id)},
group_properties={"organization": str(self.organization.id)},
group_properties={"organization": {"id": str(self.organization.id)}},
)
patch_capture.assert_called_once_with(
str(self.organization.id),
Expand Down

0 comments on commit 3180726

Please sign in to comment.