From b2a448377174b747987d856a63acb48243f72393 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Mon, 22 Feb 2021 12:24:32 +0100 Subject: [PATCH] SONAR-14479 Fix project quality profile's rule link --- .../ProjectQualityProfilesAppRenderer.tsx | 2 +- .../ProjectQualityProfilesAppRenderer-test.tsx.snap | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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( - + {profile.activeRuleCount} 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", }, } -- 2.39.5