aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-common
diff options
context:
space:
mode:
authorLéo Geoffroy <leo.geoffroy@sonarsource.com>2024-02-14 09:25:14 +0100
committersonartech <sonartech@sonarsource.com>2024-02-16 20:02:31 +0000
commit33de33ad99df936004546f37ecbfac62ce73f8d6 (patch)
tree9b2ba82b5dc9d95721e266302721d6429afeed9d /server/sonar-webserver-common
parent119aca6c8cac066f8de9da229e52d2f6213a0406 (diff)
downloadsonarqube-33de33ad99df936004546f37ecbfac62ce73f8d6.tar.gz
sonarqube-33de33ad99df936004546f37ecbfac62ce73f8d6.zip
SONAR-21165 Remove uuid from issues_impacts and rules_default_impacts table
Diffstat (limited to 'server/sonar-webserver-common')
-rw-r--r--server/sonar-webserver-common/src/main/java/org/sonar/server/common/rule/RuleCreator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-webserver-common/src/main/java/org/sonar/server/common/rule/RuleCreator.java b/server/sonar-webserver-common/src/main/java/org/sonar/server/common/rule/RuleCreator.java
index 167c6d3410a..90513cf5687 100644
--- a/server/sonar-webserver-common/src/main/java/org/sonar/server/common/rule/RuleCreator.java
+++ b/server/sonar-webserver-common/src/main/java/org/sonar/server/common/rule/RuleCreator.java
@@ -242,7 +242,7 @@ public class RuleCreator {
if (!CollectionUtils.isEmpty(newRule.getImpacts())) {
newRule.getImpacts().stream()
- .map(impact -> new ImpactDto(uuidFactory.create(), impact.softwareQuality(), impact.severity()))
+ .map(impact -> new ImpactDto(impact.softwareQuality(), impact.severity()))
.forEach(ruleDto::addDefaultImpact);
// Back-map old type and severity from the impact
Map.Entry<SoftwareQuality, org.sonar.api.issue.impact.Severity> impact = ImpactMapper.getBestImpactForBackmapping(
@@ -253,7 +253,7 @@ public class RuleCreator {
// Map old type and severity to impact
SoftwareQuality softwareQuality = ImpactMapper.convertToSoftwareQuality(RuleType.valueOf(type));
org.sonar.api.issue.impact.Severity impactSeverity = ImpactMapper.convertToImpactSeverity(severity);
- ruleDto.addDefaultImpact(new ImpactDto().setUuid(uuidFactory.create())
+ ruleDto.addDefaultImpact(new ImpactDto()
.setSoftwareQuality(softwareQuality)
.setSeverity(impactSeverity))
.setType(type)