Skip to content

Add README for groups

Abdul Wadood requested to merge 15041-group-readme into master

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

  1. Create a project with path gitlab-profile in a group
  2. 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.

Related to #15041 (closed)

Edited by Abdul Wadood

Merge request reports

Loading