- 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-121090This patch was created using these packages:
- drupal/upgrade_status: 4.1.0
- mglaman/phpstan-drupal: 1.2.7
- palantirnet/drupal-rector: 0.20.1
- 🇨🇦Canada mparker17 UTC-4
mparker17 → changed the visibility of the branch project-update-bot-only to hidden.
- 🇨🇦Canada mparker17 UTC-4
mparker17 → changed the visibility of the branch project-update-bot-only to active.
- 🇨🇦Canada mparker17 UTC-4
I have code-reviewed and manually tested the code in merge request !5, and I'm satisfied with it, so I'm marking it as RTBC.
Here's what I did to test !5:
- Install ddev (I tested on version 1.24.1)
- Clone the module, issue fork, and branch:
git clone --branch '8.x-1.x' https://git.drupalcode.org/project/masquerade_log.gitt && cd masquerade_log
- clone the projectgit remote add masquerade_log-3431824 git@git.drupal.org:issue/masquerade_log-3431824.git && git fetch masquerade_log-3431824
- add a remote for the issue forkgit checkout -b 'project-update-bot-only' --track masquerade_log-3431824/'project-update-bot-only'
- switch to the branch for merge request !5
- 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=masquerade-log
- create a ddev project for testing the moduleddev 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
/core/install.php
in a browser. Confirm that I saw the Drupal 11.0.9 installer. Install the site with the "Standard" install profile. - Go to
/admin/people/create
and create a user with the Content editor role. I gave mine the usernametest_editor
. - Go to
/admin/people/create
and create a user with the Authenticated user role. I gave mine the usernametest_user
.
- Set up the module for testing:
- Go to
https://masquerade-log.ddev.site/admin/modules
and install masquerade_log and its dependencies - Go to
/admin/people/permissions
, grant the Content editor role the following permissions:- Masquerade -> Masquerade as Authenticated user
... click Save permissions.
- Go to
/admin/people/permissions
, grant the Authenticated user role the following permissions:- Toolbar -> Use the toolbar
... click Save permissions.
- Go to
- Test the module's basic functionality:
- Log out of the administrator account, and log in as the
test_editor
user you created earlier. - Go to
/masquerade
- you see a Masquerade form. - In the Masquerade as... box, enter
test_user
and click Switch. - You switch to the new user account (see the toolbar). Note when I tested this, it took me to the
/masquerade
form, and I got an "access denied" because thetest_user
account isn't allowed to masquerade... but this is a problem with the masquerade module, not masquerade_log. - Click
Unmasquerade
in the toolbar to unmasquerade. You see the status message You are no longer masquerading as test_user. - Log out of the test_editor user you created earlier. Log in as the administrator again.
- Go to
/admin/reports/dblog
. You see a list of Recent log messages. You see the following log messages:- Type =
masquerade
; Message =User test_editor stopped masquerading as test_user.
- Type =
masquerade
; Message =User test_editor masqueraded as test_user.
- Type =
- Log out of the administrator account, and log in as the
- 🇨🇦Canada mparker17 UTC-4
mparker17 → changed the visibility of the branch 3431824-automated-drupal-11 to hidden.
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