- Issue created by @project update bot
This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request 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, will allow the Project Update Bot → to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug info
Bot run #11-120835This patch was created using these packages:
- drupal/upgrade_status: 4.1.0
- mglaman/phpstan-drupal: 1.2.7
- palantirnet/drupal-rector: 0.20.1
- First commit to issue fork.
- 🇮🇳India abhinavk
abhinavk → changed the visibility of the branch 3429024-d11_ready to hidden.
- 🇮🇳India abhinavk
MR!4 Makes this module Drupal 11 compatible. Functionality works as expected on Drupal 10 and Drupal 11.
RTBC +1
- 🇨🇦Canada mparker17 UTC-4
+1 to RTBC: I have code-reviewed and manually tested the code in merge request !4 and I'm satisfied with it.
Here's what I did to manually-test !4:
- Install ddev (I tested on version 1.24.1)
- Clone the module, issue fork, and branch:
git clone --branch '2.x' https://git.drupalcode.org/project/blockgroup.git && cd blockgroup
- clone the projectgit remote add blockgroup-3429024 https://git.drupalcode.org/issue/blockgroup-3429024.git && git fetch blockgroup-3429024
- add a remote for the issue forkgit checkout -b 'project-update-bot-only' --track blockgroup-3429024/'project-update-bot-only'
- switch to the branch for merge request !4
- Set up a test site for the module with the ddev/ddev-drupal-contrib plugin:
ddev config --project-type=drupal --docroot=web --php-version=8.3 --corepack-enable --project-name=blockgroup
ddev add-on get ddev/ddev-drupal-contrib && ddev start && ddev poser && ddev symlink-project
- run the setup steps for the ddev/ddev-drupal-contrib addon- Go to
https://blockgroup.ddev.site/core/install.php
in a browser. Confirm that I saw the Drupal 11.1.1 installer. Install the site with the "Standard" install profile - Go to
/admin/people/create
and create a user with the Content editor role. I used the usernametest_editor
- Set up the module for testing:
- Go to
/admin/modules
; enable the blockgroup module and all its dependencies. - Go to
/admin/people/permissions
and grant the Content editor role permissions to:- Block -> Administer blocks
- Block Content -> Basic block: Create new content block
- Block Content -> Basic block: Basic block: Edit content block
- Block Content -> Access the Content blocks overview page
- Block Content -> Administer block content
- Block Group -> Administer blockgroups
- Go to
/block/add
. You see an Add content block form:- Set Block description to
Block A title
. - Set Body to
Block A body
. - Click Save.
You see the message Basic block Block A title has been created.
- Set Block description to
- Go to
/block/add
. You see an Add content block form:- Set Block description =
Block B title
. - Set Body =
Block B body
. - Click Save.
You see the message Basic block Block B title has been created.
- Set Block description =
- Go to
- Test the basic module functions in Drupal 11:
- Log out of the administrator account, and log in as
test_editor
created earlier - Go to
/admin/structure/block_group_content/add
. You see an Add group form. Set Label =Test blockgroup
. Click Save. You see the message Created the Test blockgroup Block group content. - Go to
/admin/structure/block
. You see a Block layout form. You see a region with the title Block group: Test blockgroup.- Click Place block beside the Block group: Test blockgroup region title. You see a Place block modal.
- Click the Place block button in the
Block A title
row. You see a Configure block form. Ensure that Region =Block group: Test blockgroup
. Click Save block. - A Block A title Content block appears in the Block group: Test blockgroup region. If you scroll up, you see the message The block configuration has been saved.
- Click Place block beside the Block group: Test blockgroup region title. You see a Place block modal.
- Click the Place block button in the Block B title row. You see a Configure block form. Ensure that Region =
Block group: Test blockgroup
. Click Save block. - A Block B title Content block appears in the Block group: Test blockgroup region. If you scroll up, you see the message The block configuration has been saved.
- Finally, scroll to the bottom of the form and click Save blocks. You see the message The block settings have been updated.
- Go to
/user
. You see a user/view page for test_editor. You do not see the textTest blockgroup
anywhere on the page. You do not see the textBlock A title
anywhere on the page. You do not see the textBlock A body
anywhere on the page. You do not see the textBlock B title
anywhere on the page. You do not see the textBlock B body
anywhere on the page. - Go to
/admin/structure/block
. You see a Block layout form. You see a region with the title Sidebar.- Click Place block beside the Sidebar region title. You see a Place block modal.
- Click Place block in the
Test blockgroup
row. You see a Configure block form. Ensure that Region =Sidebar
. Click Save block. - A Test blockgroup Block Group block appears in the Sidebar region. If you scroll up, you see the message The block configuration has been saved.
- Finally, scroll to the bottom of the form and click Save blocks. You see the message The block settings have been updated.
- Go to
/user
. You see a user/view page for test_editor. You see the textTest blockgroup
in the sidebar. You see the textBlock A title
below it. You see the textBlock A body
below it. You see the textBlock B title
below it. You see the textBlock B body
below it.
- Log out of the administrator account, and log in as
- Make sure there are no errors being logged:
- Log out of the
test_editor
user created earlier; and log in as the administrator again. - Go to
/admin/reports/dblog
to ensure our setup/testing did not result in any error messages related to this module.
- Log out of the
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-392907These packages were used to generate the fixes:
- drupal/upgrade_status: 4.3.6
- mglaman/phpstan-drupal: 1.3.2
- palantirnet/drupal-rector: 0.20.3
- leymannx Berlin
Merged, releasing now, leaving issue active for upcoming patches.