Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
dblog.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Nov 2025 at 04:16 UTC
Updated:
17 Feb 2026 at 11:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nicxvan commentedI think the approach needs a review. CR needs filling out.
Gonna get a test run in too.
Comment #4
nicxvan commentedMissed removing an include for the deprecated file, I think most of the other failures are unrelated, it seems a directory is not writable.
Comment #5
nicxvan commentedFixed the include that was no longer necessary, tests are green now!
Comment #6
nicxvan commentedComment #7
mstrelan commentedI haven't really looked at this thoroughly, but the underscore one is meant to be private and by putting it in a service we're effectively making it API. Wonder if a trait with protected methods might be better? Feel free to disagree, because I really only briefly looked at this.
Comment #8
nicxvan commentedIs there really a reason not to make that api? We could also add @internal to it.
It's just a select query, I don't think there is any harm in adding this to the api especially since it is used by other parts of the system.
Comment #9
smustgrave commentedCorrect me if I'm wrong @mstrelan think he was saying _dblog_get_message_types() was meant to be private and now via a service it's not so much.
But even though it was intended to be private nothing was really preventing it from being called really right? Personally I don't see a reason to not be a service API but also think it could be a trait as mentioned. Probably doesn't help much move this forward lol
Comment #10
nicxvan commentedYeah I disagree that is a problem to open this.
It's incredibly specific and likely won't be touched very much.
A trait feels overly complicated.
Comment #11
mstrelan commentedStill think it's weird to expose these but not concerned enough about it. Left some suggestions anyway. Leaving the status as NR because you can also just skip the suggestions if you prefer.
Comment #12
mstrelan commentedActually one of the CR links is wrong, back to NW.
Comment #13
nicxvan commentedAll good feedback, thanks!
I ran dblog tests locally, but may have missed some, I'll keep an eye on tests.
Comment #14
nicxvan commentedComment #15
nicxvan commentedThese tests took like 15 runs to pass, but it's all environmental, they were php tuf failures.
This should be ready.
Comment #16
dwwOne of the deprecation errors is copy/pasta from another issue and needs an update. Otherwise, this looks RTBC to me. The rest of the diff seems fine, I didn't spot anything else that needed improving.
Thanks!
-Derek
Comment #17
nicxvan commentedApplied thank you!
Comment #18
nicxvan commentedComment #19
dwwIt seems every-so-slightly weird that
getMessageTypes()is a method on a service calledDbLogFilters, since in theory you might want the list of distinct types for something other than filtering. But after looking around core/modules/dblog/src, I'm not seeing much of an alternative. Definitely doesn't seem worth 2 distinct services for these. 😬 Willing to call this Good Enough(tm) for now.I don't see anything else to complain about int he MR diff. Minor updates to the summary and title. Latest pipelines are all green.
RTBC!
Thanks again,
-Derek
Comment #21
dagmarNice to see this finally solves #2852990: Deprecate dblog_filters +1 from my side as well.
The only thing is not 100% clear to me is if this effort shouldn't also include an interface... Or mark this service as `@internal`. If not The new API has the same problems we had with
dblog_filters. See #582622: provide hook for dblog_filtersComment #23
nicxvan commentedYeah we discussed the api in 7 through 11 and concluded it was fine for it to become api.
It doesn't need an interface.
I'll read through your issue.
Edit: I just read through it, I don't think it affects this since we're just doing a one for one replacement.
Comment #24
longwaveWas on the fence as to whether this should be a service or just a trait, it is hard to call - would anyone really need to swap this out? But ultimately it makes little difference and this is the easier conversion.
Once we have things like #3558306: Support automatic setter injection using the #[Required] attribute in AutowireTrait/AutowiredInstanceTrait it'll be possible to autowire traits via setter injection and otherwise keep them standalone, but I'm not sure yet if that's a pattern we should be encouraging.
Added some review comments.
Comment #27
nicxvan commentedOk I took care of those two comments, not sure why it didn't work before, but maybe I didn't rebase.
Comment #28
nicxvan commentedComment #29
dcam commentedI don't have anything to add to the review. I checked the commits since @dww RTBC'ed it. They look good to me.
Comment #30
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #31
dcam commentedPost-bot-rebellion rebase
Comment #34
longwaveWas also on the fence whether this should be removed in 12 or 13, but given there is some kind of public API here let's just stick with 13.
Committed and pushed 51c8bbe6a6b to main and dc71ae5f169 to 11.x. Thanks!