}
issue.setIsFromExternalRuleEngine(false);
issue.setLocations(dbLocationsBuilder.build());
+ issue.setQuickFixAvailable(reportIssue.getQuickFixAvailable());
return issue;
}
defaultIssue.setChanged(next.getIsChanged());
defaultIssue.setSendNotifications(next.getSendNotifications());
defaultIssue.setSelectedAt(next.hasSelectedAt() ? next.getSelectedAt() : null);
+ defaultIssue.setQuickFixAvailable(next.getQuickFixAvailable());
for (IssueCache.FieldDiffs protoFieldDiffs : next.getChangesList()) {
defaultIssue.addChange(toDefaultIssueChanges(protoFieldDiffs));
builder.setIsChanged(defaultIssue.isChanged());
builder.setSendNotifications(defaultIssue.mustSendNotifications());
ofNullable(defaultIssue.selectedAt()).ifPresent(builder::setSelectedAt);
+ builder.setQuickFixAvailable(defaultIssue.isQuickFixAvailable());
for (FieldDiffs fieldDiffs : defaultIssue.changes()) {
builder.addChanges(toProtoIssueChanges(fieldDiffs));
optional int64 selectedAt = 37;
repeated Comment comments = 38;
+
+ optional bool quickFixAvailable = 39;
}
message Comment {
.setIssueCloseDate(issue.closeDate())
.setIssueUpdateDate(issue.updateDate())
.setSelectedAt(issue.selectedAt())
+ .setQuickFixAvailable(issue.isQuickFixAvailable())
// technical dates
.setCreatedAt(now)
.setIssueCloseDate(issue.closeDate())
.setIssueUpdateDate(issue.updateDate())
.setSelectedAt(issue.selectedAt())
+ .setQuickFixAvailable(issue.isQuickFixAvailable())
// technical date
.setUpdatedAt(now);
issue.setSelectedAt(selectedAt);
issue.setLocations(parseLocations());
issue.setIsFromExternalRuleEngine(isExternal);
+ issue.setQuickFixAvailable(quickFixAvailable != null ? quickFixAvailable : false);
return issue;
}
}
// Date when issue was loaded from db (only when isNew=false)
private Long selectedAt;
+ private boolean quickFixAvailable;
+
@Override
public String key() {
return key;
return this;
}
+ public boolean isQuickFixAvailable() {
+ return quickFixAvailable;
+ }
+
+ public DefaultIssue setQuickFixAvailable(boolean quickFixAvailable) {
+ this.quickFixAvailable = quickFixAvailable;
+ return this;
+ }
+
@CheckForNull
public FieldDiffs currentChange() {
return currentChange;