Language Change ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
7 Jan 2020

It has been requested several times that there was a single place where you could go and "empty the trash" for all components.

This new component is based on com_checkin

At this stage
[ ] I am sure the code in the model can be improved
[ ] What should the default permissions be or should it be hard coded restricted to super users only like joomlaupdate is
[ ] To do - add a quickicon on the home dashboard ?

testing

Apply patch and then discover the component
You will then find it in the Maintenance section of the system dashboard

avatar brianteeman brianteeman - open - 7 Jan 2020
avatar brianteeman brianteeman - change - 7 Jan 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Jan 2020
Category Administration com_menus Language & Strings
avatar brianteeman brianteeman - change - 7 Jan 2020
Title
[4.0] Global Delete Trash - New Feature
[4.0] [DRAFT] Global Delete Trash - New Feature
avatar brianteeman brianteeman - edited - 7 Jan 2020
avatar jwaisner jwaisner - test_item - 7 Jan 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 7 Jan 2020

I have tested this item successfully on a6a6e3b

component functions. trashed objects from all com_ tables. Used component to delete trashed items across the entire site.


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

avatar brianteeman brianteeman - change - 7 Jan 2020
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 7 Jan 2020
Category Administration com_menus Language & Strings Administration com_menus Language & Strings Libraries
avatar jwaisner jwaisner - test_item - 7 Jan 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 7 Jan 2020

I have tested this item successfully on 96beb04

Everything functions as expected after being added to list as core extension.


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

avatar SharkyKZ
SharkyKZ - comment - 8 Jan 2020

I'm not sure if com_checkin is a good example. At least if we ever intend to support tables with custom column names. We have some ways of mapping column names to "standard" column names (Joomla\CMS\Table\Table::setColumnAlias() method or the UCM field mappings) but none of that works if we just run through all database tables.

avatar brianteeman
brianteeman - comment - 8 Jan 2020

@SharkyKZ I would suggest that if that ever happens then this code can be updated.

avatar brianteeman
brianteeman - comment - 8 Jan 2020

@ot2sen no need to update the year. The build scripts will do that

avatar richard67
richard67 - comment - 8 Jan 2020

Great new feature ... I think it HAS to go into 4.0 ... so I hope it will be ready before beta.

@brianteeman Is it still draft/WiP? Or is it (beside PHPCS) ready for test? Let us know please when we shall test.

avatar brianteeman
brianteeman - comment - 8 Jan 2020

it is a draft - as in there are bits not done such as install sql AND the questions in the original post. I am confident that the code works just dont know if it is something people think is a good idea etc

292e43e 9 Jan 2020 avatar brianteeman cs
avatar jwaisner jwaisner - test_item - 11 Jan 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 11 Jan 2020

I have tested this item successfully on 292e43e


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

avatar jwaisner
jwaisner - comment - 23 Jan 2020

@richard67 Can you please give this one a test?

@brianteeman I think it is a good idea. Now how to handle the install SQL is beyond me.


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

avatar richard67
richard67 - comment - 23 Jan 2020

@jwaisner As far as I understood @brianteeman this PR is still a draft and not ready. And it is late now here in my time zone and I have to work tomorrow, so right I won't test for sure.

avatar HLeithner
HLeithner - comment - 24 Jan 2020

The idea of a global trash is good, but using com_checkin as base is not the best approach. Sharky already mentioned the this component loads all tables and tries to figure out if there is a trash able item or not.

The right way would be that each component has to register for the global trash.

avatar brianteeman
brianteeman - comment - 24 Jan 2020

The right way would be that each component has to register for the global trash.

There is perfect engineering and there is working engineering

avatar SharkyKZ
SharkyKZ - comment - 24 Jan 2020

Well, this isn't working. Items should be deleted through the model to make sure all associated data is deleted and proper plugin events are triggered.

avatar brianteeman
brianteeman - comment - 24 Jan 2020

Can you please provide a specific example of where its not working

avatar SharkyKZ
SharkyKZ - comment - 24 Jan 2020

Everywhere. None of associated data is deleted because none of the code meant for handling item deletion is being executed this way. Examples of remaining loose data include Asset record (in #__assets table), Language Associations, Custom Fields data, Tag mappings, Content History and 3rd party plugin data.

avatar brianteeman brianteeman - change - 24 Jan 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-01-24 09:39:05
Closed_By brianteeman
avatar brianteeman brianteeman - close - 24 Jan 2020
avatar brianteeman
brianteeman - comment - 24 Jan 2020

forgive me for trying to be constructive and add a requested feature

avatar SharkyKZ
SharkyKZ - comment - 24 Jan 2020

You don't need to apologize. It's a good feature but it needs a different approach. I, for one, don't know what that approach would be ? .

avatar brianteeman brianteeman - change - 2 May 2022
Status Closed New
Closed_Date 2020-01-24 09:39:05
Closed_By brianteeman
Labels Added: Language Change
Removed: ? ?
avatar brianteeman brianteeman - change - 2 May 2022
Status New Pending
avatar brianteeman brianteeman - reopen - 2 May 2022
avatar brianteeman brianteeman - change - 2 May 2022
Labels Added: ?
avatar brianteeman brianteeman - change - 2 May 2022
Title
[4.0] [DRAFT] Global Delete Trash - New Feature
[4.2] [DRAFT] Global Delete Trash - New Feature
avatar brianteeman brianteeman - edited - 2 May 2022
avatar brianteeman
brianteeman - comment - 2 May 2022

re-oponed in draft status as a reminder to myself to work on this

avatar brianteeman brianteeman - change - 30 May 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-05-30 15:30:47
Closed_By brianteeman
Labels Added: ?
Removed: ?
avatar brianteeman
brianteeman - comment - 30 May 2022

Closed - no interest

avatar brianteeman brianteeman - close - 30 May 2022

Add a Comment

Login with GitHub to post a comment