- Issue created by @project update bot
- last update
9 months ago 7 pass This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request (MR) is also openend and updated.
It is important that any automated tests available are run and that you manually test the changes.
Drupal 11 Compatibility
According to the Upgrade Status module → these changes make this module compatible with Drupal 11! 🎉
Therefore these changes update theinfo.yml
file for Drupal 11 compatibility.Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot → to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug information
Bot run #11-127659These packages were used to generate the fixes:
- drupal/upgrade_status: 4.1.0
- mglaman/phpstan-drupal: 1.2.9
- palantirnet/drupal-rector: 0.20.1
- last update
9 months ago 7 pass - Status changed to RTBC
8 months ago 6:20am 16 April 2024 - 🇮🇳India Vishal Choudhary Dharmshala
I've tested this module with the specified branch on the "project-update-bot-only" project and verified its functionality within the Drupal 11 environment. It's performing as expected. Kindly mark it as "Ready to be committed" (RTBC).
- Status changed to Needs work
about 1 month ago 7:09pm 8 November 2024 - 🇺🇸United States byrond
Drupal 11's core QueueFactory now uses a service locator instead of passing the entire container, so when a queue is overridden in $settings to use "queue_unique.database", the following error is produced:
Service "queue_unique.database" not found: the container inside "Drupal\Core\Queue\QueueFactory" is a smaller service locator that only knows about the "queue.database" service.
See https://www.drupal.org/project/drupal/issues/3416357 📌 Convert QueueFactory to use a service locator Fixed
How can this module provide its queue_unique.database service so it is available to the QueueFactory? Does the "queue" service need to be decorated or overridden?
It looks like "UniqueQueueDatabaseFactory" needs to implement "Drupal\Core\Queue\QueueFactoryInterface", but that alone did not solve this issue.
See https://www.drupal.org/node/3417034 → - 🇺🇸United States byrond
The settings.php method to set the queue backend was deprecated in 10.1:
https://www.drupal.org/node/3338022 →The documentation should be updated to demonstrate adding the queue_service to the QueueWorker annotation.
- 🇺🇸United States byrond
Setting
autoconfigure: true
fixed the service discovery issue for us. - 🇫🇷France mably
Successfully tested on Drupal 11.0.6.
Could we have this merged?