aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/src
diff options
context:
space:
mode:
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-06-25 15:43:44 +0200
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-06-25 15:43:44 +0200
commit6b1771df9beb45445718111655bac551e4aeab6c (patch)
tree8640b29feac58a41f32e148a0599f3987478f41a /sonar-core/src
parent7aced2f231353d1052be85dc98699de295be7045 (diff)
downloadsonarqube-6b1771df9beb45445718111655bac551e4aeab6c.tar.gz
sonarqube-6b1771df9beb45445718111655bac551e4aeab6c.zip
SONAR-4399 Added support for issue filter ownership change (admins only)
Diffstat (limited to 'sonar-core/src')
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/issue/db/IssueFilterMapper.xml1
-rw-r--r--sonar-core/src/test/java/org/sonar/core/issue/db/IssueFilterDaoTest.java1
-rw-r--r--sonar-core/src/test/resources/org/sonar/core/issue/db/IssueFilterDaoTest/should_update-result.xml2
3 files changed, 3 insertions, 1 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueFilterMapper.xml b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueFilterMapper.xml
index 3e908084468..21a2c87cfee 100644
--- a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueFilterMapper.xml
+++ b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueFilterMapper.xml
@@ -85,6 +85,7 @@
shared=#{shared},
description=#{description},
data=#{data},
+ user_login=#{userLogin},
updated_at=current_timestamp
where id=#{id}
</update>
diff --git a/sonar-core/src/test/java/org/sonar/core/issue/db/IssueFilterDaoTest.java b/sonar-core/src/test/java/org/sonar/core/issue/db/IssueFilterDaoTest.java
index 5a2a714ec95..fd3eb8e7e93 100644
--- a/sonar-core/src/test/java/org/sonar/core/issue/db/IssueFilterDaoTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/issue/db/IssueFilterDaoTest.java
@@ -130,6 +130,7 @@ public class IssueFilterDaoTest extends AbstractDaoTestCase {
filterDto.setShared(false);
filterDto.setDescription("All closed issues");
filterDto.setData("statuses=CLOSED");
+ filterDto.setUserLogin("bernard");
dao.update(filterDto);
diff --git a/sonar-core/src/test/resources/org/sonar/core/issue/db/IssueFilterDaoTest/should_update-result.xml b/sonar-core/src/test/resources/org/sonar/core/issue/db/IssueFilterDaoTest/should_update-result.xml
index daf43474984..134411beaf4 100644
--- a/sonar-core/src/test/resources/org/sonar/core/issue/db/IssueFilterDaoTest/should_update-result.xml
+++ b/sonar-core/src/test/resources/org/sonar/core/issue/db/IssueFilterDaoTest/should_update-result.xml
@@ -13,7 +13,7 @@
<issue_filters
id="2"
name="Closed issues"
- user_login="michael"
+ user_login="bernard"
shared="[false]"
description="All closed issues"
data="statuses=CLOSED"