Repository navigation
[access] refactor(showcases): split DemoShowcasesService::installShowcase into lock and install steps - #1082
Open
rubenvdlinde wants to merge 2 commits into
Open
rubenvdlinde wants to merge 2 commits into
rubenvdlinde wants to merge 2 commits into
Conversation
…andling before the split Assisted-by: ClaudeCode:claude-opus-5-5
… lock and install steps Assisted-by: ClaudeCode:claude-opus-5-5
rubenvdlinde
requested review from
WilcoLouwerse,
bbrands02 and
rjzondervan
as code owners
November 11, 2026 18:58
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 changed
DemoShowcasesService::installShowcase(public, signature unchanged) reads as named steps. This PR touches a different method than the open descriptor / partition split of the same file and merges cleanly with it.assertInstallable(unknown id, missing archive — both before the lock is taken, as before).acquireInstallLock(the same "already in progress" refusal, with the lock exception as its cause) andreleaseInstallLock, still in afinallyso every install attempt releases the lock.installLockedreuses an existing install, replaces it when forced, or installs fresh; the language and force flag travel as aShowcaseInstallOptions.Allowed and refused outcomes, the lock key and mode, and the order of the lock, uninstall, insert and marker writes are unchanged.
Characterisation tests
tests/Unit/Service/DemoShowcasesInstallGoldenTest.phpwas committed first, against the old code, and passes before and after: unknown ids and missing archives refused before the lock, a busy lock refused (with its cause) and not released, an existing install reused under the lock, a forced reinstall uninstalling before inserting, a fresh install marked and released, and a failed install still releasing the lock. Mutation check: ignoring the force flag on the old code turned the reuse golden red; restored before committing.What ran
vendor/bin/phpunit -c phpunit.xml --no-coverage tests/Unit: 2751 tests OK (13 skipped, as on development).vendor/bin/phpcs(two warnings about missing spec tags ongetDataDir/setDataDirForTesting, the same as on development) andvendor/bin/phpstan analyseon the touched lib files: no errors.Figures (touched files
lib/Service/DemoShowcasesService.php,lib/Service/ShowcaseInstallOptions.php)installShowcaseApp-wide: unit complexity 4.02 → 4.05, unit interfacing 3.14 → 3.15.
Maintainability floor: compare against development holds.
AI-assisted: prepared with Claude Code (claude-opus-5-5); reviewed by a maintainer before merge.
Generated by Claude Code