-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.2] [DRAFT] Global Delete Trash - New Feature #27429
Conversation
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 ### testing Apply patch and then discover the component You will then find it in the Maintenance section of the system dashboard
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 ### testing Apply patch and then discover the component You will then find it in the Maintenance section of the system dashboard
I have tested this item ✅ successfully on a6a6e3b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27429. |
I have tested this item ✅ successfully on 96beb04 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27429. |
I'm not sure if |
@SharkyKZ I would suggest that if that ever happens then this code can be updated. |
Co-Authored-By: Quy <quy@fluxbb.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just some update of year
@ot2sen no need to update the year. The build scripts will do that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHPCS as reported by Drone
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. |
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 |
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. |
@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. |
@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. |
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. |
There is perfect engineering and there is working engineering |
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. |
Can you please provide a specific example of where its not working |
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 |
forgive me for trying to be constructive and add a requested feature |
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 😕 . |
re-oponed in draft status as a reminder to myself to work on this |
Closed - no interest |
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