? Pending

User tests: Successful: Unsuccessful:

avatar astridx
astridx
29 Nov 2020

Summary of Changes

i added a CLI task to discover extensions. I took #28666 as an example

Testing Instructions

  1. Apply this PR

  2. Copy or symlink an extension to your Joomla installation

  3. Run php ./cli/joomla.php extension:discover --eid=122 php ./cli/joomla.php extension:discoverinstall --eid=122 for discovering the extension with the ID 122
    or
    Run the command without a parameter (like this php ./cli/joomla.php extension:discover php ./cli/joomla.php extension:discoverinstall) for discovering all extensions, that are copied to Joomla but not installed.

  4. Run php ./cli/joomla.php list or only php ./cli/joomla.php and check the entry in the list.

  5. Run php ./cli/joomla.php help extension:discover php ./cli/joomla.php help extension:discoverinstallto check the help information.

Documentation Changes Required

I would add it here: https://docs.joomla.org/J4.x:CLI_Update

avatar astridx astridx - open - 29 Nov 2020
avatar astridx astridx - change - 29 Nov 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Nov 2020
Category Libraries
avatar astridx astridx - change - 29 Nov 2020
The description was changed
avatar astridx astridx - edited - 29 Nov 2020
avatar astridx astridx - change - 29 Nov 2020
Labels Added: ?
avatar richard67
richard67 - comment - 29 Nov 2020

@astridx Could you check and fix PHP code style errors reported by drone here https://ci.joomla.org/joomla/joomla-cms/37913/1/6? Thanks in advance

avatar astridx
astridx - comment - 29 Nov 2020

@laoneo @richard67 Thank you. I fixed the copy and pasted mistakes.

avatar richard67
richard67 - comment - 29 Nov 2020

@astridx Thanks. It might be that system tests are failing in drone for your PR, but this is very likely unrelated. But if you want to have it nice, you can update your branch to latest 4.0-dev of the CMS, then the system tests will pass and all will be green, which looks nicer ;-)

avatar astridx
astridx - comment - 29 Nov 2020

Now it is nice and green :)

avatar toivo toivo - test_item - 29 Nov 2020 - Tested successfully
avatar toivo
toivo - comment - 29 Nov 2020

I have tested this item successfully on 4a1e74f

Tested successfully in Beta6-dev of 29 November


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31524.

avatar brianteeman
brianteeman - comment - 29 Nov 2020

Does this find the extensions or does it install them?

avatar wilsonge
wilsonge - comment - 30 Nov 2020

@brianteeman is right - can we name this to discover install - because we should add a separate discover task which covers the 'refresh' task in github https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_installer/controllers/discover.php#L26-L33

avatar toivo toivo - test_item - 30 Nov 2020 - Tested successfully
avatar toivo
toivo - comment - 30 Nov 2020

I have tested this item successfully on b4ffab6

Tested successfully in Beta6-dev and PHP 8.0.

Copied the following free 3rd party extensions to modules and the PR detected and installed them:
Mini Frontpage from https://extensions.joomla.org/extension/news-display/articles-display/mini-frontpage/
Rapid Contact from https://extensions.joomla.org/extension/contacts-and-feedback/contact-forms/rapid-contact/


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31524.

avatar astridx
astridx - comment - 1 Dec 2020

@brianteeman is right - can we name this to discover install - because we should add a separate discover task which covers the 'refresh' task in github https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_installer/controllers/discover.php#L26-L33

@wilsonge I don't understand what you mean with this.

avatar laoneo
laoneo - comment - 12 Dec 2020

I guess he means to rename the class to ExtensionDiscoverInstallCommand.

avatar laoneo
laoneo - comment - 22 Dec 2020

Renamed the classes, can be tested now.

avatar HLeithner
HLeithner - comment - 22 Dec 2020

Joomla 4.0 is in feature freeze can you please rebase this on j4.1 or I can do this for you, thanks

avatar laoneo
laoneo - comment - 22 Dec 2020

This is not a feature, it is an enhancement. And I need it for testing extensions in j4. So no way to rebase to 4.1.

avatar HLeithner
HLeithner - comment - 22 Dec 2020

And I need joomla 4 ready to ship

avatar laoneo
laoneo - comment - 22 Dec 2020

And postponing this to 4.1 will help?

avatar laoneo
laoneo - comment - 22 Dec 2020

Ok, I give up. Do whatever you want with it. I'm building it on my own

avatar alikon
alikon - comment - 23 Dec 2020

after the latest commit this is needed ExtensionDiscoverInstall renamed to ExtensionDiscoverInstallCommand
see astridx#3

avatar alikon
alikon - comment - 23 Dec 2020

I have tested this item successfully on 1381942


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31524.

avatar alikon alikon - test_item - 23 Dec 2020 - Tested successfully
avatar astridx astridx - change - 23 Dec 2020
The description was changed
avatar astridx astridx - edited - 23 Dec 2020
avatar astridx astridx - change - 23 Dec 2020
The description was changed
avatar astridx astridx - edited - 23 Dec 2020
avatar HLeithner HLeithner - close - 18 Mar 2021
avatar HLeithner HLeithner - merge - 18 Mar 2021
avatar HLeithner HLeithner - change - 18 Mar 2021
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-03-18 09:33:51
Closed_By HLeithner
avatar HLeithner
HLeithner - comment - 18 Mar 2021

thanks and sorry

Add a Comment

Login with GitHub to post a comment