aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao
diff options
context:
space:
mode:
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>2021-10-11 14:57:05 +0200
committersonartech <sonartech@sonarsource.com>2021-10-13 20:03:34 +0000
commit72ebaa7e1dc6c931fa6d0aaa6addcb0563d65ba8 (patch)
treeedf369daeaf01ed1d1c8f43ee17c98cf647e64bf /server/sonar-db-dao
parent6ee5c4bde3f1a83be80aac479b2c31a27106f439 (diff)
downloadsonarqube-72ebaa7e1dc6c931fa6d0aaa6addcb0563d65ba8.tar.gz
sonarqube-72ebaa7e1dc6c931fa6d0aaa6addcb0563d65ba8.zip
SONAR-15479 updated saving issues from report in the database - added quickFixAvailable support
Diffstat (limited to 'server/sonar-db-dao')
-rw-r--r--server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java b/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java
index 704e41514a0..48798e55759 100644
--- a/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java
+++ b/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java
@@ -140,6 +140,7 @@ public final class IssueDto implements Serializable {
.setIssueCloseDate(issue.closeDate())
.setIssueUpdateDate(issue.updateDate())
.setSelectedAt(issue.selectedAt())
+ .setQuickFixAvailable(issue.isQuickFixAvailable())
// technical dates
.setCreatedAt(now)
@@ -186,6 +187,7 @@ public final class IssueDto implements Serializable {
.setIssueCloseDate(issue.closeDate())
.setIssueUpdateDate(issue.updateDate())
.setSelectedAt(issue.selectedAt())
+ .setQuickFixAvailable(issue.isQuickFixAvailable())
// technical date
.setUpdatedAt(now);
@@ -756,6 +758,7 @@ public final class IssueDto implements Serializable {
issue.setSelectedAt(selectedAt);
issue.setLocations(parseLocations());
issue.setIsFromExternalRuleEngine(isExternal);
+ issue.setQuickFixAvailable(quickFixAvailable != null ? quickFixAvailable : false);
return issue;
}
}