aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-02-02 16:05:58 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-02-02 16:05:58 +0100
commitec20fce8d932bd19c3f3ed2ed007fe5367f6c2f4 (patch)
tree38d379df42518e737f32fffefceb82fb8febf845 /server
parent00fa8015834b6e92f7043b489689105f0dae70f7 (diff)
parentbcc9fa2f5f463d636cd5c9019fa3ef48a01fef31 (diff)
downloadsonarqube-ec20fce8d932bd19c3f3ed2ed007fe5367f6c2f4.tar.gz
sonarqube-ec20fce8d932bd19c3f3ed2ed007fe5367f6c2f4.zip
Merge pull request #748 from SonarSource/feature/stas/issues-notifications
SONAR-7246 Link of "My New Issues" notification should go the User's Issues page
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/issue/notification/MyNewIssuesEmailTemplate.java3
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/issue/notification/MyNewIssuesEmailTemplateTest/email_with_all_details.txt2
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/issue/notification/MyNewIssuesEmailTemplateTest/email_with_no_assignee_tags_components.txt2
3 files changed, 3 insertions, 4 deletions
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