CI status on group details page
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Description
The CI badge / checkmark (build status) has been removed from the group details page in a recent update. It is there on the 'Your projects' view.
Proposal
Reinstate the CI checkmark on the group details page. UX should be same/similar to "Your projects" view of status. See #20450 (comment 1074859832)
Implementation plan
- Add a
ci_statusfield to theGroupChildEntityclass. This will expose the latest CI status to the Frontend
on https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/serializers/group_child_entity.rb
expose :ci_status, unless: ->(_instance, _options) { project? } do |instance|
instance.pipeline_status
end
Add specs on https://gitlab.com/gitlab-org/gitlab/-/blob/master/spec/serializers/group_child_entity_spec.rb
Verify the specs on https://gitlab.com/gitlab-org/gitlab/-/blob/master/spec/controllers/groups/children_controller_spec.rb work as intended and add more coverage
-
Add a new component to the
group_item.vuecomponent that contains the CI status, following the new name convention, you can call ititem_ci_status.vue -
Reuse the
ci_icon.vuecomponent to display the CI status inside the newitem_ci_status.vuecomponent. To get the status of the project, you can use thegroupproperty from thegroup_item.vueparent component -
Create tests for the new
item_ci_status.vuecomponent and also the parentgroup_item.vuecomponent