When saving the administrator role setting no success message is presented

Created on 25 January 2025, 2 months ago

Problem/Motivation

When using the minimal install profile, no administrator role is created. To manually create an administrator role, you must first add the role, then set the administrator role in role settings. A user who clicks "Save configuration" is not given a status message that the save was successful.

Steps to reproduce

Install Drupal using the minimal profile.
Create a role named "Administrator" at /admin/people/roles
Set the "Administrator" to the administrator role at /admin/people/role-settings and click "Save configuration".
No message is presented making it feel like nothing happened.

Proposed resolution

Add a status message to a successful role setting save: "The role settings have been updated." (Incidentally, this is the exact message that appears when saving /admin/people/roles. That message should probably be "The roles have been updated." )

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

user system

Created by

🇺🇸United States joshuami Portland, OR

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @joshuami
  • First commit to issue fork.
  • 🇮🇳India kapil17

    Hello @jquijano,

    I was following up on this issue and fixed it. created a Merge request. If you have not started, please review my merge request and update it.

  • Pipeline finished with Success
    about 1 month ago
    Total: 418s
    #440596
  • 🇮🇳India sayan_k_dutta

    Installed drupal on the branch drupal-3502094/'3502094-when-saving-the with the minimal profile.
    Navigated to 'Role Settings' options and after confirming that the admin role was not created by default, created a new role named Administrator. The added the role in the Role Settings- confirmed that the status message 'The role settings have been updated.' is shown when clicked on Save Configuration button.
    Attaching a screencast for the same and moving it to RTBC.

  • Pipeline finished with Failed
    14 days ago
    Total: 227s
    #454861
  • Pipeline finished with Failed
    14 days ago
    Total: 218s
    #454864
  • Pipeline finished with Failed
    14 days ago
    Total: 1353s
    #454887
  • Pipeline finished with Success
    14 days ago
    Total: 10034s
    #454952
  • Pipeline finished with Failed
    13 days ago
    Total: 500s
    #455287
  • Pipeline finished with Failed
    13 days ago
    #455297
  • 🇨🇴Colombia juandhr Manizales

    I followed the steps in the "Steps to reproduce" section, installing the minimal profile for Drupal 11. I was able to obtain the message "The role settings have been updated.", confirming that the modification works as expected.

    Additionally, I ran the unit tests in core/modules/user/tests/src/Functional/UserRoleAdminTest.php, and the test execution completed successfully, validating the changes.

  • 🇨🇴Colombia juandhr Manizales
  • Status changed to RTBC 10 days ago
  • 🇮🇳India Nishant

    I followed the steps outlined in the "Steps to Reproduce" section, installing the minimal profile for Drupal 11. After making the necessary modifications, I successfully received the confirmation message: "The role settings have been updated." This verifies that the changes were applied correctly and the expected functionality is working as intended.

  • 🇮🇳India supriyagupta

    I have tested the issue in drupal 11.x@dev version. After updating the role and creating the role getting status message but thememing is not working.

Production build 0.71.5 2024