-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.4] Change the table event name from onBeforeDelete to on TableBeforeDelete #46020
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
Conversation
This reverts commit 88921b7.
I have tested this item ✅ successfully on 401b41a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46020. |
I have tested this item ✅ successfully on 401b41a
Installed the PR with graft full package
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46020. |
We should call the old event, too and deprecate it. Otherwise we make all plugins, which are using the wrong methods broken. |
@bembelimen done, called old event and depreciated it as requested |
Reset to “Pending” as there have been code changes This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46020. |
It is only bringing back the old event call, would be a surprise if that breaks something. |
Sorry, I don't have this overview. Does anyone else want to set RTC again or should I just retest? |
@muhme retest would be fine but I don't think we need two tests. |
I have tested this item ✅ successfully on c293027 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46020. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46020. |
@rdeutz Now as the old event is called, too, can the "b/c break" label be removed? |
It says deprecated without replacement and then goes on to say use .... Surely that is the replacement |
@brianteeman Not sure if it is really a replacement as they are not the same events, and the calls to the old events will be removed without replacement. @rdeutz What do you think? Maybe just remove the |
This has to go into 5.4 as we don't do deprecations in patch releases. |
It is a bugfix so it is 5.3. For the message I guess you can argue in many ways, I made what Richard suggested. |
Rebased to 5.4-dev. RTC is still valid as it was a clean rebase. |
✅ Final retest before merge as in #46020 (comment) |
Thank you @RobertDeutz for your contribution. Thank you @richard67, @laoneo, @bembelimen and @brianteeman for support. Thank you @exlemor for testing. |
Pull Request for Issue #45584 .
Summary of Changes
At some moment in the past we changed the events for the Table* classes from onAction to onTableAction. It was obviously missed to make this change for the delete method of the nested table class. This results in the situation that history entires for categories and tags are not deleted.
a) This fix is a bug fix but also kind of b/c break.
We need to document the b/c break. I would expect that It is unlikely that the event is used.
b) Further more we are not cleaning up the existing entires in the history table for not longer existing tags and categories.
Maybe something we can do in a helath checker or pre-update check, but not as part of this PR.
Testing Instructions
Actual result BEFORE applying this Pull Request
The database table __history entry for com_tags.tag.id is still existing
Expected result AFTER applying this Pull Request
The database table __history entry for com_tags.tag.id is not existing
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