diff options
author | Eric Giffon <eric.giffon@sonarsource.com> | 2024-12-19 16:27:23 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-12-20 20:03:10 +0000 |
commit | 611b4ce3299d50021c3fd37b532f7ec46e85187c (patch) | |
tree | 46fc47f899ae77d73845da331a936f690505eeda /server/sonar-webserver/src | |
parent | 57439296944b342664d1ab1d42d0502ff28f261a (diff) | |
download | sonarqube-611b4ce3299d50021c3fd37b532f7ec46e85187c.tar.gz sonarqube-611b4ce3299d50021c3fd37b532f7ec46e85187c.zip |
SONAR-24057 Optimize querying of branch measures to only load required measures in memory
Diffstat (limited to 'server/sonar-webserver/src')
2 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryNclocProvider.java b/server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryNclocProvider.java index 332312d85f3..1a0321bc7ec 100644 --- a/server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryNclocProvider.java +++ b/server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryNclocProvider.java @@ -25,7 +25,7 @@ import java.util.List; import java.util.Map; import org.sonar.db.DbClient; import org.sonar.db.DbSession; -import org.sonar.db.measure.ProjectLocDistributionDto; +import org.sonar.telemetry.legacy.ProjectLocDistributionDto; import org.sonar.telemetry.core.AbstractTelemetryDataProvider; import org.sonar.telemetry.core.Dimension; import org.sonar.telemetry.core.Granularity; diff --git a/server/sonar-webserver/src/test/java/org/sonar/server/platform/telemetry/TelemetryNclocProviderTest.java b/server/sonar-webserver/src/test/java/org/sonar/server/platform/telemetry/TelemetryNclocProviderTest.java index 4273dbdbe0f..8d0635fb6a3 100644 --- a/server/sonar-webserver/src/test/java/org/sonar/server/platform/telemetry/TelemetryNclocProviderTest.java +++ b/server/sonar-webserver/src/test/java/org/sonar/server/platform/telemetry/TelemetryNclocProviderTest.java @@ -24,7 +24,7 @@ import org.junit.jupiter.api.Test; import org.mockito.Mockito; import org.sonar.db.DbClient; import org.sonar.db.DbSession; -import org.sonar.db.measure.ProjectLocDistributionDto; +import org.sonar.telemetry.legacy.ProjectLocDistributionDto; import org.sonar.telemetry.core.Dimension; import org.sonar.telemetry.core.Granularity; import org.sonar.telemetry.legacy.ProjectLocDistributionDataProvider; @@ -64,4 +64,3 @@ class TelemetryNclocProviderTest { assertThat(telemetryNclocProvider.getValues()).containsEntry("js", 1500L); } } - |