Repository navigation
refactor(federation): pass the peer to the merge plan as one array - #1377
Merged
Merged
Conversation
FederationMerger::plan took the peer's url, organisation and sync moment as three of its five parameters. They now travel as one peer array; the reconciliation itself is unchanged. FederationService and the merger test pass the same values in the new shape, and the pull test now also checks the organisation and sync moment on the stored mirror. Assisted-by: ClaudeCode:claude-opus-5-5
Contributor
Quality Report — ConductionNL/stackiq @
|
| Check | PHP | Vue | Security | License | Tests |
|---|---|---|---|---|---|
| lint | ✅ | ||||
| phpcs | ✅ | ||||
| phpmd | ✅ | ||||
| psalm | ✅ | ||||
| phpstan | ✅ | ||||
| phpmetrics | ✅ | ||||
| eslint | ✅ | ||||
| stylelint | ✅ | ||||
| build | ✅ | ||||
| check-manifest | ✅ | ||||
| check-vue-demi | ✅ | ||||
| test-l10n | ✅ | ||||
| format | ❌ | ||||
| check-schema-l10n | ❌ | ||||
| check-l10n-js | ✅ | ||||
| composer | ❌ | ✅ 127/127 | |||
| npm | ❌ | ✅ 807/807 | |||
| app:check-code | ⏭️ | ||||
| info.xml | ✅ | ||||
| REUSE | ❌ | ||||
| lockfile sync | ✅ | ||||
| PHPUnit | ✅ 1486/1486 · 20 skipped | ||||
| Newman | ⏭️ | ||||
| Playwright | ⏭️ deferred: E2E runs locally and on the promotion path only. This pull request targets development, so the suite is asked once per promotion into beta and main rather than once per push per open pull request. Run it locally with npx playwright test, or from the Actions tab on a branch with no open pull request into development. |
||||
| Hydra gates | ❌ |
Quality workflow — 2026-11-02 21:38 UTC
Download the full PDF report from the workflow artifacts.
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.
What
FederationMerger::plantook the peer's url, organisation and sync moment as three of its five parameters. They now travel as one$peerarray (url,organisation,syncedAt);plan()reads them into the same local variables at its top, so the reconciliation (create, update, withdraw; the ownership guard that keeps locally-owned entries out; the no-op-equal check) is untouched. Its one caller,FederationService::pullPeer, passes the same values in the new shape, and the 7 calls inFederationMergerTestare rewritten to it.testPullPeerMergesNewEntriesnow also checks the organisation and the sync moment on the stored mirror: a mutant that dropped the sync moment at the call site survived the existing tests, on the old code as well.SIG (gate 122 reader, lizard 1.24.3), php
plan()moves from 5 to 3 parameters (54 to 51 lines, McCabe 11 as before);pullPeerstays at 53 lines. With the REVIEW PR #1375, the facet PR #1376 and the scope file #1351 together, php params >=5 reaches 3.28%, under the 3.3% 4-star limit; the margin is small (6 unit lines).Verified
FederationMergerTestandFederationServiceTest(23 tests) pass on the new code;FederationServiceTestwith the added assertions passes on the old code too (14 tests, 59 assertions on both).--fail-on-risky: 1,506 tests, the same 20 errors as development (Doctrine\DBAL\ParameterTypemissing locally), 0 risky.AI disclosure: prepared with Claude Code (claude-opus-5-5) and reviewed by the lane before opening.