]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19840 Ensure project activity takes branch into account
authorPhilippe Perrin <philippe.perrin@sonarsource.com>
Wed, 30 Aug 2023 15:14:48 +0000 (17:14 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 31 Aug 2023 20:02:56 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityApp.tsx

index d4b7ff0af5ca3c6aa58954ef7044a45cdf4d3a9b..728be1233e2555bc2f51ec5fab6b079582f95dd6 100644 (file)
@@ -40,6 +40,7 @@ import { Location, Router, withRouter } from '../../../components/hoc/withRouter
 import { getBranchLikeQuery } from '../../../helpers/branch-like';
 import { parseDate } from '../../../helpers/dates';
 import { serializeStringArray } from '../../../helpers/query';
+import { withBranchLikes } from '../../../queries/branch';
 import { BranchLike } from '../../../types/branch-like';
 import { ComponentQualifier, isPortfolioLike } from '../../../types/component';
 import { MetricKey } from '../../../types/metrics';
@@ -414,4 +415,6 @@ function RedirectWrapper(props: Props) {
   return shouldRedirect ? null : <ProjectActivityApp {...props} />;
 }
 
-export default withComponentContext(withRouter(withMetricsContext(RedirectWrapper)));
+export default withComponentContext(
+  withRouter(withMetricsContext(withBranchLikes(RedirectWrapper)))
+);