WPB-23789: Split performAction in Galley#5081
Merged
blackheaven merged 1 commit intodevelopfrom Mar 3, 2026
Merged
Conversation
battermann
approved these changes
Mar 3, 2026
Contributor
There was a problem hiding this comment.
I would suggest that you keep a single changelog for all parts of the refactoring, instead of having one changelog per PR. You can add things incrementally in each PR and maybe at the end even just state the overall idea?
Contributor
There was a problem hiding this comment.
Pull request overview
Refactors Galley’s conversation update flow by removing the centralized performAction dispatcher and inlining action-specific logic into each updateLocalConversation* wrapper, reducing required effect constraints across several APIs.
Changes:
- Removed the top-level
performActionfunction and replaced it with per-wrapperperformActioncallbacks. - Updated
updateLocalConversation/updateLocalConversationUncheckedto accept the inlined callback (or itsSemresult) instead of relying on singleton-based dispatch. - Simplified effect constraints (and related imports) in multiple API modules where the removed dispatcher previously forced extra dependencies.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| services/galley/src/Galley/API/Action.hs | Removes centralized performAction; threads per-wrapper action execution into updateLocalConversation* and simplifies effect constraints. |
| services/galley/src/Galley/API/Update.hs | Drops now-unneeded effect constraints from several update endpoints after the refactor. |
| services/galley/src/Galley/API/Teams.hs | Simplifies deleteTeamConversation constraints consistent with updated delete flow. |
| services/galley/src/Galley/API/MLS/Reset.hs | Removes unused imports/constraints after the reset path no longer requires them. |
| services/galley/src/Galley/API/MLS/Commit/InternalCommit.hs | Reduces constraints for internal-commit member removal to match updated unchecked remove-members path. |
| services/galley/src/Galley/API/LegalHold.hs | Cleans up imports/constraints (notably federation/team-collab related) no longer required after the action refactor. |
| services/galley/src/Galley/API/Federation.hs | Simplifies leaveConversation constraints after action refactor. |
| changelog.d/5-internal/WPB-23789-inline-perform-action | Adds changelog entry describing the refactor. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bae9ef6 to
5457e9a
Compare
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.
https://wearezeta.atlassian.net/browse/WPB-23789
Checklist
changelog.dNote: temporary taking another PR as base