-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.4] Refactor CMS Table classes #45243
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
[5.4] Refactor CMS Table classes #45243
Conversation
is there a list being maintained somewhere of all the rector rules that have been used |
Currently, we don't. For every PR I made which use rector rules, I clearly mentioned the rules I use and link to documentation of the rule so that if someone wants to use it for his extensions, he can follow. Ideally, we should have rector rules to help automatically refactoring code from old Joomla version to compatible with newer Joomla version like other projects do, for example craftcms/rector, but right now, we do not have anyone can handle that work yet. |
@joomdonation code review is not enough, cloud you please write test instruction, in this case test all touched table classes? |
@HLeithner If we could not do code review and want to have testing instructions for human test, I think we would have to split this PR into multiple small PRs, each PR for one table class. If this is the case, I will close the PR and open separate small PRs |
I think own prs are not needed, just a list of components touched and the test instruction to open and close and save something should be enough. |
Aren't all these basic operations are covered by our tests already? |
at this time I think that doesn't matter because we require 2 real user tests (can be discussed in maintainers), this pr came up in the maintainer meeting yesterday. |
For this kind of PR, I don't think real user tests are enough because the testing instructions for changes in multiple places like that might not cover all the cases. Careful code review + tests pass should be better, I think. |
code review is done by the person that merges anyway. As said discuss this in maintainers chat/meeting please. |
I'm closing this PR because it touch multiple table classes and it is not easy for real user tests. I will open multiple small PRs instead to make it is easier for human testing |
PR has been reopened and testing instructions have been updated. Let's hope we find testers now. |
I have tested this item ✅ successfully on 3621c2e In addition, I've made a detailed code review of the changes. Finally I've triggered a branch update for this PR to make sure system tests are passing with the recently upmerged change that the system tests check for errors in server logs (PR #45409 ). This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45243. |
Hints for other testers:
|
Thanks Richard for helping with CS and testing. |
I have tested this item ✅ successfully on 3621c2e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45243. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45243. |
I tested on a Nightly Build 5.4-dev, PHP 8.3.6, MySQL 8.0.30 locally under Laragon. |
Tested successfully together with 45242
|
thanks to all |
Thanks all for your help ! |
Pull Request for Issue # .
Summary of Changes
Similar to #45242, this is follow PR for #45165. It makes the following changes to CMS Table classes defined in l
ibraries/src/Table
folder:DatabaseDriver
byDatabaseInterface
for $db param in class constructorI do not know if it is useful or not but I want to mention that the task #2 and #3 above can be done automatically using two useful two rector rules below:
Testing Instructions
It is not needed to test any change, we can expect that when it works for some that it works for all. Please test if you can create an Article, Category, Menu Item, User, Viewlevel. Just pick 2 of the list.
Actual result BEFORE applying this Pull Request
Works
Expected result AFTER applying this Pull Request
Works, without using deprecated code
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