Repository navigation
refactor(stackiq): delete the unreferenced StackiqService and its three sub-services - #1415
Merged
rubenvdlinde merged 2 commits intoNov 4, 2026
Merged
Conversation
…ee sub-services No class in lib/, src/ or appinfo/ uses StackiqService: it has no DI registration in Application.php, no string service id, no route, background job, repair step or occ command, and no other app in the workspace references it. ApiClient, ConflictResolver and DataMapper under lib/Service/Stackiq/ were extracted from it and are not referenced by anything either. All four go (1,910 lines), with their tests (StackiqServiceDecompositionTest, StackiqServiceOrganisationMapperTest, and the stale StackiqEventListenerTest that skipped all of its cases), their phpstan and phpmd baseline entries, and a parity evidence citation pointing at the deleted file. REQ-DECOMP-004 now records the removal instead of the decomposition it asked for. Assisted-by: ClaudeCode:claude-opus-5-5
rubenvdlinde
marked this pull request as ready for review
November 3, 2026 19:17
Contributor
Author
|
Local evidence: full unit suite (phpunit-unit.xml, pcov, --fail-on-risky, through heavy.sh) exit 0, 1611 tests, 0 failures, 0 risky, 47 skipped. Hydra gates --scope-to-diff --base origin/development: 38 of 38 applicable gates ran, 0 FAIL. |
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 | ✅ 1603/1603 · 8 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-03 23:41 UTC
Download the full PDF report from the workflow artifacts.
…tackiq-delete-unused-services
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 | ✅ 1741/1741 · 8 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-04 12:30 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.
Stacked on #1412 (held). Held until #1412 merges. This PR deletes code only. Its own commit is the last one.
What
This PR deletes
lib/Service/StackiqService.php(1,406 lines once #1412 has removed its organisation sync) and the three sub-services that were extracted from it:lib/Service/Stackiq/ApiClient.php,ConflictResolver.phpandDataMapper.php(504 lines). Their tests go as well:StackiqServiceDecompositionTest,StackiqServiceOrganisationMapperTest, and the staleStackiqEventListenerTest, which skipped all 12 of its cases. #1413 deletes that last file too.The other changes:
Proof that nothing uses it
I ran each check on this branch:
grep -rn StackiqService lib src appinfo templatesfinds only doc comments in the three deleted sub-services. The class is never imported, type-hinted or instantiated.lib/AppInfo/Application.phphas no registration and no string service id ('OCA\Stackiq\Service\StackiqService'appears nowhere).ApiClient,ConflictResolverandDataMapperare referenced by no file at all, not even by StackiqService.lib/,src/andappinfo/in every sibling app underapps-extrafinds noStackiqServiceand noOCA\Stackiq\Service\StackiqService.Numbers (PHP, lizard)
The small rises in the McCabe and params shares come only from the smaller denominator. Nothing that remains changed.
Verified locally
--fail-on-risky) and the hydra gates are queued. Their results follow in a comment.Assisted-by: ClaudeCode:claude-opus-5-5