- last update
almost 2 years ago Custom Commands Failed - π¬π§United Kingdom longwave UK
It turns out this seems almost trivial to implement; the attached patch allows autoconfiguration and enables it for event subscribers and cache contexts, and then implements it in core.services.yml.
- π«π·France andypost
Nice idea but needs to fix cspell
Unknown word (autoconfigure)
+++ b/core/core.services.yml @@ -60,27 +60,21 @@ parameters: + _defaults: + autoconfigure: true
how that may affect contrib?
- last update
almost 2 years ago Build Successful - π¬π§United Kingdom longwave UK
_defaults
only affects the file it is used in, so this makes no change for contrib or any core module, only core services.To improve DX further we could decide to enable autoconfiguration by default for all modules, as all it does is automatically tag services that implement a specific interface, but that change would probably need to be made in a major release.
- last update
almost 2 years ago Custom Commands Failed - π¬π§United Kingdom longwave UK
This has uncovered some bugs: a number of cache contexts do not implement CacheContextInterface or CalculatedCacheContextInterface. So, let's just implement this for event subscribers for now.
- π«π·France andypost
a number of cache contexts do not implement CacheContextInterface or CalculatedCacheContextInterface
curious why that working, because tagged services has no check for interface?
- π¬π§United Kingdom longwave UK
Yeah, there is no interface check - tagged services are collected and they work because the methods exist, but no type checking is done.
- last update
almost 2 years ago 29,352 pass, 1 fail The last submitted patch, 12: 3221128-12.patch, failed testing. View results β
- last update
almost 2 years ago 29,366 pass - π«π·France andypost
As it applies to only one file is there a way to add test to make sure that that subscribers has no such tag-name?
For example to prevent old patches to apply - last update
almost 2 years ago 29,367 pass - @longwave opened merge request.
- π¬π§United Kingdom longwave UK
Added test coverage, which found a service in core.services.yml that I missed. I think this is OK for now and we could autoconfigure core modules and enable autoconfiguration for other tags in a followup?
- π¬π§United Kingdom longwave UK
Change record: https://www.drupal.org/node/3357408 β
- Status changed to RTBC
almost 2 years ago 8:04pm 6 May 2023 - πΊπΈUnited States smustgrave
Opened π Enable autoconfiguration for other service tags Active for the follow up.
- last update
almost 2 years ago 29,380 pass - last update
almost 2 years ago 29,381 pass - last update
almost 2 years ago 29,384 pass - Open on Drupal.org βEnvironment: PHP 8.1 & MySQL 5.7last update
almost 2 years ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.1 & MySQL 5.7last update
almost 2 years ago Waiting for branch to pass - Open on Drupal.org βEnvironment: PHP 8.1 & MySQL 5.7last update
almost 2 years ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.1 & MySQL 5.7last update
almost 2 years ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.1 & MySQL 5.7last update
almost 2 years ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.1 & MySQL 5.7last update
almost 2 years ago Waiting for branch to pass - Open on Drupal.org βEnvironment: PHP 8.1 & MySQL 5.7last update
almost 2 years ago Not currently mergeable. - Status changed to Needs work
almost 2 years ago 9:32am 29 May 2023 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
No longer applies cleanly
Fine to self RTBC after reroll
- First commit to issue fork.
- last update
almost 2 years ago 29,400 pass - Status changed to Needs review
almost 2 years ago 6:51am 30 May 2023 - Status changed to RTBC
almost 2 years ago 2:42pm 31 May 2023 - last update
almost 2 years ago 29,401 pass - last update
almost 2 years ago 29,410 pass - Open on Drupal.org βEnvironment: PHP 8.1 & MySQL 5.7last update
almost 2 years ago Waiting for branch to pass - last update
almost 2 years ago 29,419 pass - last update
almost 2 years ago 29,421 pass - last update
almost 2 years ago 29,421 pass - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Tagging reviewers, those who created follow-ups and the original reporter
-
larowlan β
committed 55366658 on 11.x
Issue #3221128 by longwave, duadua, bradjones1, andypost, smustgrave:...
-
larowlan β
committed 55366658 on 11.x
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Committed to 11.x (nee 10.2.x) and published the change record, nice one!
- Status changed to Fixed
almost 2 years ago 5:30am 13 June 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
2 months ago 8:11am 28 January 2025 - π·π΄Romania claudiu.cristea Arad π·π΄
How can we set _defaults for the whole project?