feat(graphql): add organization/generation member queries and mutations#48
Open
feat(graphql): add organization/generation member queries and mutations#48
Conversation
Add queries to look up organization members with filtering by status. - Add `pendingOrganizationMembers(organizationSlug)` to query PENDING members - Add `organizationMembers(organizationSlug, status?)` to query all members with optional status filter - Add organization-member.mapper.ts for domain to GraphQL transformation - Update mappers and resolvers index to export new modules 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add mutation to change organization member role. - Add ChangeMemberRoleCommand to handle role changes - Add `changeMemberRole(organizationSlug, memberDiscordId, newRole)` mutation - Supports OWNER, ADMIN, MEMBER roles - Update commands index to export new command 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Load organization members when querying organizations. - Add helper function `mapToGqlOrganizationMember` for transformation - Update `organizations` query to load all members for each organization - Update `activeOrganizations` query to load members - Update `organization(slug)` query to load members - Previously `organizations.members` returned null, now returns member list 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Load generation members when querying generations. - Add helper function `mapToGqlGenerationMember` for transformation - Add `generationMemberRepo` and `memberRepo` instances - Update `generations` query to load all members for each generation - Update `generation(id)` query to load members - Update `activeGeneration` query to load members - Update `addGeneration` mutation to load members after creation - Previously `generations.members` returned null, now returns member list 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
organizations및generations쿼리에서members필드 로드 지원Changes
1. 조직원 쿼리 기능 추가
pendingOrganizationMembers(organizationSlug)- PENDING 상태인 가입 신청자 목록 조회organizationMembers(organizationSlug, status?)- 조직원 목록 조회 (상태 필터 지원)2. 조직원 역할 변경 Mutation 추가
changeMemberRole(organizationSlug, memberDiscordId, newRole)- 조직원 역할 변경OWNER,ADMIN,MEMBER3. Organizations 쿼리에서 members 로드
organizations.members→nullorganizations.members→ 조직원 목록 반환4. Generations 쿼리에서 members 로드
generations.members→nullgenerations.members→ 기수원 목록 반환Test Plan
pendingOrganizationMembers쿼리로 PENDING 상태 멤버 조회 확인changeMemberRolemutation으로 역할 변경 확인organizations쿼리 시members필드 반환 확인generations쿼리 시members필드 반환 확인🤖 Generated with Claude Code