]> source.dussan.org Git - sonarqube.git/commit
SONAR-8857 support organization in api/qualityprofiles/copy
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 16 Mar 2017 15:40:11 +0000 (16:40 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 23 Mar 2017 16:38:34 +0000 (17:38 +0100)
commit81ca0f0493e3b71fcfe69237c7263eac1a5fe2c4
treee56f57ae11b8b64787ef2e01d6a767a4ff16aadf
parentf90dca125a7109361d59daeb7fefec256f297a08
SONAR-8857 support organization in api/qualityprofiles/copy

- verify permission on the related organization
- create the target profile (if needed) on the same organization
- no need to add the WS parameter "organization" because
"fromKey" is self-sufficient to identify the profile.
server/sonar-server/src/main/java/org/sonar/server/qualityprofile/QProfileCopier.java
server/sonar-server/src/main/java/org/sonar/server/qualityprofile/ws/CopyAction.java
server/sonar-server/src/test/java/org/sonar/server/qualityprofile/QProfileCopierMediumTest.java
server/sonar-server/src/test/java/org/sonar/server/qualityprofile/ws/CopyActionTest.java