refactor: rename initModularizedControllers to initMessengerClients and update result properties#28645
Open
cryptodev-2s wants to merge 1 commit intomainfrom
Open
Conversation
Contributor
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
This was referenced Apr 10, 2026
d94c76a to
56cc68e
Compare
Base automatically changed from
rename-controller-messengers-to-messenger-factories
to
main
April 10, 2026 18:22
…nd update result properties
13768ee to
6f60b10
Compare
Contributor
🔍 Smart E2E Test Selection⏭️ Smart E2E selection skipped - draft PR All E2E tests pre-selected. |
Contributor
|
✅ E2E Fixture Validation — Schema is up to date |
|
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.



Description
Rename
initModularizedControllerstoinitMessengerClients, dropexistingControllersByName, renamecontrollerInitFunctionstoinitFunctions, and update return type tomessengerClientsByName. Update all consumers inEngine.ts,utils.test.ts, and test utility functions.80 files changed. PR 3 of 4 — depends on PR 2 (#28641).
PR 1: Core type renames (Controller→MessengerClient, etc.) (refactor: rename Controller types to MessengerClient types #28610)PR 2:CONTROLLER_MESSENGERS→MESSENGER_FACTORIES(refactor: rename CONTROLLER_MESSENGERS to MESSENGER_FACTORIES #28641)initModularizedControllers→initMessengerClients+ utils/Engine.ts renamescontroller→messengerClient,getController→getMessengerClient) in all init files + testsRelates to WPC-916.
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/WPC-916
Manual testing steps
Screenshots/Recordings
N/A — no UI changes.
Before
N/A
After
N/A
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Touches Engine startup wiring by renaming and reshaping the controller/messenger-client initialization helper; behavior should be equivalent but regressions could prevent controllers from being initialized or retrieved in the correct order.
Overview
Renames the modular engine initialization helper from
initModularizedControllerstoinitMessengerClients, updating its API (controllerInitFunctions→initFunctions) and return shape (controllersByName→messengerClientsByName).Updates
Engine.tsto use the new helper/return value for wiring controller instances into the Engine context, and adjusts the helper to drop support for pre-seededexistingControllersByNamein favor of a single progressively-built map.Renames the associated test utilities (
buildControllerInitRequestMock/createMockControllerInitFunction) and updates a large set of controller init tests to use the new mock builder and updated helper/error messages.Reviewed by Cursor Bugbot for commit 6f60b10. Bugbot is set up for automated code reviews on this repo. Configure here.