- Issue created by @kim.pepper
- Merge request !5401#3401730 Add default autoconfigure for services and remove event_subscriber tag β (Closed) created by kim.pepper
- Status changed to Needs review
about 1 year ago 4:37am 15 November 2023 - Status changed to RTBC
about 1 year ago 2:52pm 15 November 2023 - πΊπΈUnited States smustgrave
Seems simple enough and didn't break anything.
- Status changed to Needs work
about 1 year ago 9:57pm 15 November 2023 - π¬π§United Kingdom longwave UK
This issue could be scoped more widely. There are 90 services manually tagged with
event_subscriber
in core and we could try to enable autoconfiguration across them all in one go (given core.services.yml is already enabled). Opening an issue for each module will be much more time consuming. - Status changed to Needs review
about 1 year ago 10:25pm 15 November 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
No worries! Added for the rest of the services yamls.
- π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Currently
\Drupal\KernelTests\Core\DependencyInjection\AutoconfigurationTest
checks if autoconfiguration is enabled then fails if the'event_subscriber'
tag exists on a service definition.However,
`jsonapi.resource_response_validator.subscriber`
sets a priority and therefore needs to set the'event_subscriber'
tag explicitly.I have excluded
jsonapi.services.yml
for this reason, but we should update the test to ignore the tag when a priority is set in a followup. - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Created follow-up π [PP-1] AutoconfigurationTest should allow 'event_subscriber' tags if a priority is set Postponed
- π¬π§United Kingdom longwave UK
I wonder why priority is set in the services.yml, I thought generally that was done in the
getSubscribedEvents()
method? - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
#10 @longwave should we address that in the follow-up?
- Status changed to RTBC
12 months ago 11:31pm 16 November 2023 - πΊπΈUnited States smustgrave
tags: - { name: event_subscriber }
Search for the above snippet and only found 5 instances in the json file, which I see is noted for excluding.
Should this be tagged for needs followup
- π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
re: #12 as noted in #8the follow-up has been created here π [PP-1] AutoconfigurationTest should allow 'event_subscriber' tags if a priority is set Postponed
- π³πΏNew Zealand quietone
I'm triaging RTBC issues β . I read the IS and the comments and glanced at the MR. I didn't find any unanswered questions or other work to do. I do see that a followup has been made for the case about json and priority.
Leaving at RTBC.
- Status changed to Needs work
9 months ago 3:37pm 17 February 2024 - Status changed to RTBC
9 months ago 4:04pm 17 February 2024 - Status changed to Needs work
9 months ago 4:17pm 17 February 2024 - π¬π§United Kingdom longwave UK
New test failure:
Service 'user_last_access_subscriber' in core/modules/user/user.services.yml should not be tagged with 'event_subscriber'.
- Status changed to RTBC
9 months ago 4:33pm 17 February 2024 -
longwave β
committed 9b73314e on 11.x
Issue #3401730 by kim.pepper, smustgrave, longwave: Add default...
-
longwave β
committed 9b73314e on 11.x
- Status changed to Fixed
9 months ago 4:37pm 17 February 2024 Automatically closed - issue fixed for 2 weeks with no activity.