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

Created on 3 February 2023, almost 2 years ago
Updated 14 February 2023, almost 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

Needs work

Version

9.5

Component
User moduleΒ  β†’

Last updated about 18 hours ago

Created by

πŸ‡§πŸ‡¬Bulgaria ovidenov

Live updates comments and jobs are added and updated live.
  • Needs screenshots

    The change alters the user interface, so before and after screenshots should be added to document the UI change. Make sure to capture the relevant region only. Use a tool such as Aviary on Windows or Skitch on Mac OS X.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024