"Leave this group" button not working
Summary
"Leave this group" button is not working
Steps to reproduce
I don't have the steps to reproduce the failing configuration. But you can contact me to have a look to one of the groups where it occurs: https://gitlab.com/groups/dalenys/protected/cicd
On google chrome, when I click on "Leave this group" button, nothing happens, just an error in the console One thing is also surprising is that I don't see my user as a direct member of the group on which the error occurs. But I see my user as member of the group when I list the group-members with the cli: https://python-gitlab.readthedocs.io/en/stable/cli-objects.html?highlight=subgroup#gitlab-group-member
gitlab -o json group-member list --group-id "${1}" | json_pp | jq '.[] | "\(.username) \(.access_level)"'
What is the current bug behavior?
The button is not working
What is the expected correct behavior?
The button should remove my user from the group
Relevant logs and/or screenshots
In the google chrome console:
instrument.js:109 TypeError: Cannot set property 'isBeingRemoved' of null
at a.leaveGroup (app.vue:192)
at zt (vue.esm.js:1863)
at a.n (vue.esm.js:2188)
at zt (vue.esm.js:1863)
at a.t.$emit (vue.esm.js:3897)
at a.primary (modal.js:132)
at zt (vue.esm.js:1863)
at a.n (vue.esm.js:2188)
at zt (vue.esm.js:1863)
at a.t.$emit (vue.esm.js:3897)
at a.hide (modal.js:526)
at a.onOk (modal.js:727)
at a.ok (modal.js:123)
at zt (vue.esm.js:1863)
at n (vue.esm.js:2188)
at zt (vue.esm.js:1863)
at HTMLButtonElement.n (vue.esm.js:2184)
at HTMLButtonElement.i._wrapper (vue.esm.js:7565)
at HTMLButtonElement.r (helpers.js:72)
(anonymous) @ instrument.js:109
Wt @ vue.esm.js:1897
Vt @ vue.esm.js:1888
qt @ vue.esm.js:1848
zt @ vue.esm.js:1871
n @ vue.esm.js:2188
zt @ vue.esm.js:1863
t.$emit @ vue.esm.js:3897
primary @ modal.js:132
zt @ vue.esm.js:1863
n @ vue.esm.js:2188
zt @ vue.esm.js:1863
t.$emit @ vue.esm.js:3897
hide @ modal.js:526
onOk @ modal.js:727
ok @ modal.js:123
zt @ vue.esm.js:1863
n @ vue.esm.js:2188
zt @ vue.esm.js:1863
n @ vue.esm.js:2184
i._wrapper @ vue.esm.js:7565
r @ helpers.js:72
Output of checks
This bug happens on GitLab.com
Results of GitLab application Check
Implementation plan
- Pass
action
prop to app/assets/javascripts/groups/components/item_actions.vue#L24 in app/assets/javascripts/groups/components/group_item.vue#L184 - Write unit test in spec/frontend/groups/components/group_item_spec.js#L24 to ensure
action
prop is being passed correctly