aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Vorona <viktor.vorona@sonarsource.com>2024-11-21 11:23:15 +0100
committersonartech <sonartech@sonarsource.com>2024-11-26 20:02:50 +0000
commit49432ece9dceba4ad844f642afda2f365fe26339 (patch)
tree6e843ae7acd2ac1fd41cedba7fa36d764395e7b0
parente7cfc7f04f41fa7dde069844cc80d710913cb63e (diff)
downloadsonarqube-49432ece9dceba4ad844f642afda2f365fe26339.tar.gz
sonarqube-49432ece9dceba4ad844f642afda2f365fe26339.zip
SONAR-23649 Support new notification in my account
-rw-r--r--server/sonar-web/src/main/js/apps/account/__tests__/Account-it.tsx3
-rw-r--r--server/sonar-web/src/main/js/types/notifications.ts1
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties1
3 files changed, 5 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/account/__tests__/Account-it.tsx b/server/sonar-web/src/main/js/apps/account/__tests__/Account-it.tsx
index 4d979dfc1b0..c58397fa3ea 100644
--- a/server/sonar-web/src/main/js/apps/account/__tests__/Account-it.tsx
+++ b/server/sonar-web/src/main/js/apps/account/__tests__/Account-it.tsx
@@ -515,6 +515,9 @@ describe('notifications page', () => {
expect(globalUI.checkbox(NotificationGlobalType.CeReportTaskFailure).get()).not.toBeChecked();
expect(globalUI.checkbox(NotificationGlobalType.NewAlerts).get()).not.toBeChecked();
expect(globalUI.checkbox(NotificationGlobalType.MyNewIssues).get()).not.toBeChecked();
+ expect(
+ globalUI.checkbox(NotificationGlobalType.QualityGateConditionsMismatch).get(),
+ ).not.toBeChecked();
/*
* Update notifications
diff --git a/server/sonar-web/src/main/js/types/notifications.ts b/server/sonar-web/src/main/js/types/notifications.ts
index f2b4be006c1..9e25685f103 100644
--- a/server/sonar-web/src/main/js/types/notifications.ts
+++ b/server/sonar-web/src/main/js/types/notifications.ts
@@ -23,6 +23,7 @@ export enum NotificationGlobalType {
ChangesOnMyIssue = 'ChangesOnMyIssue',
NewAlerts = 'NewAlerts',
MyNewIssues = 'SQ-MyNewIssues',
+ QualityGateConditionsMismatch = 'QualityGateConditionsMismatch',
}
export enum NotificationProjectType {
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
index d36cc894036..de02b9536b6 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -2973,6 +2973,7 @@ notification.dispatcher.NewAlerts=Quality gate changes on all available projects
notification.dispatcher.NewAlerts.project=Quality gate changes
notification.dispatcher.NewFalsePositiveIssue=Issues resolved as false positive or accepted
notification.dispatcher.SQ-MyNewIssues=My new issues
+notification.dispatcher.QualityGateConditionsMismatch=Quality gate metrics mismatch with the mode of the instance
notification.dispatcher.CeReportTaskFailure=Background tasks in failure on my administered projects
notification.dispatcher.CeReportTaskFailure.project=Background tasks in failure
notification.dispatcher.description_x=Check to receive notification for {0}