Add enterprise information to Metadata API
What does this MR do and why?
This MR adds "enterprise": true
key to Metadata API.
Main motivation for this addition is ~"group::import" works on GitLab Migration importer that migrates user group/project data from one instance to another. If migration happens from CE to EE we don't have a reliable way to determine if source instance of GitLab is EE or not. For this reason, we add this information to /metadata endpoint in order to later on use it in GitLab Migration tool. I think this information is ok to expose?
Mentions #375588 (closed)
Screenshots or screen recordings
curl http://gdk.test:3000/api/v4/metadata\?private_token\=ypCa3Dzb23o5nvsixwPA
{"version":"15.6.0-pre","revision":"e6dce752392","kas":{"enabled":false,"externalUrl":null,"version":null},"enterprise":true}
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
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.