Skip to content

Commit

Permalink
App Config Allocation Id Update (#38065)
Browse files Browse the repository at this point in the history
* updated calc to sort keys

* Update CHANGELOG.md
  • Loading branch information
mrm9084 authored Oct 23, 2024
1 parent 561dc06 commit c973431
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

### Breaking Changes

* Allocation Id value changed so other providers can match the value.

### Bugs Fixed

### Other Changes
Expand Down
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

0 comments on commit c973431

Please sign in to comment.