WPB-22811 Move CodeStore to wire-subsystems#4959
Merged
battermann merged 3 commits intodevelopfrom Jan 16, 2026
Merged
Conversation
fisx
approved these changes
Jan 15, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request moves the CodeStore effect and related data types from the galley service to the shared wire-subsystems library. This refactoring improves code organization by extracting conversation code functionality into a reusable subsystem that can be shared across services.
Changes:
- Moved CodeStore effect from
Galley.Effects.CodeStoretoWire.CodeStore - Moved Code and Scope data types from
Galley.Data.*toWire.CodeStore.* - Moved Cassandra implementation from
Galley.Cassandra.CodetoWire.CodeStore.Cassandra - Updated all import statements across galley service to reference the new module locations
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| services/galley/src/Galley/Effects.hs | Removed CodeStore export and added new imports for the moved types; added Input for convCodeURI configuration |
| services/galley/src/Galley/Cassandra/Queries.hs | Removed code-related Cassandra queries (moved to wire-subsystems) |
| services/galley/src/Galley/App.hs | Updated imports and added runInputConst for convCodeURI before CodeStore interpreter |
| services/galley/src/Galley/API/Util.hs | Updated imports to reference Wire.CodeStore modules |
| services/galley/src/Galley/API/Update.hs | Updated imports for CodeStore and Scope types |
| services/galley/src/Galley/API/Teams/Features.hs | Added Wire.CodeStore import |
| services/galley/src/Galley/API/Teams.hs | Added Wire.CodeStore import |
| services/galley/src/Galley/API/Query.hs | Updated imports to use Wire.CodeStore.Code for Code type |
| services/galley/src/Galley/API/MLS/Util.hs | Updated import to use Wire.StoredConversation |
| services/galley/src/Galley/API/Federation.hs | Added Wire.CodeStore import |
| services/galley/src/Galley/API/Action.hs | Updated imports for CodeStore and Scope types |
| services/galley/galley.cabal | Removed Galley.Cassandra.Code, Galley.Data.Scope, Galley.Data.Types, and Galley.Effects.CodeStore |
| libs/wire-subsystems/wire-subsystems.cabal | Added five new modules for CodeStore functionality |
| libs/wire-subsystems/src/Wire/CodeStore/Scope.hs | New file containing Scope data type (moved from Galley.Data.Scope) |
| libs/wire-subsystems/src/Wire/CodeStore/Code.hs | New file containing Code data type and related functions (extracted from Galley.Data.Types) |
| libs/wire-subsystems/src/Wire/CodeStore/Cassandra/Queries.hs | New file with Cassandra queries for code storage (moved from Galley.Cassandra.Queries) |
| libs/wire-subsystems/src/Wire/CodeStore/Cassandra.hs | New file with Cassandra interpreter for CodeStore (refactored from Galley.Cassandra.Code) |
| libs/wire-subsystems/src/Wire/CodeStore.hs | Main CodeStore effect module (moved from Galley.Effects.CodeStore) |
| changelog.d/5-internal/WPB-22811 | Added changelog entry documenting the move |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Part 1 of https://wearezeta.atlassian.net/browse/WPB-22811
Checklist
changelog.d