Commit Graph

167 Commits

Author SHA1 Message Date
Simon Brandhof
f9a8849bcd Rename protobuf files of sonar-db 2015-08-05 19:32:12 +02:00
Simon Brandhof
ca9e5122f5 Minor refactoring of DdlChange 2015-08-05 19:32:11 +02:00
Simon Brandhof
5a6aa5d5a2 Add column LOCATIONS to db table ISSUES 2015-08-05 19:32:11 +02:00
Simon Brandhof
d4df8897e4 ComponentDao#selectByKeys() supports more than 1'000 inputs 2015-08-05 19:32:10 +02:00
Simon Brandhof
b2d395ffce Load project UUID from action plan DAO
Project UUID must be used internally instead of project key.
2015-08-05 19:32:10 +02:00
Simon Brandhof
b0652b91c5 New WS api/rules/list for batch 2015-08-05 19:32:09 +02:00
Julien HENRY
e2daa5befa Fix some quality flaws 2015-08-05 13:52:59 +02:00
Sébastien Lesaint
c48df2071b SONAR-6734 add MBean to expose Commpute Engine Queue info 2015-08-03 10:19:40 +02:00
Teryk Bellahsene
2f6eac566f Lowercase field selection in RoleMapper 2015-07-31 15:35:25 +02:00
Teryk Bellahsene
ed67fcbdc5 Cross database definition of temporary table 2015-07-31 15:10:09 +02:00
Teryk Bellahsene
a66abc7142 Add alias to temporary table in RoleMapper 2015-07-31 14:08:37 +02:00
Teryk Bellahsene
c003fa9f76 SONAR-6481 SONAR-6484 SONAR-4475 do not remove the last admin user or group permission 2015-07-31 11:57:49 +02:00
Simon Brandhof
7b45121faa Prepare upgrade to protobuf 3
Files .proto must declare: syntax = "proto2";
2015-07-30 18:31:45 +02:00
Teryk Bellahsene
9ed30b77d9 refactoring of permissions 2015-07-30 13:23:04 +02:00
Simon Brandhof
314af7bed8 New WS api/rules/list for batch 2015-07-30 11:43:12 +02:00
Simon Brandhof
ab244f2e1e Copy RuleDao#selectEnabledAndNonManual() from sonar-server to sonar-db
The source method in org.sonar.server.rule.db can not be dropped as it's still
used through DAOv2
2015-07-30 11:38:11 +02:00
Simon Brandhof
c24960fb41 Remove call to deprecated RuleDao from CE RuleCacheLoader 2015-07-28 08:02:49 +02:00
Teryk Bellahsene
bcd12057b0 Make the AnalysisReportDaoTest test stronger 2015-07-24 16:20:12 +02:00
Simon Brandhof
40f40f2432 Improve some DAOs with conventions and DatabaseUtils.executeLargeInputs() 2015-07-24 11:04:32 +02:00
Simon Brandhof
85272d930b Support of large number of keys in IssueDao#selectByKeys(...) 2015-07-24 10:21:07 +02:00
Simon Brandhof
9cf194d844 Apply conventions to IssueDao 2015-07-24 10:20:56 +02:00
Simon Brandhof
890c19cffe Add IssueDao#selectByOrderedKeys(...) 2015-07-24 10:15:22 +02:00
Teryk Bellahsene
2659bc296b Improve MetricDao code coverage 2015-07-24 09:22:47 +02:00
Teryk Bellahsene
5792a69db7 Move RowNotFoundException to org.sonar.db 2015-07-24 09:22:46 +02:00
Teryk Bellahsene
623c9e610a RowNotFoundException is the default Exception at the DAO layer 2015-07-24 09:22:46 +02:00
Teryk Bellahsene
8a0830075a Rename ComponentDao methods according to new conventions 2015-07-24 09:22:46 +02:00
Teryk Bellahsene
9d67df67f3 Rename MetricDao methods following the new convention 2015-07-24 09:22:46 +02:00
Teryk Bellahsene
2890a151e4 Rename methods in DAO layer to follow conventions 2015-07-23 14:06:44 +02:00
Teryk Bellahsene
d55de7dbda Replace DaoUtils by DaoModule 2015-07-23 12:03:23 +02:00
Teryk Bellahsene
61cde2b2b9 Move UserDao to sonar-db 2015-07-23 11:09:45 +02:00
Teryk Bellahsene
d8e2d42e70 Move GroupDao to sonar-db 2015-07-23 11:09:45 +02:00
Teryk Bellahsene
28230d418e Create RowNotFoundException as the default DAO Exception thrown 2015-07-23 11:09:44 +02:00
Simon Brandhof
17af5360c3 Move protobuf spec of table FILE_SOURCES.BINARY_DATA into sonar-db 2015-07-23 10:46:10 +02:00
Teryk Bellahsene
a41640c8e6 Move MetricDao to sonar-db 2015-07-22 16:17:41 +02:00
Teryk Bellahsene
3d4701bc05 Fix quality flaws 2015-07-21 18:15:39 +02:00
Simon Brandhof
2e38406b37 Remove unused db classes Snapshot and ResourceModel 2015-07-20 23:53:26 +02:00
Julien Lancelot
0cbf1044e6 Fix quality flaws 2015-07-17 15:37:00 +02:00
Simon Brandhof
bdcfb7eeb7 Move Java db migrations from sonar-server to sonar-db 2015-07-17 12:38:17 +02:00
Simon Brandhof
48697451f2 SONAR-6716 remove data migrations of v4.4 2015-07-17 10:15:32 +02:00
Simon Brandhof
e350538280 SONAR-6716 do not accept db upgrades from versions previous to LTS 2015-07-16 23:48:21 +02:00
Simon Brandhof
906087d268 SONAR-6716 Fix quality flaw in DatabaseVersion 2015-07-16 22:23:46 +02:00
Simon Brandhof
75cfdf14c5 SONAR-6716 Remove unused db migrations of data (not structures)
End of support of db migrations from versions lower than 3.7
2015-07-16 22:22:59 +02:00
Simon Brandhof
efa7cbf67f Rename remaining variables "sut" to "underTest" in tests 2015-07-16 21:46:04 +02:00
Simon Brandhof
57cb022d1b Rename variables "sut" to "underTest" in tests 2015-07-16 21:41:03 +02:00
Julien Lancelot
a1ea8a8353 SONAR-6702 Fix UT on MsSQL when projects.kee is null 2015-07-16 13:57:59 +02:00
Julien Lancelot
f934d2e752 SONAR-6702 Reactivate previously removed components 2015-07-16 12:02:21 +02:00
Julien Lancelot
cbc7832b74 SONAR-6702 Add migration to update PROJECTS.PROJECTS_KEE index
Remove enabled column from the index
Set unique index (not on MySQL)
2015-07-16 12:02:21 +02:00
Julien Lancelot
ce00914d13 SONAR-6702 Add migration to remove duplicated components with same key 2015-07-16 12:02:21 +02:00
Julien Lancelot
e80f48e762 Remove no more used PurgeDao.selectPurgeableFileUuids() 2015-07-16 12:02:21 +02:00
Teryk Bellahsene
cd9f861fb5 Move custom measures in sonar-db 2015-07-16 09:04:58 +02:00
Julien Lancelot
2b803cfc96 Fix quality flaws 2015-07-15 11:38:32 +02:00
Simon Brandhof
45bc4794df Merge SqlUtil and DatabaseUtils 2015-07-12 17:13:04 +02:00
Simon Brandhof
98d7550f62 Fix travis.sh to execute db tests on mysql and postgres 2015-07-08 23:51:14 +02:00
Julien Lancelot
7fcfb59792 Move ComponentDao from sonar-server to sonar-db 2015-07-08 16:08:49 +02:00
Simon Brandhof
3a77f796dd SONAR-6701 - Drop the db table SEMAPHORES 2015-07-08 16:00:52 +02:00
Julien Lancelot
59afc6c59a Replace usage of new DbTester() and AbstractDaoTestCase by DbTester.create(System2) 2015-07-07 12:54:35 +02:00
Julien Lancelot
f9a3b1915d Refactor dao unit tests to use DbTester.create(System2) 2015-07-07 12:54:34 +02:00
David Gageot
f0390ff845 FIX Redundant throws clause 2015-07-07 11:36:26 +02:00
Simon Brandhof
23254b9034 Fix QualityGateConditionDaoTest on Oracle 2015-07-07 10:38:41 +02:00
Simon Brandhof
0f5e9229cb Fix execution of tests on non-H2 databases 2015-07-06 17:17:53 +02:00
Julien Lancelot
de76ce29cf Add classes for backward compatibility of plugins/libs (like sonar-license) that are directly calling classes from the core 2015-07-06 16:35:41 +02:00
Simon Brandhof
cc40fc4d4f Revert "Fix execution of tests on non-H2 databases"
This reverts commit 34ac5d84f6.
2015-07-06 15:17:49 +02:00
Simon Brandhof
34ac5d84f6 Fix execution of tests on non-H2 databases 2015-07-06 15:05:53 +02:00
Simon Brandhof
769e017b27 Fix quality flaws in Dao 2015-07-06 14:58:05 +02:00
Simon Brandhof
305df73784 Improve testability of Dao 2015-07-06 09:22:50 +02:00
Simon Brandhof
32af292b74 Move some classes from sonar-server to sonar-db 2015-07-06 09:22:44 +02:00
Simon Brandhof
1df1488036 Extract module sonar-db 2015-07-04 17:00:08 +02:00