]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-22728 Fix SecurityReview filter and new_tech_debt metric
authorViktor Vorona <viktor.vorona@sonarsource.com>
Fri, 23 Aug 2024 11:59:39 +0000 (13:59 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 26 Aug 2024 20:03:08 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/projects/components/PageSidebar.tsx
server/sonar-web/src/main/js/apps/projects/query.ts
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 3398f06718f6da19e3ff6b41236beaf85ddf7f31..966ff0e3b0518fa740c21b8dc1079a13c6a15e6b 100644 (file)
@@ -132,7 +132,7 @@ export default function PageSidebar(props: PageSidebarProps) {
             {...facetProps}
             facets={facets}
             property="security_review"
-            value={query.security_review_rating}
+            value={query.security_review}
           />
 
           <BasicSeparator className="sw-my-4" />
@@ -189,7 +189,7 @@ export default function PageSidebar(props: PageSidebarProps) {
             {...facetProps}
             facets={facets}
             property="security_review"
-            value={query.new_security_review_rating}
+            value={query.new_security_review}
           />
 
           <BasicSeparator className="sw-my-4" />
index 5dd5b96420455486b83585ec8c09d4ab1b0a2bcf..d8a80c99761ae93553f03fc44f329d1e25ff2089 100644 (file)
@@ -55,8 +55,8 @@ export function parseUrlQuery(urlQuery: RawQuery): Query {
     new_reliability: getAsNumericRating(urlQuery['new_reliability']),
     security: getAsNumericRating(urlQuery['security']),
     new_security: getAsNumericRating(urlQuery['new_security']),
-    security_review_rating: getAsNumericRating(urlQuery['security_review']),
-    new_security_review_rating: getAsNumericRating(urlQuery['new_security_review']),
+    security_review: getAsNumericRating(urlQuery['security_review']),
+    new_security_review: getAsNumericRating(urlQuery['new_security_review']),
     maintainability: getAsNumericRating(urlQuery['maintainability']),
     new_maintainability: getAsNumericRating(urlQuery['new_maintainability']),
     coverage: getAsNumericRating(urlQuery['coverage']),
@@ -100,11 +100,11 @@ export function convertToFilter(query: Query, isFavorite: boolean, isLegacy: boo
   [
     'reliability',
     'security',
-    'security_review_rating',
+    'security_review',
     'maintainability',
     'new_reliability',
     'new_security',
-    'new_security_review_rating',
+    'new_security_review',
     'new_maintainability',
   ].forEach((property) =>
     pushMetricToArray(query, property, conditions, convertIssuesRating, isLegacy),
index 2389ea590ce53bd79387e5c2bef8108b5ddec8ee..048ad0b33ee3a0eb45cc9a7cff9ece1bd943db5e 100644 (file)
@@ -3232,10 +3232,10 @@ metric.new_sqale_debt_ratio.description=Technical Debt Ratio of new/changed code
 metric.new_sqale_debt_ratio.name=Technical Debt Ratio on New Code
 metric.new_sqale_debt_ratio.short_name=Debt Ratio on new code
 metric.new_sqale_debt_ratio.extra_short_name=Debt Ratio
-metric.software_quality_maintainability_debt_ratio.description=Technical Debt Ratio of new/changed code.
-metric.software_quality_maintainability_debt_ratio.name=Technical Debt Ratio on New Code
-metric.software_quality_maintainability_debt_ratio.short_name=Debt Ratio on new code
-metric.software_quality_maintainability_debt_ratio.extra_short_name=Debt Ratio
+metric.new_software_quality_maintainability_debt_ratio.description=Technical Debt Ratio of new/changed code.
+metric.new_software_quality_maintainability_debt_ratio.name=Technical Debt Ratio on New Code
+metric.new_software_quality_maintainability_debt_ratio.short_name=Debt Ratio on new code
+metric.new_software_quality_maintainability_debt_ratio.extra_short_name=Debt Ratio
 metric.new_technical_debt.description=Added technical debt
 metric.new_technical_debt.name=Added Technical Debt
 metric.new_technical_debt.short_name=Added Debt