The purpose is to provide a cache mechanism that can be used in issues mode.
The cache should be pre-loaded with all the data needed to run analysis, either implicitly or explicitly. Issues mode will then always rely on cache.
Following changes are needed:
- Add syncProject(String projectKey) in Batch API;
- Add start(boolean forceSync) in Batch API;
- Always try to do a sync of server scope data on startup;
- When analysing a project, ensure that all data is in cache;
- Project sync will need a specific logic to fetch all the data that might be required by any analysis on the project;