- Analyze a project for the first time on a given version V1 at least two times
- Analyze this project using the next version V2
=> In the project Overview, the new code is defined as "since <Date of first analysis>", instead of "since version V1"
=> In the project Activity, the new code period is defined on the first analysis of version V1, instead of the last analysis
This issue is coming from https://github.com/SonarSource/sonar-enterprise/blob/master/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/period/NewCodePeriodResolver.java#L97.
As long as there's only one version in previous analysis, it will be always the first analysis that will be set as the new code period, even when current analysis is a new version.