Notification level in the user profile does not match Group notification level
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Notification settings of the group main page not reflected in the user profile notification settings -/profile/notifications
Steps to reproduce
Steps to recreate bug where changing notification of a group also affect its sub group:
- Create a nested group structure you can go as deep as you like.
Level0with subgroupLevel1with subgroupLevel2. - Add a user to the top level group
Level0. Role does not matter. - Now impersonate this user and navigate to the group and change the notification setting.
- Now navigate to this users
-/profile/notificationsand notice that bothLevel0andLevel1have changed to the setting changed. - Go to the sub group
Level1directly and notice that the notification setting has not changed here despite being show like that in the users profile.
Other observation:
- This behaviour can be replicated down the chain.
- Making changes to notification settings in the user profile makes tis behaviour stop
- Making changes directly to the subgroup notification setting makes this behaviour stop
What we have also observed in the customer instance is that we were not able to change the notification settings of the Group in the user profile from watch to the global unless the groups parent group notification settings were changed. However I was not able to reproduce this behaviour in my test instance.
For example
- Parent group has
Watchnotification settings and in the user profile notification settings for the subgroup of this parent group it shown aswatch. When trying to changesubgroupnotification settings in the user profile nothing happens, when you click the notification settings toglobalit always stays as watch after page refresh. The only way thesubgroupnotification setting could be changed fromwatchtoglobalifparentnotification level was changed toglobalin the main page. Note that changing thesubgroupnotification settings toglobalin the main page also did not have any affect on the user notification settings in the profile, it always stayed aswatchuntil the notification level of parent group was changed fromwatchtoglobalin the main group page.
What is the current bug behavior?
- Notification settings in the User profile notification settings for the group are not reflected in the Group main page.
What is the expected correct behavior?
- Notification settings of the Group main page should reflect in the users notification settings for the Group
Results of GitLab environment info
GitLab 14.10
Possible fixes
N/A
GitLab internal ZD
Edited by 🤖 GitLab Bot 🤖