Skip to content

refactor(setup): which dataset a load is for gets its own method - #1359

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/setup-load-dataset-complexity
Oct 8, 2026
Merged

rubenvdlinde merged 1 commit into
developmentfrom
fix/setup-load-dataset-complexity

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

The beta promotion (#661) fails phpmd. One finding came from the setup wizard card change (#1257): SetupController::loadDataset() at cyclomatic complexity 10. Resolving which dataset a load is for (posted by the card, else the stored pick; the legacy install-demo-data action always means the shipped set) moves into pickedDataset(). No behaviour change.

Verified: phpmd on SetupController exit 0, phpcs 0 errors, SetupControllerTest 22 tests OK.

Inherited (not from this change): phpmd on SessionController (class length, method count, exampleResidentUser() complexity) and PortalShell (class complexity, residentMenu()), from #1253, #1250 and #1211.

🤖 Generated with Claude Code

The card-load change (#1257) took loadDataset() to phpmd's cyclomatic
threshold. Resolving the posted, stored or legacy dataset now lives in
pickedDataset(); behaviour is unchanged.
@rubenvdlinde
rubenvdlinde merged commit c2a8d67 into development Oct 8, 2026
5 checks passed
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/portaliq @ 39fad5c

Check PHP Vue Security License Tests
lint ✅
phpcs ✅
phpmd ❌
psalm ✅
phpstan ✅
phpmetrics ✅
eslint ✅
stylelint ✅
build ✅
check-specs ✅
check-manifest ✅
format ✅
check-l10n-js ✅
check-schema-l10n ✅
check-reuse ✅
composer ✅ ✅ 108/108
npm ✅ ✅ 984/984
app:check-code ⏭️
info.xml ✅
REUSE ✅
lockfile sync ✅
PHPUnit ✅
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-10-08 05:22 UTC

Download the full PDF report from the workflow artifacts.

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