Add README for groups
What does this MR do and why?
This MR makes the backend changes required to show a README on the group home page (example https://gitlab.com/gitlab-org/) which will be picked from the gitlab-profile
project inside the group.
The frontend will be done in #378737 (closed) but a feature flag has been added to control the rollout.
How to set up and validate locally
- Create a project with path
gitlab-profile
in a group - Open rails console and get the readme blob using the following commands:
> group = Group.find <group-id>
=> <Group id:381 @manage/organization>
> group.readme_project
=> <Project id:124 manage/organization/gitlab-profile>>
> group.group_readme
=> <Gitlab::Git::Blob:0x0000000143add628
@binary=nil,
@commit_id="d3f90cbf872d8f803ea317fb1a241d0397adc0a3",
@data="<contents of the gitlab-profile project readme>"
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.
Related to #15041 (closed)
Edited by Abdul Wadood