User tests: Successful: Unsuccessful:
Quick fix to change the success message
Pull Request for Issue #31901
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Folders is a level of pedantry I'm not going to entertain. The pr addresses the reported issue.
I have tested this item
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 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
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.
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
and yes the script.php
must be modifyed to return at least a boolean
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
The command should also have a --dry-run option
Got to love bikeshedding
still need to fully understand what bikeshedding means
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-01-09 12:33:27 |
Closed_By | ⇒ | brianteeman | |
Labels |
Added:
?
|
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!
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.
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.
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.