[5.2] fix orphan components through trash#45099
[5.2] fix orphan components through trash#45099reem-atalah wants to merge 8 commits intojoomla:5.2-devfrom
Conversation
|
Hello all, |
|
Thank you for working on that problem.
Then maintainers and users will say their opinion. |
|
I can already tell you, that users are not trashable. Besides the outwards appearance that people are never trash, the whole concept of trashing an item does not apply to users. |
|
@Hackwar Hmm, ok, then can I use the concept of archive? |
|
Users cannot be "trashed" but I think it is a good attempt to keep the id and anonymise data. |
|
Ok then I can make a soft delete as a first step, and then we can filter on "Deleted" users, so we can delete them again permanently, or just have a soft delete? |
|
I'd say first step is anonymising data and adding a filter (my personal opinion / expectation) |
|
Closing due to having another PR to the same issue #45121 |
Pull Request for Issue #45026.
Summary of Changes
Add a new button called Trash in the Actions dropdown list on the Users page when selecting a user and clicking on it, the user is soft deleted.
Testing Instructions
Go to Users -> Create New User
(
Go to Articles -> Create New Article
Go to the Publishing tab -> Set the Created By to the new user
Go to Users -> Select the new user -> Click on Actions dropdown list -> Click on Trash
or
Login with the new user
Go to Articles -> Create New Article
Logout and login again with an administrator user
Go to Users -> Select the new user -> Click on Actions dropdown list -> Click on Trash
)
Go to the article where the Create By is the deleted user, edit and save it, it will be saved normally.
Actual result BEFORE applying this Pull Request
Deleting a user from the system will mean you have 'orphan' articles, categories, and other items within Joomla, so you can no longer edit those records, unless the create by is changed.
Expected result AFTER applying this Pull Request
Deleting a user from the system using the Trash button will soft delete the user where the user won't appear in the users' list, and we can't log in with that user. However we can edit contents created by this user.
Note: the Delete button still exists.
freecompress-joomla.trash.user.mp4
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed