]> source.dussan.org Git - sonarqube.git/commit
SONAR-2520 Add support for RESOLVED and REOPENED statuses for reviews
authorFabrice Bellingard <bellingard@gmail.com>
Wed, 15 Jun 2011 13:07:28 +0000 (15:07 +0200)
committerFabrice Bellingard <bellingard@gmail.com>
Wed, 15 Jun 2011 13:07:28 +0000 (15:07 +0200)
commita4f0b855424d328fdf02821fcd0a32087f7a1e05
treed956f4cf7c9d108e0c96fa9284da4eb70ddd7d34
parented54ab5b3084d39287c6d14a75f9848bddd3550d
SONAR-2520 Add support for RESOLVED and REOPENED statuses for reviews

- Modifications on the Web UI side to allow to resolve reviews
- Modifications on the batch side to reopen reviews that were
  specified as resolved but the violation has not been fixed
- Modifications on the WS server side to allow to change the status
  of a review to RESOLVED or REOPENED
- Modifications on the WS client to reflect those server side changes
16 files changed:
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/CloseReviewsDecorator.java
plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/sensors/CloseReviewsDecoratorTest.java
plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/CloseReviewsDecoratorTest/fixture.xml
plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/CloseReviewsDecoratorTest/shouldCloseReviewWithoutCorrespondingViolation-result.xml
plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/CloseReviewsDecoratorTest/shouldReopenResolvedReviewWithNonFixedViolation-result.xml [new file with mode: 0644]
sonar-server/src/main/webapp/WEB-INF/app/controllers/api/reviews_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/models/review.rb
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_violation.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_review.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/reviews/index.html.erb
sonar-server/src/main/webapp/images/status/REOPENED.png [new file with mode: 0644]
sonar-server/src/main/webapp/images/status/RESOLVED.png [new file with mode: 0644]
sonar-server/src/main/webapp/stylesheets/style.css
sonar-ws-client/src/main/java/org/sonar/wsclient/services/ReviewUpdateQuery.java
sonar-ws-client/src/test/java/org/sonar/wsclient/services/ReviewUpdateQueryTest.java