Built-in quality profiles are provided by the language plugins (ex: 'Sonar way' in SonarJava).
When creating an organization, built-in quality profiles must be added to the organization.
As a quality profile administrator I want to be able to distinguish built-in QP from others.
The badge "built-in" should be added when a profile name is displayed, for instance in a dropdown.
The isBuiltIn flag must be returned in the following WS:
When upgrading to version 6.5, the existing quality profiles must be renamed with suffix "(outdated copy)" so that they don't conflict with the new built-in profiles that are being created.
As an optimization only the profiles that have been updated at least once by users must be renamed. Others are simply marked as built-in. As a consequence they will be reset even if they were not up-to-date (created by an old version of analyzers).
Built-in profiles must always be present and can't be deleted. The old profiles that have been manually deleted by users should be created back.
- in 5.6 the profile "Sonar way" of SonarJava is created
- administrator creates a profile named "foo" and marks it as "default"
- administrator deletes the profile "Sonar way"
- upgrading to 6.5 should bring the built-in profile "Sonar way" back