SONAR-11185 Allow portfolio to define projects by tags
* SONAR-11199 Allow selection of no project mode
* Add tags in views definition
* Create api/views/set_tags_mode
* Return tags mode in api/views/show
* Take into account tags during portfolio computation
Delete webhooks and webhook deliveries only once (#667)
- Deletion were done at 3 places when deleting an organization :
-- In the api/organization/delete WS
-- In component cleaner
-- In PurgeDao
- Moreover, the deletion of webhook deliveries in the last 2 classes were not done by project, but by selecting all webhook deliveries of the project and deleting them one by one
* Remove search of tags in rules index
* Refactor IssueIndex#searchTags to use same code as searchAuthors
* Add project to api/issues/tags
* Rename SonarCloudIssueAssignTest to OrganizationIssueAssignTest
* SONAR-11106 Sanitize api/issues/authors
- Return PROTO and JSON response
- Set max value to PAGE_SIZE parameter
* SONAR-11106 Return only allowed authors
* Remove no more needed IssueQuery#checkAuthorization
* SONAR-11106 Add 'organization' to api/issues/authors
- Return only authors from issues belonging to given organization
- Check organization membership
* SONAR-11106 Add 'project' to api/issues/authors
* Move Muppet rule in the BillingTestSuite
* SONAR-11106 Improve IT
Fix false-positive in unit test QualityGateActionTest
java.lang.AssertionError:
Expecting:
<2018-07-20T00:12:15.000>
to be strictly before:
<2018-07-20T00:12:15.000>
at org.sonar.server.badge.ws.QualityGateActionTest.checkError(QualityGateActionTest.java:347)
at org.sonar.server.badge.ws.QualityGateActionTest.return_error_on_private_project(QualityGateActionTest.java:242)
SONAR-11021 Add default QProfile when creating organization
even if the registry do not contains the QualityProfile. BuiltInQProfileRepository must not be used because
the plugin may have been uninstalled and when reinstalled this may break the contract.
SONAR-10945 Prevent access qgates and rules to none members of paid organization
* Add membership check for paid organization in api/qualitygates ws
* Add membership check for paid organization in api/rules ws
* Move membership check in UserSession
* Use UserSession#checkMemebership in QGates and Rules ws
SONAR-10945 Add membership check for paid organization in api/qualityprofiles
* Add membership check for paid organization in api/qualityprofiles/search
* Add membership check for paid organization in api/qualityprofiles/backup
* Add membership check for paid organization in api/qualityprofiles/changelog, compare, export, inheritance
* Add membership check for paid organization in api/qualityprofiles/projects
* Add membership check for paid organization in api/qualityprofiles/show
SONAR-10944 Add subscription flag to organizations
* Create migrations to add and populate ORGANIZATIONS#SUBSCRIPTION
* Handle subscription in insert/update/select of OrganizationDto
* Upgrade/Downgrade update organization subscription
* Return subscription flag in api/organizations/search
* Create new organization as FREE