Commit 2cc2afa0 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '329935-devops-adoption-add-codeowners-to-the-adoption-table-fe' into 'master'

Resolve "[DevOps Adoption] Add Codeowners to the adoption table (FE)"

See merge request gitlab-org/gitlab!62072
parents 651e2504 c99eca0d
...@@ -40,13 +40,14 @@ collected before this feature is available. ...@@ -40,13 +40,14 @@ collected before this feature is available.
The DevOps Adoption tab shows you which groups within your organization are using the most essential features of GitLab: The DevOps Adoption tab shows you which groups within your organization are using the most essential features of GitLab:
- Approvals
- Code owners
- Deployments
- Issues - Issues
- Merge Requests - Merge Requests
- Approvals
- Runners
- Pipelines - Pipelines
- Deploys - Runners
- Scanning - Scans
Buttons to manage your groups appear in the DevOps Adoption section of the page. Buttons to manage your groups appear in the DevOps Adoption section of the page.
......
...@@ -25,6 +25,7 @@ To access Group DevOps Adoption, go to your group and select **Analytics > DevOp ...@@ -25,6 +25,7 @@ To access Group DevOps Adoption, go to your group and select **Analytics > DevOp
Group DevOps Adoption shows you how individual groups and sub-groups within your organization use the following features: Group DevOps Adoption shows you how individual groups and sub-groups within your organization use the following features:
- Approvals - Approvals
- Code owners
- Deployments - Deployments
- Issues - Issues
- Merge Requests - Merge Requests
......
...@@ -188,7 +188,7 @@ export default { ...@@ -188,7 +188,7 @@ export default {
v-if="item.latestSnapshot" v-if="item.latestSnapshot"
:key="col.key" :key="col.key"
:data-testid="col.testId" :data-testid="col.testId"
:enabled="item.latestSnapshot[col.key]" :enabled="Boolean(item.latestSnapshot[col.key])"
/> />
</template> </template>
......
...@@ -108,21 +108,27 @@ export const DEVOPS_ADOPTION_TABLE_CONFIGURATION = [ ...@@ -108,21 +108,27 @@ export const DEVOPS_ADOPTION_TABLE_CONFIGURATION = [
{ {
key: 'issueOpened', key: 'issueOpened',
label: s__('DevopsAdoption|Issues'), label: s__('DevopsAdoption|Issues'),
tooltip: s__('DevopsAdoption|At least 1 issue opened'), tooltip: s__('DevopsAdoption|At least one issue opened'),
testId: 'issuesCol', testId: 'issuesCol',
}, },
{ {
key: 'mergeRequestOpened', key: 'mergeRequestOpened',
label: s__('DevopsAdoption|MRs'), label: s__('DevopsAdoption|MRs'),
tooltip: s__('DevopsAdoption|At least 1 MR opened'), tooltip: s__('DevopsAdoption|At least one MR opened'),
testId: 'mrsCol', testId: 'mrsCol',
}, },
{ {
key: 'mergeRequestApproved', key: 'mergeRequestApproved',
label: s__('DevopsAdoption|Approvals'), label: s__('DevopsAdoption|Approvals'),
tooltip: s__('DevopsAdoption|At least 1 approval on an MR'), tooltip: s__('DevopsAdoption|At least one approval on an MR'),
testId: 'approvalsCol', testId: 'approvalsCol',
}, },
{
key: 'codeOwnersUsedCount',
label: s__('DevopsAdoption|Code owners'),
tooltip: s__('DevopsAdoption|Code owners enabled for at least one project'),
testId: 'codeownersCol',
},
], ],
}, },
{ {
...@@ -132,7 +138,7 @@ export const DEVOPS_ADOPTION_TABLE_CONFIGURATION = [ ...@@ -132,7 +138,7 @@ export const DEVOPS_ADOPTION_TABLE_CONFIGURATION = [
{ {
key: 'securityScanSucceeded', key: 'securityScanSucceeded',
label: s__('DevopsAdoption|Scanning'), label: s__('DevopsAdoption|Scanning'),
tooltip: s__('DevopsAdoption|At least 1 security scan of any type run in pipeline'), tooltip: s__('DevopsAdoption|At least one security scan of any type run in pipeline'),
testId: 'scanningCol', testId: 'scanningCol',
}, },
], ],
...@@ -150,13 +156,13 @@ export const DEVOPS_ADOPTION_TABLE_CONFIGURATION = [ ...@@ -150,13 +156,13 @@ export const DEVOPS_ADOPTION_TABLE_CONFIGURATION = [
{ {
key: 'pipelineSucceeded', key: 'pipelineSucceeded',
label: s__('DevopsAdoption|Pipelines'), label: s__('DevopsAdoption|Pipelines'),
tooltip: s__('DevopsAdoption|At least 1 pipeline successfully run'), tooltip: s__('DevopsAdoption|At least one pipeline successfully run'),
testId: 'pipelinesCol', testId: 'pipelinesCol',
}, },
{ {
key: 'deploySucceeded', key: 'deploySucceeded',
label: s__('DevopsAdoption|Deploys'), label: s__('DevopsAdoption|Deploys'),
tooltip: s__('DevopsAdoption|At least 1 deploy'), tooltip: s__('DevopsAdoption|At least one deploy'),
testId: 'deploysCol', testId: 'deploysCol',
}, },
], ],
......
...@@ -14,6 +14,7 @@ query devopsAdoptionSegments($parentNamespaceId: NamespaceID, $directDescendants ...@@ -14,6 +14,7 @@ query devopsAdoptionSegments($parentNamespaceId: NamespaceID, $directDescendants
deploySucceeded deploySucceeded
securityScanSucceeded securityScanSucceeded
recordedAt recordedAt
codeOwnersUsedCount
} }
namespace { namespace {
fullName fullName
......
...@@ -55,6 +55,7 @@ export const devopsAdoptionSegmentsData = { ...@@ -55,6 +55,7 @@ export const devopsAdoptionSegmentsData = {
pipelineSucceeded: false, pipelineSucceeded: false,
deploySucceeded: false, deploySucceeded: false,
securityScanSucceeded: false, securityScanSucceeded: false,
codeOwnersUsedCount: 0,
recordedAt: '2020-10-31T23:59:59Z', recordedAt: '2020-10-31T23:59:59Z',
__typename: 'latestSnapshot', __typename: 'latestSnapshot',
}, },
...@@ -87,20 +88,25 @@ export const devopsAdoptionTableHeaders = [ ...@@ -87,20 +88,25 @@ export const devopsAdoptionTableHeaders = [
{ {
index: 1, index: 1,
label: 'Issues', label: 'Issues',
tooltip: 'At least 1 issue opened', tooltip: 'At least one issue opened',
}, },
{ {
index: 2, index: 2,
label: 'MRs', label: 'MRs',
tooltip: 'At least 1 MR opened', tooltip: 'At least one MR opened',
}, },
{ {
index: 3, index: 3,
label: 'Approvals', label: 'Approvals',
tooltip: 'At least 1 approval on an MR', tooltip: 'At least one approval on an MR',
}, },
{ {
index: 4, index: 4,
label: 'Code owners',
tooltip: 'Code owners enabled for at least one project',
},
{
index: 5,
label: '', label: '',
tooltip: null, tooltip: null,
}, },
......
...@@ -11366,22 +11366,28 @@ msgstr "" ...@@ -11366,22 +11366,28 @@ msgstr ""
msgid "DevopsAdoption|Are you sure that you would like to remove %{name} from the table?" msgid "DevopsAdoption|Are you sure that you would like to remove %{name} from the table?"
msgstr "" msgstr ""
msgid "DevopsAdoption|At least 1 MR opened" msgid "DevopsAdoption|At least one MR opened"
msgstr "" msgstr ""
msgid "DevopsAdoption|At least 1 approval on an MR" msgid "DevopsAdoption|At least one approval on an MR"
msgstr "" msgstr ""
msgid "DevopsAdoption|At least 1 deploy" msgid "DevopsAdoption|At least one deploy"
msgstr "" msgstr ""
msgid "DevopsAdoption|At least 1 issue opened" msgid "DevopsAdoption|At least one issue opened"
msgstr "" msgstr ""
msgid "DevopsAdoption|At least 1 pipeline successfully run" msgid "DevopsAdoption|At least one pipeline successfully run"
msgstr "" msgstr ""
msgid "DevopsAdoption|At least 1 security scan of any type run in pipeline" msgid "DevopsAdoption|At least one security scan of any type run in pipeline"
msgstr ""
msgid "DevopsAdoption|Code owners"
msgstr ""
msgid "DevopsAdoption|Code owners enabled for at least one project"
msgstr "" msgstr ""
msgid "DevopsAdoption|Confirm remove Group" msgid "DevopsAdoption|Confirm remove Group"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment