Config split calculate_dependency exclude dev modules with a custom "admin" role

Created on 3 February 2023, about 2 years ago

Problem/Motivation

On our website we have following setup:
- Config Split module.
- We have "dev" split for all the development modules that are used only on localhost.
- We have enviromental variable HOSTNAME that is 'localhost' on our localhost environment.

Steps to reproduce

Create any new custom permission.
Go to the permissions page and click "Save"

What happens is that locally "devel" and all other related "dev" modules are enabled and this causes a lot of dependent configuration to
go to the "dev" split folder each time configuration is exported.

Proposed resolution

Add an if condition inside /core/modules/user/src/Entity/Role.php - function calculateDependencies()

The idea is while calculating dependencies :
- exclude any module dependencies that is included in config_split 'dev'

πŸ› Bug report
Status

Active

Version

9.5

Component
User moduleΒ  β†’

Last updated 2 days ago

Created by

πŸ‡§πŸ‡¬Bulgaria ovidenov

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

Comments & Activities

Production build 0.71.5 2024