From 3746a3611f5a5c7e0725b11b15ad7e4357852c86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Fri, 16 Jun 2017 14:51:12 +0200 Subject: [PATCH] SONAR-9401 Add the remediation effort graph to the project activity page --- server/sonar-web/src/main/js/apps/projectActivity/utils.js | 5 +++-- sonar-core/src/main/resources/org/sonar/l10n/core.properties | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/projectActivity/utils.js b/server/sonar-web/src/main/js/apps/projectActivity/utils.js index fe95ae971d4..1498d215f41 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/utils.js +++ b/server/sonar-web/src/main/js/apps/projectActivity/utils.js @@ -23,11 +23,12 @@ import { translate } from '../../helpers/l10n'; import type { MeasureHistory, Query } from './types'; import type { RawQuery } from '../../helpers/query'; -export const GRAPH_TYPES = ['overview', 'coverage', 'duplications']; +export const GRAPH_TYPES = ['overview', 'coverage', 'duplications', 'remediation']; export const GRAPHS_METRICS = { overview: ['bugs', 'vulnerabilities', 'code_smells'], coverage: ['uncovered_lines', 'lines_to_cover'], - duplications: ['duplicated_lines', 'ncloc'] + duplications: ['duplicated_lines', 'ncloc'], + remediation: ['sqale_index', 'security_remediation_effort', 'reliability_remediation_effort'] }; const parseGraph = (value?: string): string => { diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index 2cdf15fe1b5..11f0301d946 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -1286,6 +1286,7 @@ project_activity.filter_events=Filter events project_activity.graphs.overview=Overview project_activity.graphs.coverage=Coverage project_activity.graphs.duplications=Duplications +project_activity.graphs.remediation=Remediation Effort project_activity.custom_metric.covered_lines=Covered Lines -- 2.39.5