Skip to content

Prioritize domain exact match when looking up site for user - #6625

Open
aerosol wants to merge 1 commit into
masterfrom
domain-swap-get-for-user
Open

Prioritize domain exact match when looking up site for user#6625
aerosol wants to merge 1 commit into
masterfrom
domain-swap-get-for-user

Conversation

@aerosol

@aerosol aerosol commented Aug 27, 2026

Copy link
Copy Markdown
Member

@aerosol
aerosol requested a review from a team August 27, 2026 09:21
Comment thread lib/plausible/sites.ex
@@ -537,6 +537,8 @@ defmodule Plausible.Sites do
where: coalesce(gm.role, tm.role) in ^roles,
where: s.domain == ^domain or s.domain_changed_from == ^domain,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out this was done to support ongoing Sites API automations during the domain transition period. Doubt there's much value in that either...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant