Commit e6bbf55e authored by Illya Klymov's avatar Illya Klymov

Merge branch '231341-add-context-to-full-code-quality-report' into 'master'

Add context to full code quality report

See merge request gitlab-org/gitlab!49260
parents 6494c6b1 a5f9755f
......@@ -41,6 +41,9 @@ export default {
return this.checkReportStatus(this.isLoadingCodequality, this.loadingCodequalityFailed);
},
},
i18n: {
subHeading: s__('ciReport|This report contains all Code Quality issues in the source branch.'),
},
methods: {
...mapActions(['setPage']),
translateText(type) {
......@@ -70,7 +73,9 @@ export default {
:has-issues="hasCodequalityIssues"
:component="$options.componentNames.CodequalityIssueBody"
class="codequality-report"
/>
>
<template v-if="hasCodequalityIssues" #sub-heading>{{ $options.i18n.subHeading }}</template>
</report-section>
<pagination-links
:change="setPage"
:page-info="pageInfo"
......
---
title: Add context to full code quality report
merge_request: 49260
author:
type: changed
......@@ -68,7 +68,10 @@ describe('Codequality report app', () => {
const expectedIssueTotal = parsedIssues.length;
expect(findWarningIcon().exists()).toBe(true);
expect(findStatus().text()).toBe(`Found ${expectedIssueTotal} code quality issues`);
expect(findStatus().text()).toContain(`Found ${expectedIssueTotal} code quality issues`);
expect(findStatus().text()).toContain(
`This report contains all Code Quality issues in the source branch.`,
);
expect(wrapper.findAll('.report-block-list-issue')).toHaveLength(expectedIssueTotal);
});
......
......@@ -32535,6 +32535,9 @@ msgstr ""
msgid "ciReport|There was an error reverting the dismissal. Please try again."
msgstr ""
msgid "ciReport|This report contains all Code Quality issues in the source branch."
msgstr ""
msgid "ciReport|Used by %{packagesString}"
msgid_plural "ciReport|Used by %{packagesString}, and %{lastPackage}"
msgstr[0] ""
......
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