aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorguillaume-peoch-sonarsource <guillaume.peoch@sonarsource.com>2024-09-18 18:18:43 +0200
committersonartech <sonartech@sonarsource.com>2024-09-25 20:02:53 +0000
commitb22dceef3c2209c4d4447a55f1abbe69f2be7597 (patch)
treeff30b99d1c7590746a863d3a3793f6e7ca437233 /server
parent2f7bbfad874d63e537cd147f97f878046f9cf244 (diff)
downloadsonarqube-b22dceef3c2209c4d4447a55f1abbe69f2be7597.tar.gz
sonarqube-b22dceef3c2209c4d4447a55f1abbe69f2be7597.zip
SONAR-23064 Create new project settings page for ai generated code
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/helpers/doc-links.ts1
-rw-r--r--server/sonar-web/src/main/js/queries/quality-gates.ts2
2 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/helpers/doc-links.ts b/server/sonar-web/src/main/js/helpers/doc-links.ts
index 61735ee8392..7b8b67313f7 100644
--- a/server/sonar-web/src/main/js/helpers/doc-links.ts
+++ b/server/sonar-web/src/main/js/helpers/doc-links.ts
@@ -84,6 +84,7 @@ export enum DocLink {
SonarScannerDotNet = '/analyzing-source-code/scanners/dotnet/introduction/',
SonarScannerGradle = '/analyzing-source-code/scanners/sonarscanner-for-gradle/',
SonarScannerMaven = '/analyzing-source-code/scanners/sonarscanner-for-maven/',
+ SonarWayQualityGate = '/user-guide/quality-gates/#using-sonar-way-the-recommended-quality-gate', // to be confirmed
Webhooks = '/project-administration/webhooks/',
}
diff --git a/server/sonar-web/src/main/js/queries/quality-gates.ts b/server/sonar-web/src/main/js/queries/quality-gates.ts
index 1452aa2f05a..0bb25cda19a 100644
--- a/server/sonar-web/src/main/js/queries/quality-gates.ts
+++ b/server/sonar-web/src/main/js/queries/quality-gates.ts
@@ -68,7 +68,7 @@ export function useQualityGateQuery(name: string) {
return useQualityGateQueryInner(name);
}
-function useQualityGateForProjectQuery(project: string) {
+export function useQualityGateForProjectQuery(project: string) {
return useQuery({
queryKey: qualityQuery.projectAssoc(project),
queryFn: async ({ queryKey: [, , project] }) => {