Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
postgresql db driver
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Nov 2024 at 09:43 UTC
Updated:
28 Apr 2025 at 00:29 UTC
Jump to comment: Most recent
Comments
Comment #3
daffie commentedReady for a review.
Comment #4
smustgrave commentedOnly comment is if we can add a simple deprecation test for the class
Comment #5
daffie commentedThe requested deprecation test has been added.
Back to NR.
@smustgrave: Thank you for the review.
Comment #6
smustgrave commentedThanks! rest of the changes LGTM.
Comment #7
alexpottThis patch does not implement the deprecation for 11.x correctly... before:
after
The core classes cannot extend the pgsql classes. We should just deprecate the code and not extend from the new code.
Comment #8
daffie commentedAs requested by @alexpott, the extending of the deprecated classes to the new ones in the pgsql module have been removed and the original code has been restored..
Comment #9
smustgrave commentedAppears to be 1 open thread on MR.
Comment #10
daffie commentedI have added the by @alexpott requested deprecation to the service in core.services.yml.
Comment #11
alexpottMoving the deprecation to the constructor (like we do for plugins) resolves the issues caused by compiler passes reflecting on the class. This is very similar to what we do for plugins. They can't have deprecations in the main body of a class for a similar reason.
Comment #12
daffie commented@alexpott: Moving the deprecation to the constructor was the solution. Thank you for your help. It is clear to me why you are a core framework manager and I am not. ;-)
All code changes look good to me.
All deprecations have testing.
We have a change record.
For me it is RTBC.
Comment #13
mradcliffeSeems good to me. Do we need to trigger a "PHP 8.3 PostgreSQL 16" test run?
Comment #14
daffie commentedI have tried, but I am not allowed to do that.
Comment #16
catchKicked off a fresh pipeline and ran both postgres jobs.
Committed/pushed to 11.x, thanks!