Commit 0c74ecea authored by Filipa Lacerda's avatar Filipa Lacerda

Revert "resolve lint in locale/gitlab.pot"

This reverts commit ada2c529.
parent ada2c529
...@@ -133,22 +133,24 @@ export default { ...@@ -133,22 +133,24 @@ export default {
this.setSastContainerHeadPath(this.sastContainerHeadPath); this.setSastContainerHeadPath(this.sastContainerHeadPath);
this.fetchSastContainerReports() this.fetchSastContainerReports()
.then(() => { .then(() => {
this.$emit('updateBadgeCount', this.sastContainer.newIssues.length); this.$emit('updateBadgeCount', this.sastContainer.newIssues.length);
}) })
.catch(() => .catch(() =>
createFlash(s__('ciReport|There was an error loading container scanning report')), createFlash(s__('ciReport|There was an error loading container scanning report')),
); );
} }
if (this.dastHeadPath) { if (this.dastHeadPath) {
this.setDastHeadPath(this.dastHeadPath); this.setDastHeadPath(this.dastHeadPath);
this.fetchDastReports() this.fetchDastReports()
.then(() => { .then(() => {
this.$emit('updateBadgeCount', this.dast.newIssues.length); this.$emit('updateBadgeCount', this.dast.newIssues.length);
}) })
.catch(() => createFlash(s__('ciReport|There was an error loading DAST report'))); .catch(() =>
createFlash(s__('ciReport|There was an error loading DAST report')),
);
} }
}, },
...@@ -175,8 +177,8 @@ export default { ...@@ -175,8 +177,8 @@ export default {
}); });
} }
return sprintf( return sprintf(
n__('%{type} detected %{count} vulnerability', '%{type} detected %{count} vulnerabilities'), n__('%{type} detected %d vulnerability', '%{type} detected %d vulnerabilities', issuesCount),
{ type, count: issuesCount }, { type },
); );
}, },
translateText(type) { translateText(type) {
......
...@@ -18,24 +18,24 @@ export const findIssueIndex = (issues, issue) => ...@@ -18,24 +18,24 @@ export const findIssueIndex = (issues, issue) =>
* @param {Array} feedback * @param {Array} feedback
*/ */
function enrichVulnerabilityWithfeedback(vulnerability, feedback = []) { function enrichVulnerabilityWithfeedback(vulnerability, feedback = []) {
return feedback return feedback.filter(
.filter(fb => fb.project_fingerprint === vulnerability.project_fingerprint) fb => fb.project_fingerprint === vulnerability.project_fingerprint,
.reduce((vuln, fb) => { ).reduce((vuln, fb) => {
if (fb.feedback_type === 'dismissal') { if (fb.feedback_type === 'dismissal') {
return { return {
...vuln, ...vuln,
isDismissed: true, isDismissed: true,
dismissalFeedback: fb, dismissalFeedback: fb,
}; };
} else if (fb.feedback_type === 'issue') { } else if (fb.feedback_type === 'issue') {
return { return {
...vuln, ...vuln,
hasIssue: true, hasIssue: true,
issueFeedback: fb, issueFeedback: fb,
}; };
} }
return vuln; return vuln;
}, vulnerability); }, vulnerability);
} }
/** /**
...@@ -155,30 +155,24 @@ export const parseSastContainer = (issues = [], feedback = []) => ...@@ -155,30 +155,24 @@ export const parseSastContainer = (issues = [], feedback = []) =>
const parsed = { const parsed = {
...issue, ...issue,
category: 'container_scanning', category: 'container_scanning',
project_fingerprint: sha1( project_fingerprint: sha1(`${issue.namespace}:${issue.vulnerability}:${issue.featurename}:${issue.featureversion}`),
`${issue.namespace}:${issue.vulnerability}:${issue.featurename}:${issue.featureversion}`,
),
title: issue.vulnerability, title: issue.vulnerability,
description: !_.isEmpty(issue.description) description: !_.isEmpty(issue.description) ? issue.description :
? issue.description sprintf(s__('ciReport|%{namespace} is affected by %{vulnerability}.'), {
: sprintf(s__('ciReport|%{namespace} is affected by %{vulnerability}.'), { namespace: issue.namespace,
namespace: issue.namespace, vulnerability: issue.vulnerability,
vulnerability: issue.vulnerability, }),
}),
path: issue.namespace, path: issue.namespace,
identifiers: [ identifiers: [{
{ type: 'CVE',
type: 'CVE', name: issue.vulnerability,
name: issue.vulnerability, value: issue.vulnerability,
value: issue.vulnerability, url: `https://cve.mitre.org/cgi-bin/cvename.cgi?name=${issue.vulnerability}`,
url: `https://cve.mitre.org/cgi-bin/cvename.cgi?name=${issue.vulnerability}`, }],
},
],
}; };
// Generate solution // Generate solution
if ( if (!_.isEmpty(issue.fixedby) &&
!_.isEmpty(issue.fixedby) &&
!_.isEmpty(issue.featurename) && !_.isEmpty(issue.featurename) &&
!_.isEmpty(issue.featureversion) !_.isEmpty(issue.featureversion)
) { ) {
...@@ -219,14 +213,12 @@ export const parseDastIssues = (issues = [], feedback = []) => ...@@ -219,14 +213,12 @@ export const parseDastIssues = (issues = [], feedback = []) =>
if (!_.isEmpty(issue.cweid)) { if (!_.isEmpty(issue.cweid)) {
Object.assign(parsed, { Object.assign(parsed, {
identifiers: [ identifiers: [{
{ type: 'CWE',
type: 'CWE', name: `CWE-${issue.cweid}`,
name: `CWE-${issue.cweid}`, value: issue.cweid,
value: issue.cweid, url: `https://cwe.mitre.org/data/definitions/${issue.cweid}.html`,
url: `https://cwe.mitre.org/data/definitions/${issue.cweid}.html`, }],
},
],
}); });
} }
...@@ -276,10 +268,11 @@ export const textBuilder = ( ...@@ -276,10 +268,11 @@ export const textBuilder = (
if (newIssues > 0) { if (newIssues > 0) {
return sprintf( return sprintf(
n__( n__(
'%{type} detected %{count} vulnerability for the source branch only', '%{type} detected %d vulnerability for the source branch only',
'%{type} detected %{count} vulnerabilities for the source branch only', '%{type} detected %d vulnerabilities for the source branch only',
newIssues,
), ),
{ type, count: newIssues }, { type },
); );
} }
......
...@@ -8,8 +8,8 @@ msgid "" ...@@ -8,8 +8,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gitlab 1.0.0\n" "Project-Id-Version: gitlab 1.0.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-19 09:50+0200\n" "POT-Creation-Date: 2018-06-13 14:05+0200\n"
"PO-Revision-Date: 2018-06-19 09:50+0200\n" "PO-Revision-Date: 2018-06-13 14:05+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n" "Language: \n"
...@@ -140,8 +140,8 @@ msgstr "" ...@@ -140,8 +140,8 @@ msgstr ""
msgid "%{title} changes" msgid "%{title} changes"
msgstr "" msgstr ""
msgid "%{type} detected %{count} vulnerability" msgid "%{type} detected %d vulnerability"
msgid_plural "%{type} detected %{count} vulnerabilities" msgid_plural "%{type} detected %d vulnerabilities"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
...@@ -1411,13 +1411,7 @@ msgstr "" ...@@ -1411,13 +1411,7 @@ msgstr ""
msgid "ClusterIntegration|Kubernetes clusters can be used to deploy applications and to provide Review Apps for this project" msgid "ClusterIntegration|Kubernetes clusters can be used to deploy applications and to provide Review Apps for this project"
msgstr "" msgstr ""
msgid "ClusterIntegration|Learn more about %{help_link_start_machine_type}machine types%{help_link_end} and %{help_link_start_pricing}pricing%{help_link_end}." msgid "ClusterIntegration|Learn more about %{link_to_documentation}"
msgstr ""
msgid "ClusterIntegration|Learn more about %{help_link_start}Kubernetes%{help_link_end}."
msgstr ""
msgid "ClusterIntegration|Learn more about %{help_link_start}zones%{help_link_end}."
msgstr "" msgstr ""
msgid "ClusterIntegration|Learn more about environments" msgid "ClusterIntegration|Learn more about environments"
...@@ -1513,6 +1507,9 @@ msgstr "" ...@@ -1513,6 +1507,9 @@ msgstr ""
msgid "ClusterIntegration|See and edit the details for your Kubernetes cluster" msgid "ClusterIntegration|See and edit the details for your Kubernetes cluster"
msgstr "" msgstr ""
msgid "ClusterIntegration|See zones"
msgstr ""
msgid "ClusterIntegration|Select machine type" msgid "ClusterIntegration|Select machine type"
msgstr "" msgstr ""
...@@ -1829,9 +1826,6 @@ msgstr "" ...@@ -1829,9 +1826,6 @@ msgstr ""
msgid "Control the maximum concurrency of repository backfill for this secondary node" msgid "Control the maximum concurrency of repository backfill for this secondary node"
msgstr "" msgstr ""
msgid "Control the maximum concurrency of verification operations for this Geo node"
msgstr ""
msgid "Copy SSH public key to clipboard" msgid "Copy SSH public key to clipboard"
msgstr "" msgstr ""
...@@ -2374,6 +2368,9 @@ msgstr "" ...@@ -2374,6 +2368,9 @@ msgstr ""
msgid "Error Reporting and Logging" msgid "Error Reporting and Logging"
msgstr "" msgstr ""
msgid "Error checking branch data. Please try again."
msgstr ""
msgid "Error committing changes. Please try again." msgid "Error committing changes. Please try again."
msgstr "" msgstr ""
...@@ -2625,6 +2622,12 @@ msgstr "" ...@@ -2625,6 +2622,12 @@ msgstr ""
msgid "GeoNodes|Full" msgid "GeoNodes|Full"
msgstr "" msgstr ""
msgid "Gitaly Servers"
msgstr ""
msgid "Gitaly|Address"
msgstr ""
msgid "GeoNodes|GitLab version" msgid "GeoNodes|GitLab version"
msgstr "" msgstr ""
...@@ -2781,9 +2784,6 @@ msgstr "" ...@@ -2781,9 +2784,6 @@ msgstr ""
msgid "Geo|Shards to synchronize" msgid "Geo|Shards to synchronize"
msgstr "" msgstr ""
msgid "Geo|Verification capacity"
msgstr ""
msgid "Git repository URL" msgid "Git repository URL"
msgstr "" msgstr ""
...@@ -3516,9 +3516,6 @@ msgstr "" ...@@ -3516,9 +3516,6 @@ msgstr ""
msgid "Months" msgid "Months"
msgstr "" msgstr ""
msgid "More actions"
msgstr ""
msgid "More info" msgid "More info"
msgstr "" msgstr ""
...@@ -4965,7 +4962,7 @@ msgstr "" ...@@ -4965,7 +4962,7 @@ msgstr ""
msgid "Stage" msgid "Stage"
msgstr "" msgstr ""
msgid "Stage all changes" msgid "Stage all"
msgstr "" msgstr ""
msgid "Stage changes" msgid "Stage changes"
...@@ -5646,7 +5643,7 @@ msgstr "" ...@@ -5646,7 +5643,7 @@ msgstr ""
msgid "Unresolve discussion" msgid "Unresolve discussion"
msgstr "" msgstr ""
msgid "Unstage all changes" msgid "Unstage all"
msgstr "" msgstr ""
msgid "Unstage changes" msgid "Unstage changes"
...@@ -5997,7 +5994,7 @@ msgstr "" ...@@ -5997,7 +5994,7 @@ msgstr ""
msgid "You are on a read-only GitLab instance." msgid "You are on a read-only GitLab instance."
msgstr "" msgstr ""
msgid "You are on a secondary, <b>read-only</b> Geo node. If you want to make changes, you must visit this page on the %{primary_node}." msgid "You are on a secondary (read-only) Geo node. If you want to make any changes, you must visit the %{primary_node}."
msgstr "" msgstr ""
msgid "You can also create a project from the command line." msgid "You can also create a project from the command line."
......
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