? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
8 Jan 2021

Quick fix to change the success message

Pull Request for Issue #31901

avatar brianteeman brianteeman - open - 8 Jan 2021
avatar brianteeman brianteeman - change - 8 Jan 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Jan 2021
Category Libraries
avatar PhilETaylor
PhilETaylor - comment - 8 Jan 2021

the tools doesn't only remove files, it removes folders too - so there is much more that could change...

The administrator/components/com_admin/script.php also outputs error messages that are not caught by the console command output streamer as well.

avatar brianteeman
brianteeman - comment - 9 Jan 2021

Folders is a level of pedantry I'm not going to entertain. The pr addresses the reported issue.

avatar ceford
ceford - comment - 9 Jan 2021

I have tested this item successfully on 60aaf53

Before the PR the command response is:
[OK] Files removed
After the PR the command response is:
[OK] There are no old files left to remove
So just changing the response message works as described.


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

avatar ceford ceford - test_item - 9 Jan 2021 - Tested successfully
avatar alikon
alikon - comment - 9 Jan 2021

this is not correct
put a dummy file at '/administrator/components/com_actionlogs/actionlogs.php',
run php cli/joomla.php update:joomla:remove-old-files

you'll get always the message
[OK] There are no old files left to remove

avatar brianteeman
brianteeman - comment - 9 Jan 2021

@alikon thats not related. The file you added is not an "old file"

avatar brianteeman
brianteeman - comment - 9 Jan 2021

In that case there is a problem with the script if its not removing files. All this PR does is to modify the string the script outputs on completion. Any issues with the script not working is completely off topic and should have its own issue.

avatar alikon
alikon - comment - 9 Jan 2021

All this PR does is to modify the string the script outputs on completion. Any issues with the script not working is completely off topic and should have its own issue.

which is wrong imho they are strictly related
the correct command output should be

  • files/folder removed if 1 or more file/folder file was removed
  • no files/folders to remove if no file/folder file was removed

and yes the script.php must be modifyed to return at least a boolean

avatar PhilETaylor
PhilETaylor - comment - 9 Jan 2021

If the script returned an array of files and their statues, and information on the action then the command could show WHICH files it deleted, WHICH it checked etc.

Then the correct use of command verbose level could be used (-v -vv -vvv) to display a summary, more detail and debug information

Verbose is what makes a command so useful.

The command deletes folders too and therefore this PR just makes an inaccurate string just as inaccurate

avatar PhilETaylor
PhilETaylor - comment - 9 Jan 2021

The command should also have a --dry-run option

avatar brianteeman
brianteeman - comment - 9 Jan 2021

Got to love bikeshedding

avatar alikon
alikon - comment - 9 Jan 2021

still need to fully understand what bikeshedding means
? but...

avatar brianteeman brianteeman - change - 9 Jan 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-01-09 12:33:27
Closed_By brianteeman
Labels Added: ?
avatar brianteeman brianteeman - close - 9 Jan 2021
avatar PhilETaylor
PhilETaylor - comment - 9 Jan 2021

Basically he's using it as an abusive term towards me because he doesn't have the skills to correctly address the issue and wants to belittle me for wanting the best from joomla and for offering my valid comments on how joomla can do much better, which he doesn't see as valid - unless I invest my time in writing the PR myself. I've come to expect nothing less.

All the commands in joomla are currently a joke and don't fully implement Symfony command logic in a way that people that have been using Symfony based commands for years come to expect as a minimum. This is just the latest example.

The commands do the bare minimum currently and don't honour the built in modes like verbosity

"Doing something right" is better than ignoring the issue.

And like you say, it seems this command doesn't even do what it should - delete files!

avatar brianteeman
brianteeman - comment - 9 Jan 2021

I am using it as a term to indicate that the conversation you are having is unrelated to the actual issue. As for your consistent criticism of others people work and only being willing to contribute a spellcheck - everyone knows that you are just a leach who takes from joomla without giving back.

avatar PhilETaylor
PhilETaylor - comment - 9 Jan 2021

You comments and continued attacks are in direct violation of the Joomla Code Of Conduct - https://docs.joomla.org/Joomla:Code_of_Conduct_(COC) - again.

Screenshot 2021-01-09 at 13 20 23

Add a Comment

Login with GitHub to post a comment