Browse Source

SONAR-14479 Fix project quality profile's rule link

tags/8.8.0.42792
Wouter Admiraal 3 years ago
parent
commit
b2a4483771

+ 1
- 1
server/sonar-web/src/main/js/apps/projectQualityProfiles/ProjectQualityProfilesAppRenderer.tsx View 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>

+ 9
- 0
server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesAppRenderer-test.tsx.snap View 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",
},
}

Loading…
Cancel
Save