Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch reads to Teams schemas across the rest of the app #4860

Merged
merged 36 commits into from
Dec 2, 2024
Merged

Conversation

zoldar
Copy link
Contributor

@zoldar zoldar commented Nov 26, 2024

Changes

This PR switches majority of reads related to membership and subscription state to use new team schemas. All the leftovers will be switched with the final change - switching all the writes to use new schema exclusively as well.

Notable changes:

  • site cache used by ingestion is now preloading team instead of owner and relying on team for determining whether to drop the traffic or not
  • AuthorizeSiteAccess is now populating current_user_role with team schema roles. The change is accounted for by always considering :editor role side by side with :admin

zoldar and others added 28 commits November 26, 2024 10:48
There's no need to translate `admin`<->`editor` here,
the redundancy is inlined wherever the plug is initialized.
By making artificial site membership struct,
when reading data off team membership schema.
@aerosol aerosol marked this pull request as ready for review November 28, 2024 12:57
@zoldar zoldar added the preview label Dec 2, 2024
Copy link

github-actions bot commented Dec 2, 2024

Preview environment👷🏼‍♀️🏗️
PR-4860

@zoldar zoldar changed the title [WIP] Switch reads to Teams schemas across the rest of the app Switch reads to Teams schemas across the rest of the app Dec 2, 2024
@zoldar zoldar requested a review from aerosol December 2, 2024 11:44
@zoldar zoldar added this pull request to the merge queue Dec 2, 2024
Merged via the queue into master with commit b86c2e7 Dec 2, 2024
10 checks passed
zoldar added a commit that referenced this pull request Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants