diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2021-02-22 12:24:32 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-02-23 20:07:26 +0000 |
commit | b2a448377174b747987d856a63acb48243f72393 (patch) | |
tree | 4b5036eb6b42a6bcbde1e77bd201268d21365b1d /server | |
parent | aa23b46299f2ba3dd4977c4bb3b117c88c3e907c (diff) | |
download | sonarqube-b2a448377174b747987d856a63acb48243f72393.tar.gz sonarqube-b2a448377174b747987d856a63acb48243f72393.zip |
SONAR-14479 Fix project quality profile's rule link
Diffstat (limited to 'server')
2 files changed, 10 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectQualityProfiles/ProjectQualityProfilesAppRenderer.tsx b/server/sonar-web/src/main/js/apps/projectQualityProfiles/ProjectQualityProfilesAppRenderer.tsx index 7e993adad58..53f79b447e7 100644 --- a/server/sonar-web/src/main/js/apps/projectQualityProfiles/ProjectQualityProfilesAppRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/projectQualityProfiles/ProjectQualityProfilesAppRenderer.tsx @@ -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> diff --git a/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesAppRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesAppRenderer-test.tsx.snap index 43767f2d8ab..e17e8469e71 100644 --- a/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesAppRenderer-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesAppRenderer-test.tsx.snap @@ -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", }, } |