The purpose is to fix the issue raised during
SONAR-5086 (issue search with both "plan" and "componentRoot" parameters).
This will require a migration script.
The validation should also lead to the removal of the hack on the Issues page (see
Technical details :
The query to be executed in the migration should be something like :
- if root_one and root_two are not null -> use root_two
- if root_one only -> use root_one
- else -> use projects.uuid (on top level, the project_uuid should return itself to facilitate the search)