diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2019-11-19 10:28:55 -0600 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-12-09 20:46:17 +0100 |
commit | ebdae1d5b7916abb7e919c560b04841f0dfd21c6 (patch) | |
tree | dff14e70bbf3d19936e45f17ebc58dc48145586b /server/sonar-webserver-core | |
parent | a98070323ef55ce3934a564e0cf49a5e8fe03971 (diff) | |
download | sonarqube-ebdae1d5b7916abb7e919c560b04841f0dfd21c6.tar.gz sonarqube-ebdae1d5b7916abb7e919c560b04841f0dfd21c6.zip |
SONAR-12673 Fix issue management
Diffstat (limited to 'server/sonar-webserver-core')
2 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/telemetry/TelemetryDataLoaderImpl.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/telemetry/TelemetryDataLoaderImpl.java index a61b758c077..2222c9c80ee 100644 --- a/server/sonar-webserver-core/src/main/java/org/sonar/server/telemetry/TelemetryDataLoaderImpl.java +++ b/server/sonar-webserver-core/src/main/java/org/sonar/server/telemetry/TelemetryDataLoaderImpl.java @@ -114,7 +114,7 @@ public class TelemetryDataLoaderImpl implements TelemetryDataLoader { .setOnlyPrivateProjects(false) .setOrganizationUuid(defaultOrganizationProvider.get().getUuid()) .build(); - data.setNcloc(dbClient.liveMeasureDao().sumNclocOfBiggestLongLivingBranch(dbSession, query)); + data.setNcloc(dbClient.liveMeasureDao().sumNclocOfBiggestBranch(dbSession, query)); } Optional<String> installationDateProperty = internalProperties.read(InternalProperties.INSTALLATION_DATE); diff --git a/server/sonar-webserver-core/src/test/java/org/sonar/server/webhook/WebhookQGChangeEventListenerTest.java b/server/sonar-webserver-core/src/test/java/org/sonar/server/webhook/WebhookQGChangeEventListenerTest.java index cbc18717ad6..079be37fd2b 100644 --- a/server/sonar-webserver-core/src/test/java/org/sonar/server/webhook/WebhookQGChangeEventListenerTest.java +++ b/server/sonar-webserver-core/src/test/java/org/sonar/server/webhook/WebhookQGChangeEventListenerTest.java @@ -199,15 +199,15 @@ public class WebhookQGChangeEventListenerTest { public void onIssueChangesCallsWebhookOnBranch(BranchType branchType) { OrganizationDto organization = dbTester.organizations().insert(); ComponentAndBranch mainBranch = insertMainBranch(organization); - ComponentAndBranch longBranch = insertProjectBranch(mainBranch.component, branchType, "foo"); - SnapshotDto analysis = insertAnalysisTask(longBranch); + ComponentAndBranch nonMainBranch = insertProjectBranch(mainBranch.component, branchType, "foo"); + SnapshotDto analysis = insertAnalysisTask(nonMainBranch); Configuration configuration = mock(Configuration.class); - QGChangeEvent qualityGateEvent = newQGChangeEvent(longBranch, analysis, configuration, null); + QGChangeEvent qualityGateEvent = newQGChangeEvent(nonMainBranch, analysis, configuration, null); mockWebhookEnabled(qualityGateEvent.getProject()); underTest.onIssueChanges(qualityGateEvent, CHANGED_ISSUES_ARE_IGNORED); - verifyWebhookCalled(longBranch, analysis, qualityGateEvent.getProject()); + verifyWebhookCalled(nonMainBranch, analysis, qualityGateEvent.getProject()); } @DataProvider |