Note that owner must export project for user mapping to work
What does this MR do and why?
Notes that exports must be generated/downloaded by a project or group owner for user mapping to work in the project export/import > user mapping docs.
Screenshots or screen recordings
-
tree/project/project_members.ndjsonfrom project export generated by project or group maintainer is empty. -
tree/project/project_members.ndjsonfrom project export generated by project or group owner lists all the project or group members, along with their usernames and email addresses (if public)
How to set up and validate locally
Requirements:
- 2 self-managed instances (running GitLab 14.6 or newer)
- Instance A = instance where export will be generated
- Instance B = instance where project export will be imported
- create 3 users on each instance with email set to public
-
root= admin (emailadmin@example.com) -
bob= non-admin user (emailbob@example.com) -
mary= non-admin user (emailmary@example.com)
-
- On Instance A, have
rootuser create a project and grantbobtheMaintainerrole for that project - Log in as
bobon Instance A and create an issue or MR in that project assigned tobob - Log in as
maryon Instance A and create an issue or MR in that project assigned tomary - Create two project exports on Instance A - one created using the
rootuser, and the other created bybobuser - (validate locally) Extract the export archives and view
tree/project/project_members.ndjson- note that the export created by the Owner has all the user information, and export created by the maintainer does not - (validate in GitLab) Import both project exports to Instance B as the
rootuser. Verify that the export created byrootuser correctly assignedbobandmary to any issues/MRs that were assigned tobob/maryon Instance A. However, the export created bybobdid not correctly map issue/MR assignees tobob/mary`.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Greg Myers