[Blueprints v2] Add support for enableMultisite step #131
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.
This PR implements support for the
enableMultisitestep in Blueprints v2, addressing the gap where this popular step from v1 was not supported in the initial v2 implementation.Changes Made
New Files
EnableMultisiteStep.php- Step implementation that uses WP-CLI'score multisite-convertcommandEnableMultisiteStepTest.php- Unit tests for step execution and multisite verificationV1ToV2TranspilerTest.php- Tests for transpiler conversion functionalityModified Files
appendix-A-blueprint-v2-schema.ts- AddedEnableMultisiteSteptype definition and included it in theStepunion typeV1ToV2Transpiler.php- Updated to convert v1enableMultisitesteps instead of warning about them being unsupportedRunner.php- Added import and case handling forEnableMultisiteStepinstantiationproposal.md- Removed note about multisite being intentionally excluded from v2Implementation Details
The
enableMultisitestep:core multisite-convertcommand to convert existing WordPress installations to multisitewpCliPathparameter for custom WP-CLI executable pathsenableMultisitestepsExample Usage
v2 Blueprint
{ "version": 2, "additionalStepsAfterExecution": [ { "step": "enableMultisite" } ] }v1 Blueprint (automatically transpiled)
{ "steps": [ { "step": "enableMultisite", "wpCliPath": "/custom/wp-cli.phar" } ] }Testing
Added comprehensive test coverage including:
Fixes #130.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9013cd039fe5740953f9fdeebd19d901b80e26f2/usr/bin/php8.3 -n -c /tmp/L56tc4 /usr/bin/composer install(http block)https://api.github.com/repos/doctrine/instantiator/zipball/f427191c2690b0518194683d900f892ecd72c8a0/usr/bin/php8.3 -n -c /tmp/L56tc4 /usr/bin/composer install(http block)https://api.github.com/repos/myclabs/DeepCopy/zipball/1720ddd719e16cf0db4eb1c6eca108031636d46c/usr/bin/php8.3 -n -c /tmp/L56tc4 /usr/bin/composer install(http block)https://api.github.com/repos/yetanotherape/diff-match-patch/zipball/a0c37bc694c27ddccbd4989f72908ce524261bd1/usr/bin/php8.3 -n -c /tmp/Zp9xRc /usr/bin/composer install --no-dev(http block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.