Skip to content

gitlab import/export: add support for system note metadata

What does this MR do?

This MR adds support for exporting and importing system note metadata, which improves the quality of export/import functionality.

Risks: I made this change based upon !27816 (merged) and looking around in the files. I have tested it locally on a GitLab instance and it works fine without any errors. However, someone with more database knowledge should probably verify this to be safe.

Screenshots

Without this change, the icon of the note is empty:

image

With this change, the icon of the note is properly exported/imported, as it is part of metadata:

image

(Please ignore the username/owner of the note mismatch in the screenshots, this is due to testing for issue #19128 (closed) and unrelated.)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Someone with more database knowledge should check if this is proper, I am not familiar enough to declare these changes 100% safe though I did exclude the note_id already, which should be the only thing required.

See #19128 (closed), in specific #19128 (comment 310060721).

Edited by 🤖 GitLab Bot 🤖

Merge request reports