Skip to content

User organizations #67

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

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

User organizations #67

wants to merge 12 commits into from

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.

1 participant