Skip to content

Commit

Permalink
fix(looker): sort user mapping for consistency (#12569)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Feb 7, 2025
1 parent 7c19542 commit 390a672
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1673,10 +1673,11 @@ def to_platform_resource(
primary_key="",
)

# Extract user email mappings
# Extract user email mappings.
# Sort it to ensure the order is deterministic.
user_email_cache = {
user_id: user.email
for user_id, user in self._user_cache.items()
for user_id, user in sorted(self._user_cache.items())
if user.email
}

Expand Down

0 comments on commit 390a672

Please sign in to comment.