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.
Level0
with subgroupLevel1
with 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/notifications
and notice that bothLevel0
andLevel1
have changed to the setting changed. - Go to the sub group
Level1
directly 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
Watch
notification settings and in the user profile notification settings for the subgroup of this parent group it shown aswatch
. When trying to changesubgroup
notification settings in the user profile nothing happens, when you click the notification settings toglobal
it always stays as watch after page refresh. The only way thesubgroup
notification setting could be changed fromwatch
toglobal
ifparent
notification level was changed toglobal
in the main page. Note that changing thesubgroup
notification settings toglobal
in the main page also did not have any affect on the user notification settings in the profile, it always stayed aswatch
until the notification level of parent group was changed fromwatch
toglobal
in 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 🤖