Skip to content

refactor(configuration): drop the decoders ImportHandler carried and nothing called - #6009

Merged
rubenvdlinde merged 1 commit into
developmentfrom
refactor/r3-import-handler
Nov 6, 2026
Merged

rubenvdlinde merged 1 commit into
developmentfrom
refactor/r3-import-handler

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

decode, getJSONfromFile, getJSONfromURL and getJSONfromBody on ImportHandler had no caller. Upload and fetch run through UploadHandler and FetchHandler, which hold their own copies. The HTTP client and the upload handler were in the constructor only for these methods, so they leave too.

Evidence the code is unused:

  • In openregister, no call on an ImportHandler in lib, routes or templates; only ImportHandlerTest called them, and those 21 tests go with the methods. FetchHandlerTest and UploadHandlerTest still cover the live copies.
  • In the fleet, grep of fresh development clones of the core apps and nextcloud-vue: no getJSONfrom* outside openregister and no call of these methods on an ImportHandler. Fleet references to the class are comments.

ensureArrayStructure stays: the import itself uses it.

Numbers: ImportHandler units over the bar 110 to 108, 1 duplicate block gone. Params 3+ unchanged.

What ran on fbd6e13: all 60 import and configuration test files, 472 tests, 0 failures, 1 skipped. phpcs, phpmd, phpstan and psalm on the touched lib files, rc 0. Gate 122 ratchet: 0 findings on changed units, 17 inherited. The full suite goes through the batch.

…nothing called

decode, getJSONfromFile, getJSONfromURL and getJSONfromBody were public, but
nothing in openregister or the fleet calls them on ImportHandler: UploadHandler
and FetchHandler hold the live copies. The HTTP client and the upload handler
were only there for them, so both leave the constructor.

Assisted-by: ClaudeCode:claude-opus-5-5
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/openregister @ a838240

Check PHP Vue Security License Tests
lint ✅
phpcs ✅
phpmd ❌
psalm ❌
phpstan ❌
phpmetrics ✅
eslint ❌
stylelint ✅
build ✅
check-specs ✅
test-l10n ❌
test-l10n-parity ✅
format ❌
check-schema-l10n ✅
composer ✅ ✅ 165/165
npm ✅ ✅ 640/640
app:check-code ⏭️
info.xml ✅
REUSE ✅
lockfile sync ✅
PHPUnit ❌ 34638/34639 · 18 skipped
Newman ❌ 1628/1630
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-06 18:58 UTC

Download the full PDF report from the workflow artifacts.

@rubenvdlinde
rubenvdlinde merged commit 924855c into development Nov 6, 2026
37 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant