From: Stas Vilchik Date: Mon, 1 Feb 2016 15:40:02 +0000 (+0100) Subject: SONAR-7246 Link of "My New Issues" notification should go the User's Issues page X-Git-Tag: 5.4-M12~47^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bcc9fa2f5f463d636cd5c9019fa3ef48a01fef31;p=sonarqube.git SONAR-7246 Link of "My New Issues" notification should go the User's Issues page --- diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/notification/MyNewIssuesEmailTemplate.java b/server/sonar-server/src/main/java/org/sonar/server/issue/notification/MyNewIssuesEmailTemplate.java index c378be3ddb2..366247785ed 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/issue/notification/MyNewIssuesEmailTemplate.java +++ b/server/sonar-server/src/main/java/org/sonar/server/issue/notification/MyNewIssuesEmailTemplate.java @@ -60,10 +60,9 @@ public class MyNewIssuesEmailTemplate extends AbstractNewIssuesEmailTemplate { String assignee = notification.getFieldValue(FIELD_ASSIGNEE); if (projectUuid != null && dateString != null && assignee != null) { Date date = DateUtils.parseDateTime(dateString); - String url = String.format("%s/issues/search#projectUuids=%s|assignees=%s|createdAt=%s", + String url = String.format("%s/account/issues#projectUuids=%s|createdAt=%s", settings.getServerBaseURL(), encode(projectUuid), - encode(assignee), encode(DateUtils.formatDateTime(date))); message.append("See it in SonarQube: ").append(url).append(NEW_LINE); } diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/notification/MyNewIssuesEmailTemplateTest/email_with_all_details.txt b/server/sonar-server/src/test/resources/org/sonar/server/issue/notification/MyNewIssuesEmailTemplateTest/email_with_all_details.txt index c2e53d7a50f..6a5e6fa2784 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/notification/MyNewIssuesEmailTemplateTest/email_with_all_details.txt +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/notification/MyNewIssuesEmailTemplateTest/email_with_all_details.txt @@ -17,4 +17,4 @@ Project: Struts /path/to/file: 3 /path/to/directory: 7 -See it in SonarQube: http://nemo.sonarsource.org/issues/search#projectUuids=ABCDE|assignees=lo.gin|createdAt=2010-05-1 \ No newline at end of file +See it in SonarQube: http://nemo.sonarsource.org/account/issues#projectUuids=ABCDE|createdAt=2010-05-1 \ No newline at end of file diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/notification/MyNewIssuesEmailTemplateTest/email_with_no_assignee_tags_components.txt b/server/sonar-server/src/test/resources/org/sonar/server/issue/notification/MyNewIssuesEmailTemplateTest/email_with_no_assignee_tags_components.txt index a502a407567..479c4882f9a 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/notification/MyNewIssuesEmailTemplateTest/email_with_no_assignee_tags_components.txt +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/notification/MyNewIssuesEmailTemplateTest/email_with_no_assignee_tags_components.txt @@ -5,4 +5,4 @@ Project: Struts Severity Blocker: 0 Critical: 5 Major: 10 Minor: 3 Info: 1 -See it in SonarQube: http://nemo.sonarsource.org/issues/search#projectUuids=ABCDE|assignees=lo.gin|createdAt=2010-05-1 \ No newline at end of file +See it in SonarQube: http://nemo.sonarsource.org/account/issues#projectUuids=ABCDE|createdAt=2010-05-1 \ No newline at end of file