]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-13857 Fix Security Review facet on new code
authorJeremy Davis <jeremy.davis@sonarsource.com>
Tue, 15 Sep 2020 08:12:47 +0000 (10:12 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 18 Sep 2020 20:07:12 +0000 (20:07 +0000)
server/sonar-web/src/main/js/apps/projects/components/PageSidebar.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageSidebar-test.tsx.snap

index b92e20b1e6673e0da2943d041cbe86e8a0862c6c..cbea6dc94c984e0f640c61bf173a1e119ecd05f7 100644 (file)
@@ -140,7 +140,7 @@ export default function PageSidebar(props: PageSidebarProps) {
             {...facetProps}
             className="leak-facet-box"
             facet={getFacet(facets, 'new_security_review_rating')}
-            property="new_security_review_rating"
+            property="new_security_review"
             value={query.new_security_review_rating}
           />
           <NewMaintainabilityFilter
index ac6904b4bc760845ad0224b2b483321d18c163ea..748cc246cbb26492f73013b558ceffba57d5aa56 100644 (file)
@@ -28,7 +28,7 @@ exports[`should render \`leak\` view correctly 1`] = `
   <SecurityReviewFilter
     className="leak-facet-box"
     onQueryChange={[MockFunction]}
-    property="new_security_review_rating"
+    property="new_security_review"
   />
   <NewMaintainabilityFilter
     onQueryChange={[MockFunction]}
@@ -92,7 +92,7 @@ exports[`should render \`leak\` view correctly with no applications 1`] = `
   <SecurityReviewFilter
     className="leak-facet-box"
     onQueryChange={[MockFunction]}
-    property="new_security_review_rating"
+    property="new_security_review"
   />
   <NewMaintainabilityFilter
     onQueryChange={[MockFunction]}