Existing UNLICENSE file not recognized as license
Summary
Per gitlab-foss#47440 (closed) and gitlab-foss!21508 (merged) GitLab previously did not detect UNLICENSE as a license file. Newly created or modified UNLICENSE files will now be detected as license files following the merge of gitlab-foss!21508 (merged). All existing projects that contain unmodified UNLICENSE files will not recognize the license.
Proposal
With the changes we've been making in &7874 (closed), Gitaly now returns the filename of the license file in the repository. The rails code should be changed so it no longer uses the Gitlab::FileDetector
to find the license file in the repo, but instead relies on the info from Gitaly. This will make Gitaly provide the single source of truth and make sure the detected license actually matches the file where that license was found.