Skip to content

Conversation

@alexculealt
Copy link
Collaborator

@alexculealt alexculealt commented Feb 7, 2025

Implements #21

Implementation stages

Backend

  • Add new organizations and memberships tables
  • Add organization ID to users and catalogues
  • Add migration to seed initial organization & migrate all existing resources (users, catalogues) to this organization
  • Adjust all existing data queries (callable APIs) to join intersecting user organizations when selecting information.
  • Adjust insert/write/updates to resources to require member organization
  • Implement new queries for CRUDing organizations
  • Security audit for all accessible resources to ensure proper encapsulation of organizations (RLS)

Frontend

  • Add new organization selection screen after authentication
  • Add UI org selection drop-down in the header
  • Consolidate user state information context to keep user state and selected current active organization viewed
  • Adjust all routes to require /org/ in their path
  • Ensure tRPC includes current org ID in the context
  • Mitigate edge cases (user doesn't have any organizations, organization selected is removed from the user mid session, user tries accessing a link from a resource within an organization that where they don't belong)
  • Fix/Verify existing validation test suite

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.

2 participants