Closed (fixed)
Project:
Drupal core
Version:
10.0.x-dev
Component:
database system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Apr 2021 at 21:34 UTC
Updated:
19 Jan 2022 at 08:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mondrakeI would suggest to rescope this issue to adjusting ALL the Database API for D10, it will be difficult to separate removing just the magic methods from the rest.
Comment #3
andypostGreat idea!
Comment #4
mondrakeThis is more or less doing the job, with current HEAD. Posting so to help future efforts.
Comment #5
mondrakeComment #6
mondrakeComment #7
andypostSummary needs to be extended with other deprecations
Comment #8
mondrakeComment #9
mondrakeComment #10
mondrakeComment #11
mondrakeComment #12
mondrakeComment #13
mondrakeComment #14
mondrakeComment #16
mondrakeComment #17
mondrakeComment #20
mondrakeComment #21
mondrakeComment #22
andypostComment #24
murilohp commentedHey @mondrake, I updated the PR, I think during the rebase, an use statement was removed from the
ConnectionTest.php, looking into the failed tests, I haven't seen anything related to the StatementInterface, that's why I decided to rollback this part of the code.Now the only failed test should be the
testComposerLockHash, but I think this is an expected fail because you've changed thecomposer.lock, I just don't how to make it pass again.Anyway, if I did something wrong, please let me know.
Thanks!
Comment #25
andypostMR needs to change target branch to 10.0.x and only then rebase makes sense
Comment #26
murilohp commentedThat's a good catch @andypost, unfortunately I don't have access to change the MR target branch, maybe @mondrake could.
Comment #27
mondrakeI am waiting for #3129043: Move core database drivers to modules of their own, honestly.
Comment #28
mondrakeComment #29
mradcliffeI think this is Needs work as the MR needs a rebase / merge.
Comment #30
mondrakeComment #31
daffie commentedMy first review. I will do another when I have more time.
Comment #32
mondrakeThanks for review @daffie!
WRT type hinting, it's a BC change, it's a broader topic than this issue, new code should be typehinted but I do not see clarity on how to proceed on existing one yet. #3050720: [Meta] Implement strict typing in existing code is still open. So.. not here.
Comment #33
mondrakeComment #34
daffie commentedThere are unresolved thread on the MR.
Comment #35
mondrakeWe need a CR for the deprecation of
db_installer_object().Comment #36
daffie commentedI have create the CR.
There are 4 unresolved threads on the MR.
Comment #37
mondrakeThanks @daffie
Comment #38
alexpottI can see why you've deprecated db_installer_object() here but I think that this needs it's own issue. I think we should refactor the code here to always call it with $namespace and not be too particular about what goes in $driver. And then we should open and issue to deprecate in Drupal 9.4 for Drupal 11.
Comment #39
mondrakeThanks, reverted that deprecation and rerolled.
Filed #3256687: Deprecate db_installer_object() for follow up, although deprecation can only occur in 10 likely, since in 9.4. there may still be around contrib db drivers in the legacy namespace.
Comment #40
mondrakeComment #41
mondrakeComment #42
daffie commentedComment #43
mondrakeComment #44
mondrakeComment #45
mondrakeReverted all changes to include.inc - those can be addressed separately and the MR now should be deprecation removals only.
Comment #46
daffie commentedThe MR looks good.
The points of @alexpott have been addressed.
For me it is RTBC.
Comment #47
alexpottCommitted 8f2269d and pushed to 10.0.x. Thanks!
That is a lovely diff stat :)
This change is not necessary. So reverting it on commit. If it is necessary for the db_installer_object changes then we can do this there.