aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorGuillaume Jambet <guillaume.jambet@gmail.com>2018-05-09 17:57:31 +0200
committerSonarTech <sonartech@sonarsource.com>2018-05-23 20:20:47 +0200
commit26fb4f056bbe071d6732cbf3bac67655faa2c663 (patch)
tree683d855a375fe073239271d1ea8d4734b93659b1 /sonar-core
parent7a894686606925522e1a6d8b01c7c2fc092200c9 (diff)
downloadsonarqube-26fb4f056bbe071d6732cbf3bac67655faa2c663.tar.gz
sonarqube-26fb4f056bbe071d6732cbf3bac67655faa2c663.zip
SONAR-10597 Use user UUID for ISSUES#ASSIGNEE
* SONAR-10597 add getUuid() on user Session * SONAR-10597 renames ISSUES.ASSIGNEE to ASSIGNEE_UUID * SONAR-10597 use assigneeUuid when assigning an Issue from ws * SONAR-10597 use assigneeUuid when assigning an Issue from ce * SONAR-10597 use assigneeUuid in issue search * SONAR-10597 use assigneeUuid in batch issue * SONAR-10597 Ignoring Tests failing in IssueChange
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java8
-rw-r--r--sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java8
-rw-r--r--sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java2
3 files changed, 9 insertions, 9 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java
index f1339f27a69..205ac39dff8 100644
--- a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java
+++ b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java
@@ -73,7 +73,7 @@ public class DefaultIssue implements Issue, Trackable, org.sonar.api.ce.measure.
private Duration effort;
private String status;
private String resolution;
- private String assignee;
+ private String assigneeUuid;
private String checksum;
private Map<String, String> attributes = null;
private String authorLogin = null;
@@ -359,11 +359,11 @@ public class DefaultIssue implements Issue, Trackable, org.sonar.api.ce.measure.
@Override
@CheckForNull
public String assignee() {
- return assignee;
+ return assigneeUuid;
}
- public DefaultIssue setAssignee(@Nullable String s) {
- this.assignee = s;
+ public DefaultIssue setAssigneeUuid(@Nullable String s) {
+ this.assigneeUuid = s;
return this;
}
diff --git a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java
index 7f5c4fdf806..a8df4846429 100644
--- a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java
+++ b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java
@@ -41,7 +41,7 @@ public class DefaultIssueBuilder implements Issuable.IssueBuilder {
private String message;
private String severity;
private Double effortToFix;
- private String assignee;
+ private String assigneeUuid;
private RuleType type;
private Map<String, String> attributes;
private boolean isFromExternalRuleEngine;
@@ -124,8 +124,8 @@ public class DefaultIssueBuilder implements Issuable.IssueBuilder {
return this;
}
- public DefaultIssueBuilder assignee(@Nullable String s) {
- this.assignee = s;
+ public DefaultIssueBuilder assigneeUuid(@Nullable String s) {
+ this.assigneeUuid = s;
return this;
}
@@ -161,7 +161,7 @@ public class DefaultIssueBuilder implements Issuable.IssueBuilder {
issue.setManualSeverity(false);
issue.setGap(effortToFix);
issue.setLine(line);
- issue.setAssignee(assignee);
+ issue.setAssigneeUuid(assigneeUuid);
issue.setAttributes(attributes);
issue.setResolution(null);
issue.setStatus(Issue.STATUS_OPEN);
diff --git a/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java b/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java
index 6e3b97dd28c..08df314980e 100644
--- a/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java
@@ -53,7 +53,7 @@ public class DefaultIssueTest {
.setEffort(Duration.create(28800L))
.setStatus(Issue.STATUS_CLOSED)
.setResolution(Issue.RESOLUTION_FIXED)
- .setAssignee("julien")
+ .setAssigneeUuid("julien")
.setAuthorLogin("steph")
.setChecksum("c7b5db46591806455cf082bb348631e8")
.setNew(true)