import org.sonar.api.server.ws.Response;
import org.sonar.api.server.ws.WebService;
import org.sonar.server.computation.AnalysisReportQueue;
-import org.sonar.server.computation.AnalysisReportTask;
import org.sonar.server.computation.AnalysisReportTaskLauncher;
import org.sonar.server.computation.ComputationService;
analysisReportQueue.add(projectKey, Long.valueOf(snapshotId));
- // TODO remove synchronization as soon as it won't break ITs !
- (new AnalysisReportTask(analysisReportQueue, computationService)).run();
-
analysisTaskLauncher.startAnalysisTaskNow();
}
}
public List<ComputationStep> steps() {
List<ComputationStep> steps = Lists.newArrayList();
- steps.add(pico.getComponentByType(SynchronizeProjectPermissionsStep.class));
- steps.add(pico.getComponentByType(SwitchSnapshotStep.class));
- steps.add(pico.getComponentByType(InvalidatePreviewCacheStep.class));
- steps.add(pico.getComponentByType(ComponentIndexationInDatabaseStep.class));
- steps.add(pico.getComponentByType(DataCleanerStep.class));
- steps.add(pico.getComponentByType(IndexProjectIssuesStep.class));
+ steps.add(pico.getComponentByType(SynchronizeProjectPermissionsStep.class)); // project only
+ steps.add(pico.getComponentByType(SwitchSnapshotStep.class)); // project & views
+ steps.add(pico.getComponentByType(InvalidatePreviewCacheStep.class)); // project only
+ steps.add(pico.getComponentByType(ComponentIndexationInDatabaseStep.class)); // project & views
+ steps.add(pico.getComponentByType(DataCleanerStep.class)); // project & views
+ steps.add(pico.getComponentByType(IndexProjectIssuesStep.class)); // project only
return ImmutableList.copyOf(steps);
}