? ? ? Pending

User tests: Successful: Unsuccessful:

avatar agi-code
agi-code
10 May 2021

Pull Request for Issue #32967 .

Summary of Changes

I have corrected the misleading duplicate consoles outputs mentioned in #32967 and I have added a task to install and a task to list the detected extensions.

Testing Instructions

Run

php cli/joomla.php extension:discover:list

php cli/joomla.php extension:discover:install

and

php cli/joomla.php extension:discover

The following is an example:

php cli/joomla.php extension:discover:list

 ! [NOTE] Cannot find discovered extensions. Perhaps you need to run extension:discover first?                          

php74:/srv/www/joomla/j4dev# php cli/joomla.php extension:discover:install

 ! [NOTE] There are no discovered extensions for install. Perhaps you need to run extension:discover first?             

php74:/srv/www/joomla/j4dev# php cli/joomla.php extension:discover

 ! [NOTE] 4 extensions have been discovered successfully.                                                               

php74:/srv/www/joomla/j4dev# php cli/joomla.php extension:discover:list

Discovered extensions.
======================

 ------------------------ -------------- --------- ---------- -------- 
  Name                     Extension ID   Version   Type       Active  
 ------------------------ -------------- --------- ---------- -------- 
  en-GB                    306            4.0.0     language   No      
  en-GB                    307            4.0.0     language   No      
  en-GB                    308            4.0.0     language   No      
  plg_sampledata_testing   309            4.0.0     plugin     No      
 ------------------------ -------------- --------- ---------- -------- 

php74:/srv/www/joomla/j4dev# php cli/joomla.php extension:discover:install --eid 306

                                                                                                                        
 [OK] Extension with ID 306 installed successfully.                                                                     
                                                                                                                        

php74:/srv/www/joomla/j4dev# php cli/joomla.php extension:discover:install 

 ! [NOTE] 3 discovered extensions have been installed.     

Actual result BEFORE applying this Pull Request

See #31524

Documentation Changes Required

Yes: https://docs.joomla.org/J4.x:CLI_Update

a9f4766 9 May 2021 avatar astridx wip
b41ec80 9 May 2021 avatar astridx wip
87cdbe5 9 May 2021 avatar astridx wip
c01e471 10 May 2021 avatar astridx wip
3ecc24d 10 May 2021 avatar astridx wip
0a3427e 10 May 2021 avatar astridx wip
114d170 10 May 2021 avatar astridx wip
3b5aecf 10 May 2021 avatar astridx cs
4713f35 10 May 2021 avatar astridx wip
avatar agi-code agi-code - open - 10 May 2021
avatar agi-code agi-code - change - 10 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 May 2021
Category Administration com_installer Libraries Unit Tests
avatar astridx astridx - change - 10 May 2021
Labels Added: ? ?
75553e6 10 May 2021 avatar astridx cs
avatar astridx astridx - change - 10 May 2021
Labels Added: ?
Removed: ?
9554bc7 10 May 2021 avatar astridx cs
be63829 10 May 2021 avatar astridx cs
avatar PhilETaylor
PhilETaylor - comment - 11 May 2021

The code works perfectly, and has been tested, just made comments on text strings that can be improved and the file header dates - with those changed, this is ready :)

Thanks!

avatar ceford ceford - test_item - 11 May 2021 - Tested successfully
avatar ceford
ceford - comment - 11 May 2021

I have tested this item successfully on be63829

Commands worked as described - discovered and then installed one extension.


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

avatar agi-code agi-code - change - 11 May 2021
Labels Added: ?
Removed: ?
avatar agi-code
agi-code - comment - 11 May 2021

@PhilETaylor I committed all your suggestions. Please have look, if everything is fine.

avatar PhilETaylor PhilETaylor - test_item - 11 May 2021 - Tested successfully
avatar PhilETaylor
PhilETaylor - comment - 11 May 2021

I have tested this item successfully on 497b50f


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

avatar alikon
alikon - comment - 11 May 2021
avatar PhilETaylor
PhilETaylor - comment - 11 May 2021

easy fix @agi-code in the unit test.

avatar alikon
alikon - comment - 11 May 2021

funny when we have a pr with unit/system code too ?

avatar PhilETaylor
PhilETaylor - comment - 11 May 2021

funny when we have a pr with unit/system code too ?

Don't get excited, the unit tests don't actually cover the functionality of the command, which would be very hard to do end-to-end testing on :-) They just test some text strings.

avatar alikon
alikon - comment - 11 May 2021

that's another issue
let me be happy to see a pr with system tests ..... whatever

plus a cli pr ?

avatar agi-code agi-code - change - 11 May 2021
Labels Added: ?
Removed: ?
avatar PhilETaylor
PhilETaylor - comment - 11 May 2021

If I were being pedantic I would also remove the word "successfully"...

from

 ! [NOTE] 4 extensions have been discovered successfully.   

They have been "discovered", that is enough to say

 ! [NOTE] 4 extensions have been discovered.
avatar agi-code agi-code - change - 11 May 2021
Labels Added: ?
Removed: ?
avatar alikon alikon - test_item - 12 May 2021 - Tested successfully
avatar alikon
alikon - comment - 12 May 2021

I have tested this item successfully on 646a889


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

avatar alikon
alikon - comment - 18 May 2021

@PhilETaylor can you please test this 1

avatar PhilETaylor
PhilETaylor - comment - 18 May 2021

Cough cough #33749 (comment)

avatar richard67
richard67 - comment - 18 May 2021

@PhilETaylor Well there were commits after your test ... but I've just checked, it was just texts .. so I restore your result in the issue tracker.

avatar richard67 richard67 - alter_testresult - 18 May 2021 - @PhilETaylor: Tested successfully
avatar richard67 richard67 - change - 18 May 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 18 May 2021

RTC


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

avatar richard67
richard67 - comment - 18 May 2021

Just texts I meant.

avatar PhilETaylor
PhilETaylor - comment - 18 May 2021

yes it was just tests and the unit tests now pass - that is good enough for me :)

avatar richard67
richard67 - comment - 18 May 2021

yes it was just tests and the unit tests now pass - that is good enough for me :)

@PhilETaylor Was a typo, not "tests", "texts" I meant. But it's ok.

avatar rdeutz rdeutz - change - 20 May 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-05-20 17:41:39
Closed_By rdeutz
Labels Added: ? ?
Removed: ?
avatar rdeutz rdeutz - close - 20 May 2021
avatar rdeutz rdeutz - merge - 20 May 2021

Add a Comment

Login with GitHub to post a comment