From c2953631e83ca0809c293202d0d12e32e47b07fa Mon Sep 17 00:00:00 2001 From: Antoine Vinot Date: Mon, 30 Jan 2023 12:33:54 +0100 Subject: [PATCH] SONAR-18275 Fix App stats present in projects-general-stats telemetry payload --- .../org/sonar/db/measure/LiveMeasureMapper.xml | 3 ++- .../org/sonar/db/project/ProjectMapper.xml | 1 + .../sonar/db/measure/LiveMeasureDaoTest.java | 18 ++++++++++++++++++ .../org/sonar/db/project/ProjectDaoTest.java | 12 ++++++++++++ 4 files changed, 33 insertions(+), 1 deletion(-) diff --git a/server/sonar-db-dao/src/main/resources/org/sonar/db/measure/LiveMeasureMapper.xml b/server/sonar-db-dao/src/main/resources/org/sonar/db/measure/LiveMeasureMapper.xml index 03d57e505bc..2612e083b46 100644 --- a/server/sonar-db-dao/src/main/resources/org/sonar/db/measure/LiveMeasureMapper.xml +++ b/server/sonar-db-dao/src/main/resources/org/sonar/db/measure/LiveMeasureMapper.xml @@ -30,7 +30,8 @@ close=")">#{metricUuid, jdbcType=VARCHAR} and component_uuid in (SELECT p.uuid as uuid - FROM projects p) + FROM projects p + where p.qualifier = 'TRK')