inner join snapshots s on s.component_uuid = cp.uuid
inner join analysis_properties ap on ap.analysis_uuid = s.uuid
where
- s.islast = ${_true} and ap.kee = #{analysisPropertyKey, jdbcType=VARCHAR}
+ cp.main_branch_project_uuid is null and s.islast = ${_true} and ap.kee = #{analysisPropertyKey, jdbcType=VARCHAR}
group by ap.text_value
</select>
final int index = i;
ProjectDto project = dbTester.components().insertPrivateProjectDto();
dbTester.components().insertSnapshot(project, s -> s.setLast(true).setUuid("uuid" + index));
+ // branches shouldn't be taken into account
+ dbTester.components().insertProjectBranch(project);
}
+
underTest.insert(dbSession, new AnalysisPropertyDto().setKey(analysisPropertyKey).setValue("git").setAnalysisUuid("uuid0").setUuid("0"));
underTest.insert(dbSession, new AnalysisPropertyDto().setKey(analysisPropertyKey).setValue("svn").setAnalysisUuid("uuid1").setUuid("1"));
underTest.insert(dbSession, new AnalysisPropertyDto().setKey(analysisPropertyKey).setValue("undetected").setAnalysisUuid("uuid2").setUuid("2"));