Group types config must depend on field_storage group_relationship group_roles

Created on 19 January 2025, 3 months ago

I am trying to understand if I am doing something wrong.
I am applying this recipe:

name: 'group recipe test'                                                                                                                                                         
description: 'Initial configuration to provide a group type.'                                                                          
type: 'Site'                                                                                                                                                                                                                                                                                                                        
install:                                                                                                                                                                          
  - group                                                                                                                                                                        
  - group_roles_test                                                                                                                                                              
config:                                                                                                                                                                           
  import:                                                                                                                                                                         
    group: '*'                                                                                                                                                                   
    group_roles_test: '*'

That will install group and this test module : https://gitlab.com/aleixq/group_roles_test . And also, if I understand correctly, in theory, will import "group" module config, that is a requirement for group_roles_test module... But this don't happen: the config "field.storage.group_relationship.group_roles" in group module is not yet imported when group_roles_test module "group.type.test" config is imported.
The dependence is not direct because is there as a result of the post-save logic whenever a group type is created to autocreate the roles.

So it makes me see that group types must depend on - field.storage.group_relationship.group_roles (and in group module if outside of group realm).
After setting this dependence in group.type.test the recipe runs as it should.

🐛 Bug report
Status

Active

Version

3.3

Component

Code

Created by

🇪🇸Spain aleix

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

Comments & Activities

Production build 0.71.5 2024