Cap icon indicating copy to clipboard operation
Cap copied to clipboard

Sort out `activeOrganizationId`

Open oscartbeaumont opened this issue 3 months ago • 1 comments

The current approach is problematic.

Issues:

  • Can't link to a specific page in an org
  • The org switcher might not show the correct tenant for the page your on
  • If someone on computer A changes org, it could affect which org the operations on computer B target. In practice I think this will just causes errors on everything because the user is trying to do actions on stuff that doesn't exist in that org.

I propose:

  • [ ] We restructure the URL to include the organizationId
  • [ ] All backend queries and server components switch from using activeOrganizationId to using the new URL param
  • [ ] We drop activeOrganizationId from the DB so it can't be misused.

Future:

  • Think about implementing slugs

oscartbeaumont avatar Sep 30 '25 12:09 oscartbeaumont

CAP-503

linear[bot] avatar Sep 30 '25 12:09 linear[bot]