Skip to content

Commit

Permalink
SONAR-5912 fix notification of issue changes during analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Brandhof committed Jan 26, 2015
1 parent 3de9100 commit 31726f3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Expand Up @@ -123,6 +123,7 @@ private DefaultIssue toIssue(ComputationContext context, ReportIssue issue) {
defaultIssue.setChanged(issue.isChanged());
defaultIssue.setNew(issue.isNew());
defaultIssue.setSelectedAt(issue.selectedAt());
defaultIssue.setSendNotifications(issue.mustSendNotifications());
return defaultIssue;
}

Expand Down
Expand Up @@ -54,6 +54,7 @@ public class ReportIssue {
private Long selectedAt;
private String diffFields;
private boolean isChanged;
private boolean mustSendNotification;


public ReportIssue setKey(String key) {
Expand Down Expand Up @@ -286,4 +287,12 @@ public boolean isChanged() {
return isChanged;
}

public ReportIssue setMustSendNotification(boolean mustSendNotification) {
this.mustSendNotification = mustSendNotification;
return this;
}

public boolean mustSendNotifications() {
return mustSendNotification;
}
}
Expand Up @@ -82,6 +82,7 @@ private ReportIssue toReportIssue(DefaultIssue issue) {
.setSelectedAt(issue.selectedAt())
.setDiffFields(toString(issue.currentChange()))
.setTags(issue.tags())
.setMustSendNotification(issue.mustSendNotifications())
.setChanged(issue.isChanged());
}

Expand Down

0 comments on commit 31726f3

Please sign in to comment.