]> source.dussan.org Git - sonarqube.git/commit
SONAR-2382 Improve the web service 'reviews'
authorsimonbrandhof <simon.brandhof@gmail.com>
Fri, 29 Apr 2011 12:06:08 +0000 (14:06 +0200)
committersimonbrandhof <simon.brandhof@gmail.com>
Fri, 29 Apr 2011 12:09:36 +0000 (14:09 +0200)
commit99d17c7988d86aabc3765e3a63b1f1720a9b816f
tree5c4a5d36f2858168ed1fc7456d99ea0c7754c99e
parent4f21ba8d2162a383cab0324c45c85564cb7dcede
SONAR-2382 Improve the web service 'reviews'

- New class Api::Utils to define some shared methods (around ISO datetime, markdown, ...)

- Move to_json and to_xml methods to RuleFailure and Review models

- Delete the class MarkdownHelper. Method to convert to html is moved to Api::Utils
16 files changed:
sonar-server/src/main/webapp/WEB-INF/app/controllers/api/events_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/api/projects_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/api/resources_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/api/reviews_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/api/timemachine_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/api/violations_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/helpers/markdown_helper.rb [deleted file]
sonar-server/src/main/webapp/WEB-INF/app/helpers/reviews_helper.rb
sonar-server/src/main/webapp/WEB-INF/app/models/api/utils.rb [new file with mode: 0644]
sonar-server/src/main/webapp/WEB-INF/app/models/review.rb
sonar-server/src/main/webapp/WEB-INF/app/models/review_comment.rb
sonar-server/src/main/webapp/WEB-INF/app/models/rule_failure.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