]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-14479 Fix project quality profile's rule link
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Mon, 22 Feb 2021 11:24:32 +0000 (12:24 +0100)
committersonartech <sonartech@sonarsource.com>
Tue, 23 Feb 2021 20:07:26 +0000 (20:07 +0000)
server/sonar-web/src/main/js/apps/projectQualityProfiles/ProjectQualityProfilesAppRenderer.tsx
server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesAppRenderer-test.tsx.snap

index 7e993adad58a8182f1af84ce74ff3df348714498..53f79b447e7a16ca0b52508a4714bc4107b345f6 100644 (file)
@@ -127,7 +127,7 @@ export default function ProjectQualityProfilesAppRenderer(
                         </span>
                       </td>
                       <td className="nowrap text-right">
-                        <Link to={getRulesUrl({ qprofile: profile.key })}>
+                        <Link to={getRulesUrl({ activation: 'true', qprofile: profile.key })}>
                           {profile.activeRuleCount}
                         </Link>
                       </td>
index 43767f2d8ab7a6c65e8e3fed8e1fd9cb139a6622..e17e8469e713df28b7747e06a4590dbe3fe0c827 100644 (file)
@@ -105,6 +105,7 @@ exports[`should render correctly: add language 1`] = `
                   Object {
                     "pathname": "/coding_rules",
                     "query": Object {
+                      "activation": "true",
                       "qprofile": "bar",
                     },
                   }
@@ -151,6 +152,7 @@ exports[`should render correctly: add language 1`] = `
                   Object {
                     "pathname": "/coding_rules",
                     "query": Object {
+                      "activation": "true",
                       "qprofile": "baz",
                     },
                   }
@@ -199,6 +201,7 @@ exports[`should render correctly: add language 1`] = `
                   Object {
                     "pathname": "/coding_rules",
                     "query": Object {
+                      "activation": "true",
                       "qprofile": "foo",
                     },
                   }
@@ -416,6 +419,7 @@ exports[`should render correctly: default 1`] = `
                   Object {
                     "pathname": "/coding_rules",
                     "query": Object {
+                      "activation": "true",
                       "qprofile": "bar",
                     },
                   }
@@ -462,6 +466,7 @@ exports[`should render correctly: default 1`] = `
                   Object {
                     "pathname": "/coding_rules",
                     "query": Object {
+                      "activation": "true",
                       "qprofile": "baz",
                     },
                   }
@@ -510,6 +515,7 @@ exports[`should render correctly: default 1`] = `
                   Object {
                     "pathname": "/coding_rules",
                     "query": Object {
+                      "activation": "true",
                       "qprofile": "foo",
                     },
                   }
@@ -747,6 +753,7 @@ exports[`should render correctly: open profile 1`] = `
                   Object {
                     "pathname": "/coding_rules",
                     "query": Object {
+                      "activation": "true",
                       "qprofile": "bar",
                     },
                   }
@@ -793,6 +800,7 @@ exports[`should render correctly: open profile 1`] = `
                   Object {
                     "pathname": "/coding_rules",
                     "query": Object {
+                      "activation": "true",
                       "qprofile": "baz",
                     },
                   }
@@ -841,6 +849,7 @@ exports[`should render correctly: open profile 1`] = `
                   Object {
                     "pathname": "/coding_rules",
                     "query": Object {
+                      "activation": "true",
                       "qprofile": "foo",
                     },
                   }