Repository navigation
feat: add global phpmyadmin install command, fixes #6342 - #6343
Conversation
|
Download the artifacts for this pull request:
See Testing a PR. |
rfay
left a comment
There was a problem hiding this comment.
Please add to TestCustomCommands,
ddev/cmd/ddev/cmd/commands_test.go
Lines 184 to 193 in 5b0e640
rfay
left a comment
There was a problem hiding this comment.
I haven't started the github tests yet because it seems like this is still stabilizing.
Please try running the test manually, see https://ddev.readthedocs.io/en/stable/developers/building-contributing/#testing
Also see the contributor training on running tests in https://ddev.com/blog/contributor-training/
stasadev
left a comment
There was a problem hiding this comment.
This is a good solution that will allow people to install phpMyAdmin without any problems.
I have made a few suggestions that need some attention.
rfay
left a comment
There was a problem hiding this comment.
Minor wording suggestions in prompts.
stasadev
left a comment
There was a problem hiding this comment.
Thank you @nlighteneddesign !
This command is doing a great job and expanding the DDEV ecosystem in the right direction.
I would even say that it was meant to be here, why wasn't it here before?
We might even want to do the same for some of the other popular add-ons.
|
Sorry, we're probably going to close it in favor of #6353. But it's really impressive PR that got us to explore this area. @nlighteneddesign, I'll give you commit credit in #6353 because I used your idea there. |
|
Commit credit is given in Closing this PR. |
|
This is a good thing to go in: Even if we decide not to add the same script for other add-ons in the future, this is the most popular add-on and deserves to be automatically installed. |
|
I agree, this solves a classic problem that any number of people have asked about since PhpMyAdmin was removed from core DDEV. |
stasadev
left a comment
There was a problem hiding this comment.
I reformatted the prompt a bit to make it look like Go prompt.
|
The one "interesting" bit of behavior here is that the global phpmyadmin command gets overridden by the project phpmyadmin command that gets installed by the add-on. It should work fine. |
Co-authored-by: Stanislav Zhuk <[email protected]>
Co-authored-by: Stanislav Zhuk <[email protected]>
Co-authored-by: Stanislav Zhuk <[email protected]>
Co-authored-by: Stanislav Zhuk <[email protected]>
Co-authored-by: Ralf Koller <[email protected]>
Co-authored-by: Randy Fay <[email protected]>
rfay
left a comment
There was a problem hiding this comment.
It's shocking how easy this is now. I didn't even have to ddev start to have the new command take effect. All good, thanks all!
|
Thanks so much @nlighteneddesign ! Great idea, great implementation. |
The Issue
Adds a global phpmyadmin command that asks the user if they want to install the phpmyadmin addon.
How This PR Solves The Issue
If the user answers yes then the ddev get ddev/ddev-phpmyadmin command is run.
Since this is global once the addon is installed it will override the phpmyadmin command.
Manual Testing Instructions
Configure a new directory for ddev
ddev configRun
ddev phpmyadminYou should be asked if you want to install the addon
If you answer no running
ddev phpmyadminwill ask if you want to install againIf you answer yes you should receive a success message and a subsequent
ddev phpmyadminwill launch phpmyadminAutomated Testing Overview
No tests added
Release/Deployment Notes
Adds global phpmyadmin command.