]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12119 Change "Worst project" links in portfolios
authorphilippe-perrin-sonarsource <philippe.perrin@sonarsource.com>
Tue, 11 Jun 2019 09:36:39 +0000 (11:36 +0200)
committerSonarTech <sonartech@sonarsource.com>
Thu, 13 Jun 2019 18:21:14 +0000 (20:21 +0200)
server/sonar-web/src/main/js/apps/portfolio/components/Effort.tsx
server/sonar-web/src/main/js/apps/portfolio/components/__tests__/__snapshots__/Effort-test.tsx.snap

index e4d7b84888e5ac750faa0d459f4644bfc4a8cb6c..6762b42105b2fb8433d8fe61d5047c7b60fd76f7 100644 (file)
@@ -39,7 +39,12 @@ export default function Effort({ component, effort, metricKey }: Props) {
         id="portfolio.x_in_y"
         values={{
           projects: (
-            <Link to={getComponentDrilldownUrl({ componentKey: component, metric: metricKey })}>
+            <Link
+              to={getComponentDrilldownUrl({
+                componentKey: component,
+                metric: metricKey,
+                listView: true
+              })}>
               <span>
                 <Measure
                   className="little-spacer-right"
index b278210c01b9896c162bd5610bfd25f61d2f6b9c..ad1202079787af486ce187c1e01753ccbcb42fbd 100644 (file)
@@ -18,6 +18,7 @@ exports[`renders 1`] = `
               "query": Object {
                 "id": "foo",
                 "metric": "security_rating",
+                "view": "list",
               },
             }
           }