Skip to content
Merged
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
Next Next commit
updated calc to sort keys
  • Loading branch information
mrm9084 committed Oct 23, 2024
commit 1372cb8eed8950c14301950219d0f8d223ae37a6
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def _generate_allocation_id(feature_flag_value: Dict[str, JSON]) -> Optional[str
for v in sorted_variants:
allocation_id += f"{base64.b64encode(v.get('name', '').encode()).decode()},"
if "configuration_value" in v:
allocation_id += f"{json.dumps(v.get('configuration_value', ''), separators=(',', ':'))}"
allocation_id += (
f"{json.dumps(v.get('configuration_value', ''), separators=(',', ':'), sort_keys=True)},"
)
allocation_id += ";"
if sorted_variants:
allocation_id = allocation_id[:-1]
Expand Down