diff options
author | Jean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com> | 2013-08-09 11:40:12 +0200 |
---|---|---|
committer | Jean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com> | 2013-08-09 11:40:12 +0200 |
commit | b9ecdcaecb29b4fa15e7318a5a700da60b637987 (patch) | |
tree | 5da2686b880ee440ab0929071e8439db5d417d42 /plugins | |
parent | c8d4102872968607dd5daf29940be30011b0af6c (diff) | |
download | sonarqube-b9ecdcaecb29b4fa15e7318a5a700da60b637987.tar.gz sonarqube-b9ecdcaecb29b4fa15e7318a5a700da60b637987.zip |
SONAR-4375 Improve issue changelog display by returning names instead of keys for users and action plans
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueHandlers.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueHandlers.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueHandlers.java index 5193e2c4e1a..8d972013fcd 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueHandlers.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueHandlers.java @@ -24,7 +24,9 @@ import org.sonar.api.issue.Issue; import org.sonar.api.issue.IssueHandler; import org.sonar.api.issue.internal.DefaultIssue; import org.sonar.api.issue.internal.IssueChangeContext; +import org.sonar.api.user.User; import org.sonar.core.issue.IssueUpdater; +import org.sonar.core.user.DefaultUser; import javax.annotation.Nullable; @@ -114,7 +116,13 @@ public class IssueHandlers implements BatchExtension { @Override public IssueHandler.Context assign(@Nullable String assignee) { - updater.assign(issue, assignee, changeContext); + updater.assign(issue, new DefaultUser().setLogin(assignee).setName(assignee), changeContext); + return this; + } + + @Override + public IssueHandler.Context assign(@Nullable User user) { + updater.assign(issue, user, changeContext); return this; } |