Repository navigation
Implement working group leadership roles system - #377
Merged
Merged
Conversation
…field - Changed leader and member search inputs to type="search" with autocomplete="off" to prevent Safari from showing name autocomplete suggestions - Added missing Display Order input field that saveGroup() was referencing - Fixed leader query to join with working_group_memberships instead of non-existent organization_memberships table - Reorganized form layout to group display order and privacy checkbox together 🤖 Generated with Claude Code Co-Authored-By: Claude Haiku 4.5 <[email protected]>
bokelley
added a commit
that referenced
this pull request
Dec 29, 2025
Two migrations had the same version number (039): - 039_member_engagement.sql (PR #376) - 039_working_group_leaders.sql (PR #377) This caused migration failures on fresh databases (including new worktrees). Production state: - Has versions 37/38 as email_tracking/preferences (from old numbering) - Has version 39 as member_engagement - Never got working_group_leaders (would have failed with duplicate key) Fix: - Rename 039_working_group_leaders.sql → 047_working_group_leaders.sql - Add CI test to prevent duplicate migration versions in the future The working_group_leaders migration is idempotent (uses IF NOT EXISTS, IF EXISTS, ON CONFLICT DO NOTHING), so it will safely apply to prod as version 47. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
3 tasks done
bokelley
added a commit
that referenced
this pull request
Dec 29, 2025
* Fix duplicate migration version 039 and add CI check Two migrations had the same version number (039): - 039_member_engagement.sql (PR #376) - 039_working_group_leaders.sql (PR #377) This caused migration failures on fresh databases (including new worktrees). Production state: - Has versions 37/38 as email_tracking/preferences (from old numbering) - Has version 39 as member_engagement - Never got working_group_leaders (would have failed with duplicate key) Fix: - Rename 039_working_group_leaders.sql → 047_working_group_leaders.sql - Add CI test to prevent duplicate migration versions in the future The working_group_leaders migration is idempotent (uses IF NOT EXISTS, IF EXISTS, ON CONFLICT DO NOTHING), so it will safely apply to prod as version 47. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]> * Add empty changeset for migration fix Internal fix that doesn't affect the protocol specification. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]> --------- Co-authored-by: Claude Opus 4.5 <[email protected]>
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
Refactor working group leadership from fixed Chair/Vice-Chair roles to a flexible multi-leader system. Fixes N+1 query issues, improves Safari autocomplete handling, and adds missing form fields.
Key Changes:
chair_user_id/vice_chair_user_idwith flexibleworking_group_leaderstablegetLeadersBatch()methodTests
All existing tests pass, including schema validation, JSON schema compliance, and TypeScript type checking.
🤖 Generated with Claude Code