Skip to content

[4.0] cli remove old files#31914

Closed
brianteeman wants to merge 1 commit intojoomla:4.0-devfrom
brianteeman:remove
Closed

[4.0] cli remove old files#31914
brianteeman wants to merge 1 commit intojoomla:4.0-devfrom
brianteeman:remove

Conversation

@brianteeman
Copy link
Contributor

Quick fix to change the success message

Pull Request for Issue #31901

Quick fix to change the success message

PR for
@PhilETaylor

This comment was marked as abuse.

@brianteeman
Copy link
Contributor Author

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

@ceford
Copy link
Contributor

ceford commented Jan 9, 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.

@alikon
Copy link
Contributor

alikon commented Jan 9, 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

@brianteeman
Copy link
Contributor Author

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

@alikon
Copy link
Contributor

alikon commented Jan 9, 2021

@brianteeman
Copy link
Contributor Author

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.

@alikon
Copy link
Contributor

alikon commented Jan 9, 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

@PhilETaylor

This comment was marked as abuse.

@PhilETaylor

This comment was marked as abuse.

@brianteeman
Copy link
Contributor Author

Got to love bikeshedding

@alikon
Copy link
Contributor

alikon commented Jan 9, 2021

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

@brianteeman brianteeman closed this Jan 9, 2021
@brianteeman brianteeman deleted the remove branch January 9, 2021 12:33
@PhilETaylor

This comment was marked as abuse.

@brianteeman
Copy link
Contributor Author

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.

@PhilETaylor

This comment was marked as abuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants