Skip to content

feat: add organization data source#7277

Open
lcampbell2 wants to merge 9 commits intomasterfrom
feat/add-organization-data-source
Open

feat: add organization data source#7277
lcampbell2 wants to merge 9 commits intomasterfrom
feat/add-organization-data-source

Conversation

@lcampbell2
Copy link
Copy Markdown
Collaborator

@lcampbell2 lcampbell2 commented Apr 16, 2026

Consolidates organization data access into a OrganizationDataSource class, following the existing data source pattern used by AuthDataSource, GuidanceTagDataSource, etc.

Changes

  • New OrganizationDataSource class wrapping organization loaders (byKey, bySlug, connectionsByDomainId, connectionsByUserId, etc.) and mutations (create, update, remove, archive, verify)
  • Registered in createContext alongside other data sources
  • Resolvers and mutations updated to consume dataSources.organization instead of calling loaders directly from context.loaders
  • Tests updated to inject OrganizationDataSource in context

Comment thread api/src/organization/queries/__tests__/find-organization-by-slug.test.js Dismissed
Comment thread api/src/organization/queries/__tests__/find-organization-by-slug.test.js Dismissed
@lcampbell2 lcampbell2 requested a review from FestiveKyle April 16, 2026 17:51
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