Describe in detail what your merge request does and why.
This PR fixes a bug where bot account would be deleted from a namespace but if that bot was added as a member to another namespace previously, then membership within that namespace would not be deleted.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other pull requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Verify tests pass
Login as a user
Create a group Group 1
Create a project under the user's namespace Project 1
Create a bot account for Group 1
Verify the bot account is added as a member on the Members page for the group
Go to the members page for the project created in step 4
Add the bot account created for Group 1 as a member to this project
On the Members page for the project verify that the bot account is added as a member
Go back into the group Group 1
From the sidebar, click Settings and then click Bot Accounts
Remove the bot account from the group
Verify on the Members page for Group 1 and Project 1 that the bot account is no longer listed as a member
Note: To see the existing bug, repeat steps 2 through 13 on the main branch. You will see that the bot is still listed as a member for Project 1
PR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
What does this PR do and why?
Describe in detail what your merge request does and why.
This PR fixes a bug where bot account would be deleted from a namespace but if that bot was added as a member to another namespace previously, then membership within that namespace would not be deleted.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other pull requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Group 1
Project 1
Group 1
Members
page for the groupstep 4
Group 1
as a member to this projectMembers
page for the project verify that the bot account is added as a memberGroup 1
Settings
and then clickBot Accounts
Members
page forGroup 1
andProject 1
that the bot account is no longer listed as a memberNote: To see the existing bug, repeat steps 2 through 13 on the
main
branch. You will see that the bot is still listed as a member forProject 1
PR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.