-
Notifications
You must be signed in to change notification settings - Fork 82
Provide WP version in the inquiry. #239
base: develop
Are you sure you want to change the base?
Conversation
@eugene-manuilov would you mind taking a look and reviewing this one? :) |
@tylercherpak maybe you may find some time to review this PR? |
@tylercherpak I went through this one and tested locally -- all worked as expected, but perhaps better error handling of an invalid version would be a good idea. Right now a version input like |
Thanks, @TylerB24890 for the idea! I implemented the fallback. I agree that prompting again could be a slightly better experience, but given the installation happens far after inquiry, bringing the inquirer back, could mess a bit with the flow. So I went the easier way. |
I was also thinking about making |
@TylerB24890 @tomalec This is certainly a nice feature! I really hope this gets merged. It seems stable and workable. |
Fixes #157.
Description of the Change
As a WP plugin developer, I'd like to be able to easily set up environments with different (dated) versions of WP to test.
This change allows me to provide WP version in the
10updocker create
inquiry.But still defaults to the
latest
as before.Alternate Designs
As mentioned by @lippoliv in the issue #157, we could add it via CLI parameter.
Also, we may consider adding the validation of the provided version. But I wanted to keep this PR as small as possible.
Benefits
Introduces a feature to install the desired version of WP, without a need to manually downgrade it afterward. Which reduces the traffic, resource consumption, and chance of an error.
Possible Drawbacks
The inquiry may be too long and verbose.
Verification Process
I run
10updocker create
and answeredThen got the new question. Tried default
latest
,5.7.3
,5.7
,foo
.Then checked what versions of WP were actually installed.
I run the
10updocker create
forwordpress.type = dev
type, forwordpress = false
, and forwordpress.version = latest
.Checklist:
Applicable Issues
Changelog Entry
Added WordPress version question to
create
inquiry.