Skip to content

feat: add organization data source#7277

Merged
lcampbell2 merged 9 commits intomasterfrom
feat/add-organization-data-source
Apr 20, 2026
Merged

feat: add organization data source#7277
lcampbell2 merged 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
@lcampbell2 lcampbell2 merged commit 5e794b2 into master Apr 20, 2026
38 checks passed
@lcampbell2 lcampbell2 deleted the feat/add-organization-data-source branch April 20, 2026 17:39
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