Simon Brandhof
156eaff960
SONAR-983 index existing projects during upgrade
...
+ remove unused SELECT operations from MyBatis dao
2011-12-19 17:23:03 +01:00
Evgeny Mandrikov
fe5480b895
SONAR-3090 Remove DUPLICATIONS_INDEX.ID
...
In order to do this - remove entity DuplicationBlock and use native
query in PurgeUtils.
2011-12-19 19:32:53 +04:00
Simon Brandhof
c5edb54175
SONAR-983 first implementation of the search engine of projects, directories and files
...
* The POST request to the URL /search/reset starts the indexation of resources
* The search engine is available at /search
2011-12-19 15:18:09 +01:00
Fabrice Bellingard
610521d0c0
SONAR-2662 Add missing files linked to new table "action_plans"
2011-12-19 14:25:24 +01:00
Fabrice Bellingard
f8f1e54873
SONAR-2662 Create action plans which are a set of manual reviews
...
- Create the service to manage action plans
2011-12-19 08:36:48 +01:00
Simon Brandhof
64de319d4b
Move org.sonar.jpa.dialect to org.sonar.persistence.dialect and refactor DialectRepository
2011-12-16 19:39:40 +01:00
Simon Brandhof
898957b301
SONAR-983 create table RESOURCE_INDEX
...
The related myBatis classes are in the package org.sonar.persistence.resource
2011-12-16 19:19:43 +01:00
Simon Brandhof
93de024100
SONAR-1929 do not register dashboards which name already exits
...
+ remove the useless column DASHBOARDS.KEE
2011-12-16 13:08:40 +01:00
Evgeny Mandrikov
8384ad87cd
Fix violation, add test
2011-12-16 00:24:47 +04:00
Simon Brandhof
b84f330304
SONAR-1929 refactoring of the extension point Dashboard
2011-12-15 17:00:18 +01:00
Simon Brandhof
f149f41b21
SONAR-3034 API: default value of WidgetProperty is not injected in Ruby widgets
...
The column WIDGET_PROPERTIES.VALUE_TYPE is removed because it duplicates the Java extensions.
2011-12-15 16:28:55 +01:00
Simon Brandhof
e4e358dc24
rename the constant ReviewDto.STATUS_OPENED to STATUS_OPEN
2011-12-14 19:12:27 +01:00
Simon Brandhof
a547283bb4
Decrease visibility of some methods of org.sonar.persistence.review.ReviewQuery
2011-12-14 17:41:48 +01:00
Fabrice Bellingard
7979e9dbfe
Sonar Persistence API refactoring
...
- Class mapped to tables should now be named "MyTableDto"
- DTOs, DAOs and Mappers of a same concern should be packed in a
single package, allowing to use package visibility amongst them.
=> org.sonar.persistence has been reorganized following those rules.
2011-12-14 16:45:32 +01:00
Fabrice Bellingard
5772c4892c
SONAR-1929 Fix problem with MyBatis on Oracle
2011-12-14 15:10:52 +01:00
Fabrice Bellingard
65cb425e56
SONAR-1929 Modify the new DashboardTemplate API
...
- Replace the annotation-based one with a POJO one
- Fix some issues based on Simon's feedback
2011-12-13 15:40:56 +01:00
Simon Brandhof
c8eb33221e
SONAR-2973 fix the severity of violations if manually set by end-users
2011-12-12 18:20:43 +01:00
Fabrice Bellingard
a4bb86aa2c
SONAR-1929 New extension point: dashboard template
...
- Create API
- Make required DB modifications (on MyBatis side)
* new 'loaded_template' table
* new 'kee' column on 'dashboards' table
- Create startup RegisterProvidedTemplates
- Create 2 first implementations:
* the main Dashboard
* a simple Hotspot dashboard (will be done in another ticket)
- Update migration scripts (remove creation of main dashboard)
2011-12-12 17:58:19 +01:00
Simon Brandhof
dceec13d5c
Fix some violations
2011-12-12 11:51:24 +01:00
Simon Brandhof
5bfd55625c
SONAR-2973 replace RULE_FAILURES_OVERRIDDEN_SEVERITY by REVIEWS.MANUAL_SEVERITY (boolean)
2011-12-12 10:45:15 +01:00
Simon Brandhof
235d68db99
Fix MyBatis integration tests with MsSQL
2011-12-09 15:16:21 +01:00
Simon Brandhof
926a2012da
Fix integration tests of MyBatis on MsSQL. Table names must be lower-case.
2011-12-09 10:06:33 +01:00
Evgeny Mandrikov
62fe91e16c
Increase size of RULE_FAILURES.COMMITTER to 100
2011-12-08 22:18:36 +04:00
Simon Brandhof
c9f57885a2
SONAR-2973 add the column RULE_FAILURES.OVERRIDDEN_SEVERITY (BOOLEAN)
...
The name is not really sexy. If true, then the violation severity has been explicitly changed by user so it must not be reset when analyzing project.
2011-12-08 19:07:45 +01:00
Evgeny Mandrikov
1caf2de118
Add RULE_FAILURES.COMMITTER
...
Note that this field is experimental and should not be used by plugins,
even if it can be accessed via API classes.
2011-12-08 16:50:36 +04:00
simonbrandhof
a0397d033a
Try to fix DbUnit tests on MSSQL
2011-12-07 22:19:37 +01:00
simonbrandhof
e0d98a29f7
Fix iBatis ReviewMapper.xml for MsSQL
2011-12-07 11:33:51 +01:00
Simon Brandhof
81440e3824
Fix compatibility of DbUnit with Oracle (lack of boolean type)
2011-12-06 18:04:22 +01:00
Simon Brandhof
e16c4cb07b
Fix creation of Oracle sequences in integration tests of MyBatis
2011-12-06 17:07:45 +01:00
Simon Brandhof
4ce69589ed
Try to fix Oracle tests
2011-12-06 16:13:20 +01:00
Simon Brandhof
6fcc40818b
SONAR-1974 automatically close reviews that relate to resolved manual violations
2011-12-05 17:05:21 +01:00
Simon Brandhof
801627b7da
Remove INFO logs in unit tests and fix Oracle tests
2011-12-05 15:25:26 +01:00
Simon Brandhof
331b674d41
Fix some violations
2011-12-05 12:39:26 +01:00
simonbrandhof
ee09f48581
SONAR-1974 inject manual violations into batch
2011-12-04 23:24:33 +01:00
simonbrandhof
20dd032042
SONAR-3052 add dependency on Guava 10
2011-12-04 20:50:44 +01:00
Simon Brandhof
52338dd026
Add log to debug integration tests with Oracle
2011-12-02 15:53:16 +01:00
Simon Brandhof
7be978a801
Add missing header + remove hibernate logs when executing unit tests
2011-12-02 15:32:31 +01:00
Simon Brandhof
86b6f9ee96
Fix DaoTestCase for Oracle
...
We didn't succeed in using java.sql.DatabaseMetaData#getTables() on Oracle.
2011-12-02 15:03:03 +01:00
Simon Brandhof
2ee647204c
Table names are not correctly loaded in DaoTestCase
2011-12-02 14:42:20 +01:00
Simon Brandhof
2286c644b4
Add logs to DaoTestCase in order to list the TRUNCATE commands
...
+ Unit tests must log with level INFO
2011-12-02 14:29:43 +01:00
Simon Brandhof
7e4637f22c
Fix typo in RuleDaoTest
2011-12-02 10:07:02 +01:00
Simon Brandhof
c332bf1bcc
SONAR-1974 refactor tables RULE_FAILURES and REVIEWS
...
* Rollback the previous changes on RULE_FAILURES : SNAPSHOT_ID NULLABLE and new column RESOURCE_ID
* Add the columns REVIEWS.RULE_ID (nullable) and MANUAL_VIOLATION (boolean)
* Add experimental MyBatis mapper for reviews
* Add the fields manualViolation (boolean) and permanentId to org.sonar.api.rules.Violation
2011-12-02 10:01:04 +01:00
Simon Brandhof
8f3354cc0c
Allow criteria with null values in DatabaseSession#getResults(Class, Object... criteria)
2011-12-01 14:48:13 +01:00
Simon Brandhof
480ee7b25c
Escape the value of sonar.jdbc.schema on Oracle
2011-12-01 14:48:12 +01:00
Simon Brandhof
76c29aec36
SONAR-3045 Guess the property sonar.jdbc.driverClassName
2011-11-30 11:48:13 +01:00
Simon Brandhof
a520a87e29
SONAR-1974 Add RULE_FAILURES.RESOURCE_ID
2011-11-28 17:30:29 +01:00
Simon Brandhof
c7ea2f0020
SONAR-1974 RULE_FAILURES.SNAPSHOT_ID must be nullable
2011-11-28 16:37:03 +01:00
Simon Brandhof
36f47f4b53
SONAR-3029 API: allow to have different severities for violations related to the same rule
2011-11-24 17:18:30 +01:00
Fabrice Bellingard
9161f2e076
SONAR-2945 Synchronize review title&line with corresponding violation
...
The message and the line of a violation linked to a review are not
updated in the review detail when the violation changes.
2011-11-23 16:50:38 +01:00
Evgeny Mandrikov
39807884c8
SONAR-3023 Increase the size for column "qualifier" in DB
...
Tables SNAPSHOTS and PROJECTS.
2011-11-23 17:21:15 +04:00
Evgeny Mandrikov
5de4905238
Reformat schema-derby.ddl and remove unused sonar-test.ddl
2011-11-23 17:20:52 +04:00
simonbrandhof
e2947461a1
SONAR-2975 fix typo in Oracle ALTER SESSION statement
2011-11-14 22:48:09 +01:00
simonbrandhof
fc3d5f3507
SONAR-2975 refactor the activerecord configuration
2011-11-14 22:36:08 +01:00
Simon Brandhof
4303fe5ba0
SONAR-2975 Rename the property sonar.hibernate.default_schema to sonar.jdbc.schema
...
MyBatis mappers are refactored at the same time. Schema is not explicitely used in SQL requests anymore. Schema is
automatically handled by the connection pool (commons dbcp) for Oracle and PostgreSQL.
2011-11-14 19:05:32 +01:00
Simon Brandhof
cab2f0e2a5
Remove HSQLDB from unit tests
2011-11-10 16:22:12 +01:00
Simon Brandhof
4869dfedbf
MyBatis: prefix SQL requests with schema, when available.
...
Add support for integration tests, hosted at SonarSource.
2011-11-10 16:07:11 +01:00
Simon Brandhof
ec0f22ebfa
Minor: replace String#indexOf()<0 by String#contains()
2011-11-10 13:22:26 +01:00
Evgeny Mandrikov
30161cdacf
Use Derby for unit tests instead of HSQL, remove unused code
2011-11-10 15:25:31 +04:00
simonbrandhof
a69fbcc94d
Define mybatis version in root pom
2011-11-10 07:36:38 +01:00
Eric Hartmann
6c2b544556
Merge branch 'master' of github.com:SonarSource/sonar
2011-11-09 13:27:20 +01:00
Eric Hartmann
b313be3b64
Upgrade version to 2.13-SNAPSHOT
2011-11-09 13:26:39 +01:00
Evgeny Mandrikov
c50313a6f3
Improve EmbeddedDatabaseTest
2011-11-09 13:23:17 +04:00
simonbrandhof
2d37e6afa3
fix violations
2011-11-07 22:58:12 +01:00
Simon Brandhof
93e0c16896
Fix some violations
2011-11-02 19:22:04 +01:00
Evgeny Mandrikov
5934c582ba
Simplify MyBatis tests by reusing AbstractDbUnitTestCase
2011-11-02 21:11:52 +04:00
Evgeny Mandrikov
f01f06c9c2
Disable creation of derby.log during execution of unit tests
2011-11-02 20:15:00 +04:00
simonbrandhof
d370ff3d3d
SONAR-2962 Add an index on dependencies.project_snapshot_id to improve performance
2011-11-02 07:50:52 +01:00
simonbrandhof
03f9d9b441
SONAR-2952 move integration test metrics from jacoco plugin to core
2011-11-01 22:01:31 +01:00
Evgeny Mandrikov
e8886ef578
Fix DuplicationDaoTest
...
Other tests can stuck if connection not closed.
2011-11-02 00:54:55 +04:00
Evgeny Mandrikov
b425105dd5
Improve DuplicationDaoTest
2011-11-01 21:37:45 +04:00
simonbrandhof
fff6552716
Fix mybatis mapping of DUPLICATIONS_INDEX on Oracle
2011-11-01 08:04:27 +01:00
simonbrandhof
3d544314e5
Improve insertion of rows in DUPLICATIONS_INDEX: use BATCH mode
2011-11-01 08:02:22 +01:00
Evgeny Mandrikov
f321e371a9
SONAR-2642 Support Oracle DB for cross-project CPD
2011-10-31 21:30:06 +04:00
Evgeny Mandrikov
b4b0ff15e0
SONAR-2642 Support MSSQL DB for cross-project CPD
2011-10-31 21:30:05 +04:00
Evgeny Mandrikov
6e9ec5e893
SONAR-2956 Support Boolean type with Derby
...
- Change DDL to use BOOLEAN instead of SMALLINT
- Modify Hibernate dialect
- Modify activerecord-jdbc-adapter
(ideas were taken from arjdbc/postgresql/adapter.rb)
- Use Derby for unit tests instead of HSQL and fix incorrect tests
2011-10-31 20:18:21 +04:00
Evgeny Mandrikov
78e5033d8c
SONAR-2642 Support Oracle DB for cross-project CPD
2011-10-29 21:09:37 +04:00
Simon Brandhof
fea7fba69e
SONAR-2642 use MyBatis ScriptRunner + improve unit test logs + prepare migration of hibernate unit tests on derby
2011-10-27 19:51:36 +02:00
Simon Brandhof
851fee23db
Improve boolean parameters of Hibernate HQL queries
2011-10-27 19:51:36 +02:00
Evgeny Mandrikov
2b140b9700
SONAR-2642 Use MyBatis instead of Hibernate for CPD
2011-10-27 15:32:49 +04:00
Simon Brandhof
a589e2539c
SONAR-2642 add DAOs to picocontainer + improve unit tests
2011-10-26 18:23:20 +02:00
Simon Brandhof
28e68ed90b
SONAR-2642 do not duplicate derby DDL files
2011-10-26 11:49:09 +02:00
Simon Brandhof
1abe0872fe
SONAR-2642 improve unit test of mybatis mappers
2011-10-25 18:20:20 +02:00
Simon Brandhof
eb25424469
SONAR-2642 add unit tests
2011-10-25 18:03:27 +02:00
Simon Brandhof
3c07047ac5
SONAR-2642 first step to integration mybatis
2011-10-25 16:20:15 +02:00
Evgeny Mandrikov
ba361714c6
Fix violations
2011-10-25 12:12:07 +04:00
Fabrice Bellingard
9db29bb6b6
SONAR-2919 Alert/Profile/Version event sensors fill "created_at" col.
2011-10-24 15:35:41 +02:00
Fabrice Bellingard
d31106672f
SONAR-2919 Update Events table
...
Migration script:
- name column => 400
- description column => 4000
- data column removed
- tries to attach snapshots to events that do not have one
2011-10-24 13:06:12 +02:00
Evgeny Mandrikov
1e1186f78e
Fix violations
2011-10-24 12:35:56 +04:00
Simon Brandhof
a2c39ffcb9
Fix unit test to bypass the bug SONAR-2927
2011-10-21 11:33:19 +02:00
Simon Brandhof
eab3961063
Remove some DEBUG logs when building plugin classloaders
2011-10-19 15:30:09 +02:00
Simon Brandhof
2800245cbd
SONAR-2861 Remove unused classes ResourceDatabaseConfiguration and ProjectConfiguration
2011-10-10 11:02:52 +02:00
simonbrandhof
b98f0e47c2
SONAR-2719 add timestamp to maven logs
2011-10-09 22:31:55 +02:00
simonbrandhof
45e2d5db12
SONAR-2881 Do not rebuild the WAR file when changing conf/logback.xml
2011-10-09 18:44:11 +02:00
simonbrandhof
ef5bf7fdec
SONAR-2861 New Configuration API
...
The component org.apache.commons.Configuration is still available but plugins should use org.sonar.api.config.Settings.
It also implies the following issues :
SONAR-2870 do not rebuild the WAR file when editing sonar.properties
SONAR-2869 allow to use the annotations @Properties/@Property on extensions
2011-10-07 13:36:25 +02:00
Simon Brandhof
a02d4600fe
Fix NPE in CacheRuleFinder
2011-09-21 15:46:20 +02:00
Simon Brandhof
32cb2074b7
Upgrade version to 2.12-SNAPSHOT
2011-09-16 08:55:05 +02:00
Simon Brandhof
ebb9325079
Fix loading of Java configuration when Ruby on Rails inserts new rows
2011-09-15 10:56:39 +02:00
Evgeny Mandrikov
092ad0bbc8
SONAR-1091 CPD over different projects
...
* Fix SQL for Oracle and Derby.
* Rename table clone_blocks to duplications_index.
* The use of "sonar.branch" should deactivate detection of cross-project
duplications.
* Show info about used engine.
* Set size of block - 10.
2011-09-07 17:52:49 +04:00
Simon Brandhof
13d5c77e69
SONAR-2522 Improve the batch requests on the RULES table
2011-09-07 15:46:33 +02:00
Simon Brandhof
a760c4d2d1
SONAR-2587 SONAR-2549 Fix schema conflicts on Oracle and PostgreSQL
2011-09-06 18:09:03 +02:00
Evgeny Mandrikov
5ff8c8c74e
SONAR-1091 CPD over different projects
...
* Improve table clone_blocks and so DbCloneIndex.
* Add purge of old clone blocks.
2011-09-02 00:16:21 +04:00
Evgeny Mandrikov
7cf051c0f7
SONAR-1091 Add CPD over different projects
...
* Add table clone_blocks
* Add DbCloneIndex, which can be activated in sonar-cpd-plugin using
property "sonar.cpd.cross_project=true"
2011-09-01 00:46:32 +04:00
Simon Brandhof
8a492ff267
Merge branch 'release-2.10'
2011-08-18 11:20:55 +02:00
Simon Brandhof
6b0cc08317
SONAR-75 implement negative cache of rule descriptions
2011-08-18 11:13:14 +02:00
Simon Brandhof
f82a857673
Merge branch 'release-2.10'
2011-08-17 18:03:52 +02:00
Simon Brandhof
17aeea97bd
SONAR-75 Add cache of rule descriptions
2011-08-17 17:53:18 +02:00
Simon Brandhof
804d3141d8
SONAR-2655 define toString() on all the hibernate models
2011-08-16 18:49:05 +02:00
Simon Brandhof
4d40b9f538
Revert pom versions to 2.11-SNAPSHOT after merging branch 2.10
2011-08-15 15:53:48 +02:00
Simon Brandhof
5355a78c8e
Merge branch 'release-2.10'
2011-08-15 15:50:26 +02:00
simonbrandhof
9cbf7d1d02
SONAR-2692 API: allow plugins to auto-disable on server startup
2011-08-11 23:48:48 +02:00
Simon Brandhof
9b84ef3a74
[maven-release-plugin] prepare for next development iteration
2011-08-09 11:25:45 +02:00
Simon Brandhof
0196b85b64
[maven-release-plugin] prepare release 2.10-RC2
2011-08-09 11:25:44 +02:00
Simon Brandhof
dbe4d28634
Upgrade version to 2.11-SNAPSHOT
2011-08-05 17:55:10 +02:00
Simon Brandhof
1bec1c3a77
Fix notifications with MySQL
2011-08-04 17:24:39 +02:00
Simon Brandhof
1f5682409a
Fix new violations
2011-08-02 18:18:07 +02:00
Simon Brandhof
c8c4752cf3
SONAR-75 support GWT components integrated to core
2011-08-01 16:10:08 +02:00
Simon Brandhof
93d8dec0e5
SONAR-75 rule search engine supports localized titles
2011-07-29 17:25:22 +02:00
Simon Brandhof
c0b2515521
SONAR-75 rename i18n bundles to l10n bundles
...
Article from the W3C :
Localization refers to the adaptation of a product, application or document content to meet the language, cultural and other requirements of a specific target market (a "locale").
Internationalization is the design and development of a product, application or document content that enables easy localization for target audiences that vary in culture, region, or language.
2011-07-29 14:06:50 +02:00
Simon Brandhof
402f8958a4
SONAR-75 Improve i18n API
...
- The extension point LanguagePack is not required anymore
- No error logs when rule description is not available in all locales
- Increase code coverage and decrease complexity
2011-07-29 12:09:43 +02:00
Simon Brandhof
b6d37c5e6c
SONAR-75 refactor I18nManager
2011-07-28 14:44:57 +02:00
Evgeny Mandrikov
b56b994e0e
SONAR-2596 Reduce number of arguments for NotificationService constructor
2011-07-28 11:17:54 +04:00
Simon Brandhof
2ef985b460
SONAR-2644 Rule name should be optional in XML declaration files
2011-07-26 11:55:44 +02:00
Evgeny Mandrikov
6acbf886c2
Fix CloseReviewsDecorator for Derby and move Review entity from sonar-plugin-api to sonar-core
2011-07-26 00:00:59 +04:00
Evgeny Mandrikov
df3a115737
Add method findById to UserFinder and make it available as BatchComponent
2011-07-25 19:36:21 +04:00
Evgeny Mandrikov
b3a4819ffd
Add unit test for UserFinder
2011-07-22 19:01:35 +04:00
Evgeny Mandrikov
957e62ce77
SONAR-2607 Provide email notifications on review changes
...
* Add email templates.
* Add server component - UserFinder.
2011-07-22 18:52:15 +04:00
Evgeny Mandrikov
5f730dc9ed
SONAR-2596,SONAR-2600 Improve notification mechanism
...
* Persist notifications into DB for later delivery.
* Add sonar-email-plugin, which sends notifications by email.
2011-07-20 19:02:49 +04:00
Simon Brandhof
677a46cbe3
Remote the column MANUAL_MEASURES.URL + improve IE7 rendering
2011-07-20 15:35:56 +02:00
simonbrandhof
bd5bd39acf
SONAR-2628 Add a page to manage manual measures
2011-07-19 23:02:36 +02:00
Evgeny Mandrikov
a83c83f8e1
SONAR-2596 Add an event notification mechanism
...
For the moment works only on server-side and no data persisted into DB.
As a proof of concept - write message to log when comment was added to
review.
2011-07-18 12:16:11 +04:00
Evgeny Mandrikov
f0f5b27af2
Add Review model
2011-07-15 20:14:17 +04:00
simonbrandhof
896ec34335
SONAR-2610 support url and description of manual measures
2011-07-14 19:15:41 +02:00
simonbrandhof
8d54280312
SONAR-2610 web service for manual measures + copy manual measures during analysis
2011-07-14 18:19:52 +02:00
Simon Brandhof
1396327028
SONAR-2610 Replace the table ASYNC_MEASURES_SNAPSHOTS by MANUAL_MEASURES
2011-07-12 17:29:27 +02:00
Simon Brandhof
9be64edfd1
SONAR-2583 Remove the unused table PARAMETERS
2011-07-11 16:05:48 +02:00
Simon Brandhof
12160e3279
Upgrade version to 2.10-SNAPSHOT
2011-07-11 15:35:49 +02:00
simonbrandhof
43af9284ca
temporary reverting to 2.9-SNAPSHOT
2011-07-10 12:05:56 +02:00
simonbrandhof
0a779207ed
Upgrade to version 2.10-SNAPSHOT
2011-07-10 09:18:17 +02:00
Simon Brandhof
1063d63ad0
SONAR-2505 core components which write to database are disabled on dry runs
2011-06-15 10:56:24 +02:00
Evgeny Mandrikov
1495549694
Remove dependency on classworlds - use only plexus-classworlds
2011-06-13 22:48:21 +04:00
simonbrandhof
78e9b96a51
Merge remote branch 'upstream/master'
2011-06-10 15:24:57 +02:00
simonbrandhof
23d3065411
SONAR-2507 support deprecated directory /extensions/rules/
2011-06-10 14:06:37 +02:00
simonbrandhof
e9957c5d40
SONAR-2507 remove the tables PLUGINS and PLUGIN_FILES
2011-06-10 11:31:50 +02:00
simonbrandhof
d574f6dd70
SONAR-2507 Batch must load plugins without connecting to database
2011-06-10 00:15:37 +02:00
Evgeny Mandrikov
2233993388
SONAR-2495 Correctly deregister JDBC Driver to prevent memory leaks
...
DriverDatabaseConnector should register only one instance of
DriverProxy in DriverManager and also should perform deregistration.
But this is not enough to prevent memory leaks, so class loader for
JDBC Driver should perform additional efforts for deregistration.
2011-06-08 21:54:38 +04:00
Evgeny Mandrikov
a1a430d2eb
Fix violations
2011-06-07 20:10:33 +04:00
Evgeny Mandrikov
2dbed65268
SONAR-1922 Add a kind of version control for quality profiles
...
Apply patch, which was contributed by Julien Henry:
* Following algorithm was implemented: Every profile starts with
version=1 and used=false. As soon as there is an analysis of a
project, the involved profile is set to used=true. Every modification
to a quality profile (activation, deactivation or modification of
rule) is logged in DB in dedicated tables. When a modification is done
on a profile that is used=true, then version number is increased and
profile is set to used=false.
* Introduced new metric to store profile version, which was used during
analysis.
* If profile for project is different than the one used during previous
analysis, then event would be created.
* Introduced new tab 'changelog' for profiles.
Following fixes were applied on original patch:
* Index name limited to 30 characters in Oracle DB, so names were
reduced.
* Field ActiveRuleChange.profileVersion never read locally, because
ruby read it directly from DB, so getter added.
* Direction doesn't make sense for 'profile_version' metric, so was
removed.
* Fixed ProfileEventsSensor: it seems that TimeMachine not guarantee
that the order of measures would be the same as in query, so we should
perform two sequential queries.
* Fixed handling of null values during migration.
2011-05-27 02:54:10 +04:00
Fabrice Bellingard
f769fb5f2e
SONAR-2453 Update the way "FALSE-POSITIVE" reviews are managed
...
1- Update the DB, migration scripts & co.
2- Update the model, controller & co.
3- Update the WS Client
2011-05-26 13:49:26 +02:00
simonbrandhof
235d3e745d
SONAR-2469 fix typo in name of InstantiationStrategy class
2011-05-26 08:33:18 +02:00
Evgeny Mandrikov
d1db9357b8
SONAR-2425 Add index on CHARACTERISTIC_PROPERTIES.CHARACTERISTIC_ID
2011-05-24 02:05:25 +04:00
simonbrandhof
6642d7a799
Upgrade to version 2.9-SNAPSHOT
2011-05-13 16:58:27 +02:00
simonbrandhof
a44fa2a2fa
Temporarily downgrade version to 2.8-SNAPSHOT
2011-05-10 13:06:06 +02:00
simonbrandhof
ab5551a5b0
Upgrade version to 2.9-SNAPSHOT
2011-05-09 23:15:11 +02:00
simonbrandhof
92a1f54c7d
Release 2.8-RC2
2011-05-09 20:10:26 +02:00
Evgeny Mandrikov
b62c9d36cb
Prepare for next development iteration
2011-05-03 14:28:12 +04:00
Evgeny Mandrikov
30b627b44c
Prepare 2.8-RC1
2011-05-03 14:26:25 +04:00
Evgeny Mandrikov
09566e047c
SONAR-2299 Show Hibernate SQL only if debug logging level enabled, but not info level
2011-04-27 23:41:09 +04:00
Evgeny Mandrikov
ee7b180068
Fix crlf
2011-04-20 13:32:53 +04:00
Fabrice Bellingard
8d294104c3
[SONAR-2347] Close a review when its corresponding violation does not
...
exist anymore
2011-04-20 08:57:56 +02:00
Fabrice Bellingard
72d8bb664b
[SONAR-1973] Improve UI
2011-04-20 08:52:55 +02:00
simonbrandhof
6ed558af9f
Fix copyright headers
2011-04-18 16:56:58 +02:00
simonbrandhof
91b9063c7b
SONAR-2366 Upgrade embedded database to Derby 10.7.1.1 + add DatabaseTestCase to sonar-testing-harness
2011-04-18 16:56:47 +02:00
simonbrandhof
07983847c9
Fix loading of db dialect in ruby on rails
2011-04-18 14:40:13 +02:00
simonbrandhof
cea5b22319
SONAR-2359 Most of properties sonar.jdbc.* should not be required when JDBC datasource is loaded from JNDI
2011-04-14 16:57:16 +02:00
simonbrandhof
52381e8241
SONAR-2100 ruby on rails webapp : do not load JDBC datasource from JNDI in ruby on rails
2011-04-14 16:57:16 +02:00
simonbrandhof
f3461ab00d
SONAR-2347 Add the column RULE_FAILURES.PERMANENT_ID
2011-04-12 14:46:05 +02:00
Evgeny Mandrikov
8ddcea7b85
JpaDatabaseSession: Don't log and throw NonUniqueResultException - just throw
2011-04-08 11:54:46 +04:00
Evgeny Mandrikov
aa5de1d8e7
SONAR-2234 JpaDatabaseSession: improve exception message for persist operations
2011-04-07 17:35:48 +04:00
Evgeny Mandrikov
3fa574c4b6
SONAR-2225 JpaDatabaseSession: improve exception message in case of NonUniqueResultException
2011-04-07 17:34:53 +04:00
Evgeny Mandrikov
c3d2ff43be
Fix crlf
2011-03-31 16:06:17 +04:00
simonbrandhof
4eecf910ac
Upgrade master to version 2.8-SNAPSHOT
2011-03-29 17:03:48 +02:00
simonbrandhof
349b260a5e
[maven-release-plugin] prepare for next development iteration
2011-03-28 17:50:26 +02:00
simonbrandhof
75bfca1251
[maven-release-plugin] prepare release 2.7-RC3
2011-03-28 17:50:24 +02:00
simonbrandhof
d4ae5228bb
Fix coding violations
2011-03-27 23:43:19 +02:00
simonbrandhof
22d26707d7
[maven-release-plugin] prepare for next development iteration
2011-03-22 09:59:51 +01:00
simonbrandhof
22d7301ef4
[maven-release-plugin] prepare release 2.7-RC1
2011-03-22 09:59:50 +01:00
simonbrandhof
ab2346e6bb
[maven-release-plugin] prepare for next development iteration
2011-03-18 15:04:18 +01:00
simonbrandhof
bf5b998ad9
[maven-release-plugin] prepare release 2.7-RC2
2011-03-18 15:04:17 +01:00
Evgeny Mandrikov
85bd7105ce
SONAR-2257 Cleanup sonar-plugin-api dependencies
...
Remove dependency on commons-dbcp, picocontainer and some hibernate dependencies.
We can't remove hibernate-annotations for the moment, because it's used, however
should be removed in future.
2011-03-04 20:25:06 +03:00
simonbrandhof
09349ffce7
[maven-release-plugin] prepare for next development iteration
2011-02-18 10:38:10 +01:00
simonbrandhof
46f1aa681e
[maven-release-plugin] prepare release 2.6
2011-02-18 10:38:08 +01:00
Evgeny Mandrikov
1639e4fba1
SONAR-2075: Add the ability for a plugin to extend an other plugin
2011-02-08 12:05:17 +03:00
simonbrandhof
a14a0644c2
Upgrade copyright headers
2011-02-04 10:42:21 +01:00
simonbrandhof
31af09b42f
SONAR-2094 Do not delete ACTIVE_RULES rows when rules are disabled
2011-02-03 17:37:34 +01:00
simonbrandhof
af8cbb165e
SONAR-2094 Add the column RULES_PROFILES.ENABLED
2011-02-01 22:08:15 +01:00
simonbrandhof
4daa310730
Add profile to check copyright headers + fix some badly formatted headers
2011-01-31 01:13:14 +01:00
simonbrandhof
b69ae6b7c4
[maven-release-plugin] prepare for next development iteration
2011-01-28 15:02:59 +01:00
simonbrandhof
ec0d6d92ad
[maven-release-plugin] prepare release 2.6-M1
2011-01-28 15:02:57 +01:00
simonbrandhof
724f39d4e3
[maven-release-plugin] prepare for next development iteration
2011-01-05 13:36:51 +00:00
simonbrandhof
1f5228db18
[maven-release-plugin] prepare release 2.5-RC1
2011-01-05 13:36:27 +00:00
simonbrandhof
32de21d205
fix migration to delete unvalid snapshots generated in sonar <= 2.3
2011-01-04 15:52:43 +00:00
simonbrandhof
089ec1f5bf
revert trunk version to 2.5-SNAPSHOT
2010-12-27 00:18:51 +00:00
simonbrandhof
e1240d0537
[maven-release-plugin] prepare release 2.5
2010-12-24 16:00:51 +00:00
simonbrandhof
e8fdc7a09f
add the server-side component ServerUpgradeStatus to know the database version before starting the server
2010-12-22 19:12:57 +00:00
simonbrandhof
80554ac4be
SONAR-1722 increase the size of RULES_PROFILES.PARENT_NAME (same as NAME) + change the type of ACTIVE_RULES.INHERITANCE
2010-12-22 15:02:41 +00:00
Godin
2398469a24
SONAR-1722: Merge two fields ActiveRule.inherited and ActiveRule.overridden into one with enum type
2010-12-21 22:45:14 +00:00
Godin
e0384295ca
Fix unit test.
2010-12-21 10:27:16 +00:00
Godin
c20e334b23
SONAR-1722: Change RulesProfile.parentId to RulesProfile.parentName in order to simplify backup
...
SONAR-2052: Add test for backup of inherited profiles
2010-12-21 00:20:07 +00:00
simonbrandhof
4b756e42a1
fix memory leak : hibernate session is not correctly cleared with batch processing mode
2010-12-16 14:37:26 +00:00
Godin
96caf6eac1
SONAR-1722: Add DB columns for profiles inheritance
2010-12-16 00:56:42 +00:00
simonbrandhof
c7ca493dc4
SONAR-249 rename the SNAPSHOTS.VARIATION_xxx columns + add SNAPSHOTS.PERIODx_DATE
2010-12-15 08:28:43 +00:00
simonbrandhof
5acd5df8c5
SONAR-1956 Add a dropdown list on the top right of all Filters to support the differential views
2010-12-09 17:47:32 +00:00
Godin
8ea838b32e
* SONAR-1809: MetricFinder should be available on server side
...
* Fix javadocs
2010-12-08 21:30:14 +00:00
Godin
74c4ac9a4a
Deprecate Rule.setPluginName() , Rule.getPluginName() and related stuff, because was replaced by repositoryKey
2010-12-08 13:45:25 +00:00
simonbrandhof
7dcedeabbe
SONAR-2037 The index on 'measure_data.snapshot_id' is needed for DB performance
2010-12-08 09:21:35 +00:00
simonbrandhof
39323540f6
SONAR-1988 Description of rule parameters should be optional
...
SONAR-2029 The field Rule.configKey should be nullable
2010-12-07 00:06:43 +00:00
simonbrandhof
e5793dc646
SONAR-2032 Delete the measures on metric 'violations' and rule priority
2010-12-06 22:14:24 +00:00
simonbrandhof
c5749a9675
SONAR-249 add 2 periods for variation values + rename SNAPSHOT.VAR_xxx columns + fix saving of dependencies
2010-12-06 14:12:57 +00:00
simonbrandhof
e537ea6120
SONAR-2007 Remove the useless ISO Categories + fix components page
2010-12-01 11:30:48 +00:00
simonbrandhof
4334b6952b
SONAR-249 add the columns SNAPSHOT.VAR_MODE_x and VAR_LABEL_x (x=1, 2 or 3)
2010-11-30 21:02:26 +00:00
Godin
1579738e5b
SONAR-1450: Add support for incremental review of incoming violations
2010-11-30 15:40:42 +00:00
simonbrandhof
6143ab3cce
add missing file
2010-11-29 21:35:38 +00:00
simonbrandhof
6ce6cc598f
SONAR-249 improve core components to load rules and metrics
2010-11-29 17:00:54 +00:00
Godin
cb5f5b4b6f
Fix logging from ClassLoadersCollection
2010-11-26 12:28:15 +00:00
simonbrandhof
19f841e8c1
SONAR-249: extract persistence layer from data index + dump measures at the end of the batch instead of persisting them on the fly
2010-11-26 06:56:17 +00:00
Godin
fdbe3c6666
SONAR-2003:
...
* ClassLoadersCollection should use plexus-classworlds 2.2.3 instead of classworlds 1.1 in order to support Maven 3.0
* Add unit test for ClassLoadersCollection
2010-11-24 22:39:15 +00:00
simonbrandhof
0ac4924c4a
revert SONAR-1988 - requires to upgrade to activerecord-jdbc-adapter 0.9.2
2010-11-24 10:39:42 +00:00
simonbrandhof
767f520c9a
SONAR-1988 Description of rule parameters should be optional
2010-11-23 22:11:55 +00:00
simonbrandhof
4bfd79e52c
SONAR-1663 include the dbcleaner plugin + move all purges in this plugin
2010-11-18 15:02:54 +00:00
simonbrandhof
39f78c6dc0
[maven-release-plugin] prepare for next development iteration
2010-11-09 16:19:27 +00:00
simonbrandhof
8602aa58e3
[maven-release-plugin] prepare release 2.4-RC1
2010-11-09 16:18:52 +00:00
simonbrandhof
d667594a1f
SONAR-1837 revert last change -> back to DEBUG level
2010-11-09 10:37:15 +00:00
simonbrandhof
1100052ef3
SONAR-1837 profiling logs with level INFO instead of DEBUG
2010-11-08 15:02:46 +00:00
simonbrandhof
c9af0a5d61
SONAR-1850 delete unvalid snapshots during database upgrade
2010-11-04 17:23:47 +00:00
simonbrandhof
eca9e1bc2c
add some missing license headers
2010-11-01 21:07:19 +00:00
Godin
b918fe7c66
SONAR-1837: Add profiling logs to database optimization tasks
2010-10-28 14:31:19 +00:00
Godin
d7869519b8
SONAR-1837:
...
* Add profiling logs to database optimization tasks
* Extend TimeProfiler to produce logs using debug level
2010-10-28 14:28:57 +00:00
simonbrandhof
ec7f0817ee
SONAR-1643 apply a part of the GSOC branch
2010-10-28 08:02:18 +00:00
Godin
d384011392
SONAR-1861: Don't create ResourcesClassLoader if no resources
2010-10-23 15:29:12 +00:00
Godin
be88575d78
SONAR-1861: Allow to access files stored in "extensions/rules/" during batch execution
2010-10-21 15:21:40 +00:00
simonbrandhof
d691016265
SONAR-1881 delete orphan active rules
2010-10-20 21:11:41 +00:00
Godin
650127b2fa
SONAR-1838: Change log level to debug
2010-10-20 14:08:13 +00:00
Godin
41adff1a4c
SONAR-1838: Change naming convention for exported packages
2010-10-18 09:46:05 +00:00
simonbrandhof
32548122e4
default value of PLUGINS.CHILD_FIRST_CLASSLOADER is false
2010-10-17 18:50:54 +00:00
Godin
6636cf363e
SONAR-1862:
...
* Upgrade to sonar-update-center-common 0.3-SNAPSHOT
* Add column 'child_first_classloader' to table 'plugins'
* Add possibility to use child-first classloader
2010-10-16 22:18:26 +00:00
Godin
3a9ef7fbc7
SONAR-1862: Implement a child-first classloader strategy for plugins
2010-10-16 01:01:31 +00:00
Godin
aa72913440
SONAR-1838:
...
* Fix small and stupid bug in ClassLoadersCollection - important to have dot at the end of package name
* Add prefixes "com.sonar.plugins." and "com.sonarsource.plugins." for export
2010-10-15 20:30:57 +00:00
Godin
fa92a9ff62
SONAR-1838: Allow inter-dependencies for plugins
2010-10-15 00:08:24 +00:00
simonbrandhof
2d3b588b4a
[maven-release-plugin] prepare for next development iteration
2010-10-12 10:47:11 +00:00
simonbrandhof
b791b9aac2
[maven-release-plugin] prepare release 2.3
2010-10-12 10:46:47 +00:00
simonbrandhof
7361c326e5
[maven-release-plugin] prepare for next development iteration
2010-10-05 19:00:30 +00:00
simonbrandhof
6c36be2a02
[maven-release-plugin] prepare release 2.3-RC2
2010-10-05 19:00:02 +00:00
simonbrandhof
a512de3bbd
upgrade trunk to 2.4-SNAPSHOT
2010-09-30 17:35:41 +00:00
simonbrandhof
49130adac6
[maven-release-plugin] prepare for next development iteration
2010-09-30 16:09:53 +00:00
simonbrandhof
293e51c2af
[maven-release-plugin] prepare release 2.3-RC1
2010-09-30 16:09:27 +00:00
simonbrandhof
4b6828f0e9
the property sonar.core.codeCoveragePlugin is not used when it's set from UI console
2010-09-30 09:37:00 +00:00
simonbrandhof
f25c971275
SONAR-1814 add the method ExtensionProvider.provide() in order to support obfuscated code
2010-09-28 15:53:04 +00:00
simonbrandhof
5cdbf337fe
SONAR-1814 add a warning when a ExtensionProvider class is registered in Plugin.getExtensions()
2010-09-28 14:00:20 +00:00
simonbrandhof
d2f25e344d
SONAR-1814 remove the API to find a plugin from an extension :
...
* do register coverage extensions in picocontainer only when the plugin is selected (see parameter sonar.core.codeCoveragePlugin)
* do not display plugin names when detecting a duplication of metrics
* remove unused methods from the deprecated component RulesManager
2010-09-28 12:10:05 +00:00
simonbrandhof
365a5dbae8
SONAR-1798 rename RULE_FAILURES.POINTS to COST
2010-09-22 13:29:23 +00:00
simonbrandhof
d6000bfbea
SONAR-1798 Ability to register a number of points to a rule violation
2010-09-22 13:14:08 +00:00
simonbrandhof
d46e081eac
quality models: limit the methods of org.sonar.api.qualitymodel.ModelFinder to read methods. Management methods are restricted to core => extracted to org.sonar.server.qualitymodel.ModelManager
2010-09-21 21:25:29 +00:00
simonbrandhof
d4963b41c3
add characteristic properties to quality models
2010-09-21 16:01:48 +00:00
simonbrandhof
a49dfa3853
add unit tests to quality models
2010-09-16 16:12:31 +00:00
simonbrandhof
690808781a
add the column CHARACTERISTICS.ENABLED
2010-09-16 15:58:42 +00:00
simonbrandhof
8c95433db8
* quality models : rename ModelProvider to ModelFinder
...
* fix some integration tests
2010-09-10 14:47:07 +00:00
simonbrandhof
23830d07ed
* rename RuleProvider to RuleFinder
...
* deprecate some classes in the rule API
* add the parameter ValidationMessages to ProfileDefinition.createPrototype()
2010-09-10 13:04:24 +00:00
simonbrandhof
0dd067a3ef
add CHARACTERISTICS.DESCRIPTION
2010-09-08 20:29:03 +00:00
simonbrandhof
3cc63963cf
SONAR-1549 The Sonar profile creation form doesn't allow to import checkstyle,pmd and Findbugs conf files when several langages are defined
...
SONAR-440 add warnings to checkstyle when importing configuration
2010-09-07 23:23:23 +00:00
simonbrandhof
aeadc1f912
SONAR-236 remove deprecated code from checkstyle plugin + display default value of rule parameters in Q profile console
2010-09-06 14:08:06 +00:00