Set the roles weight by the role admin ui order

Created on 2 December 2023, about 1 year ago

Problem/Motivation

My problem is: this module stores another third party weight which we need to setup for all roles. It seems to me unnecessary since we can setup the roles weight on the Roles admin ui, the roles config entities already have weight properties.

Proposed resolution

Clean up the code to use the role's weight for determine the user views mode.

Remaining tasks

Patch attached.

User interface changes

The Roles admin ui changed a little bit I added the User View mode column.

API changes

The roles order now uses the role's weight - so the "stronger" role for determine the user view mode is the lighter role.
A code todo mentioned this module should working this way, not by the heaviest (// @todo Fix weight to be lowest.)

Data model changes

The user_view_mode third party settings changed the weight settings not used anymore.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇭🇺Hungary denes.szabo Hungary

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

Comments & Activities

Production build 0.71.5 2024