]> source.dussan.org Git - sonarqube.git/commit
SONAR-2747 Send email when new violations appear on favourite project
authorFabrice Bellingard <bellingard@gmail.com>
Fri, 3 Feb 2012 16:09:26 +0000 (17:09 +0100)
committerFabrice Bellingard <bellingard@gmail.com>
Fri, 3 Feb 2012 16:19:07 +0000 (17:19 +0100)
commit01906e4e61dcde195d2368c092f8471c0894079f
tree2bb68d32a6fd7586c2120dd3eec4492b67b8bc29
parent12552a94eebf5bf80fb6fb3952a9b363d568397e
SONAR-2747 Send email when new violations appear on favourite project

The email is sent only if:
  * the user has set the project as a favourite
  * this is a "last analysis" (= no 'sonar.projectDate' specified)
  * 'since last analysis' period was not removed in the admin page
  * there are new violations (obviously...)
18 files changed:
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/NewViolationsDecorator.java
plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/timemachine/NewViolationsDecoratorTest.java
plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/EmailNotificationsPlugin.java
plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsEmailTemplate.java [new file with mode: 0644]
plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsOnMyFavouriteProject.java [new file with mode: 0644]
plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/reviews/ChangesInReviewAssignedToMeOrCreatedByMe.java
plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsOnMyFavouriteProjectTest.java [new file with mode: 0644]
plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsTemplateTest.java [new file with mode: 0644]
plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties
sonar-batch/src/main/java/org/sonar/batch/components/TimeMachineConfiguration.java
sonar-batch/src/test/java/org/sonar/batch/components/TimeMachineConfigurationTest.java
sonar-core/src/main/java/org/sonar/core/persistence/DaoUtils.java
sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java
sonar-core/src/main/java/org/sonar/core/properties/PropertiesDao.java [new file with mode: 0644]
sonar-core/src/main/java/org/sonar/core/properties/PropertiesMapper.java [new file with mode: 0644]
sonar-core/src/main/resources/org/sonar/core/properties/PropertiesMapper.xml [new file with mode: 0644]
sonar-core/src/test/java/org/sonar/core/properties/PropertiesDaoTest.java [new file with mode: 0644]
sonar-core/src/test/resources/org/sonar/core/properties/PropertiesDaoTest/shouldFindUserIdsForFavouriteResource.xml [new file with mode: 0644]