flâneur — a map of the web's best reading

auth(migration) pt 1c: create `organization_users` for all cases by douglasqian · Pull Request #452 · spiralsprotocol/streamline

github.com · saved by 1 readers

New! Multiple suggested changes can be batched together in a single commit. Each suggestion author will be attributed in the commit as a co-author. There was a problem hiding this comment. The reason will be displayed to describe this comment to others. Learn more. Disabling this trigger so we don't run into weird race conditions with the manual API call to update public.organization_users. Easier to reason about and debug if something goes wrong. roles and has_finished_onboarding change in only 2 places today so adding it manually actually will make it easier to decouple and deprecate the old path eventually. The only thing this doesn't cover very well is switching orgs within a user, but this is something only admins can do ATM anyway and we have other exceptions in the code that will always associate all orgs as options for admin users so we don't need to create a new row in public.organization_users for them every time there is a switch The content you are editing

Explore this link on the map →

saved by