Commit Graph

49 Commits

Author SHA1 Message Date
Julien Lancelot
6e544a8a6e SONAR-8910 Populate organization members 2017-03-21 13:05:50 +01:00
Teryk Bellahsene
a136d807a7 SONAR-8902 Create Table ORGANIZATION_MEMBERS 2017-03-21 13:05:50 +01:00
Daniel Schwarz
85f7fcad42 SONAR-8857 add organisation uuid to quality profile database table 2017-03-03 16:57:17 +01:00
Teryk Bellahsene
8bc3795d4f SONAR-8838 Limit to 500 characters DB column TAGS of PROJECTS 2017-02-28 15:56:51 +01:00
Julien Lancelot
0b2660c487 SONAR-8847 Set COPY_COMPONENT_UUID of local views 2017-02-28 14:35:18 +01:00
Teryk Bellahsene
6bbda7023b SONAR-8838 Add DB column TAGS to PROJECTS table 2017-02-28 11:29:29 +01:00
Sébastien Lesaint
679db32dc1 SONAR-8435 log "SonarQube is up" if all processes are operational
which implies:
1/ to distinguish from Monitored#getStatus() = UP and OPERATIONAL
2/ to have an option of Monitor to wait on process's status to be OPERATIONAL
3/ every Monitored implementation must return OPERATIONAL rather than UP if then don't make a distinction between the two
2017-02-24 21:08:18 +01:00
Simon Brandhof
c4faf8ce19 Drop unused Surefire config for skipping tests 2017-02-19 14:19:56 +01:00
Simon Brandhof
4dcf22377c Clean-up sonar-testing-harness dependencies
and decrease usages of Hamcrest
2017-02-19 13:07:11 +01:00
Sébastien Lesaint
9824b94f16 split sonar-db into server/sonar-db-core and server/sonar-db-dao 2017-02-17 13:31:49 +01:00
Simon Brandhof
33acda7596 Fix integer type of user and group ids
User IDs are INTEGER in database. The java classes are fixed
to replace long by int.
2017-02-16 21:09:41 +01:00
ssjenka
5a4b7afd1a Automatic merge from branch-6.3
* origin/branch-6.3:
  SONAR-8647 Correctly detect isFavorite in filter
  SONAR-8746 Remove measures related to periods 2 to 5
2017-02-16 08:01:50 +01:00
Julien Lancelot
a23cea9726 SONAR-8746 Remove measures related to periods 2 to 5 2017-02-15 12:08:19 +01:00
Simon Brandhof
36b88b81f2 Prepare for next development iteration 2017-02-14 14:00:52 +01:00
Simon Brandhof
13168d9466 Fix license headers 2017-02-10 23:32:49 +01:00
Simon Brandhof
11416daf3e SONAR-8761 db migration to unset root flag of existing users 2017-02-10 23:32:47 +01:00
Sébastien Lesaint
539323544a SONAR-8752 add column ORGANIZATIONS.USER_ID 2017-02-10 18:29:38 +01:00
Teryk Bellahsene
cfa372a57a SONAR-8637 Update POM parent version 2017-02-10 17:41:33 +01:00
Julien Lancelot
968bd79f0d SONAR-8208 SONAR-8610 SONAR-8758 Delete useless settings from db 2017-02-10 10:02:47 +01:00
Sébastien Lesaint
a7efc154cb SONAR-8755 make default organization guarded
so that it can only be deleted by root
2017-02-10 09:48:36 +01:00
Sébastien Lesaint
caf7aba77f SONAR-8754 support guarded in OrganizationDto and OrganizationDao 2017-02-10 09:48:36 +01:00
Sébastien Lesaint
a60f3c39d1 SONAR-8754 add column ORGANIZATIONS.GUARDED 2017-02-10 09:48:36 +01:00
Sébastien Lesaint
c87a24252f SONAR-8586 fix wrong query plan by injecting fake data on H2
into table PROJECT_MEASURES
2017-02-02 15:39:11 +01:00
Sébastien Lesaint
a670d38948 SONAR-8690 populate DEFAULT_PERM_TEMPLATE_* columns from PROPERTIES 2017-01-27 16:55:16 +01:00
Sébastien Lesaint
7bad70c931 SONAR-8690 add columns ORGANIZATIONS.default_perm_template_* 2017-01-27 16:55:16 +01:00
Simon Brandhof
ab7fa9a6bd SONAR-8675 drop table resource_index 2017-01-25 11:41:57 +01:00
Sébastien Lesaint
db3a220350 SONAR-8474 add index on PROJECTS.ORGANIZATION_UUID 2017-01-16 11:16:43 +01:00
Sébastien Lesaint
74b42a48b3 SONAR-8474 add non nullable column PROJECTS.ORGANIZATION_UUID
hardcode CE and ComponentService to persist components into default organization
hardcode WS api/components/bulk_update_key to work on default organization
hardcode WS api/projects/create to create project into default organization
hardcode WS api/ce/submit to create project into default organization

fix UTs to set this new non nullable column
2017-01-16 11:16:43 +01:00
Simon Brandhof
df2dda7678 SONAR-8585 configure NLS_SORT param on Oracle client sessions 2017-01-05 16:51:42 +01:00
Sébastien Lesaint
5801183df4 SONAR-8445 drop field DatabaseVersion.LAST_VERSION
replace usages of this field by either MigrationSteps.getMaxMigrationNumber() or DatabaseVersion.getStatus()
also, change return type of DatabaseVersion.getVersion from int to Optional<Long>
MigrationStep configuration is now avaiable at level2, in both web and CE container (because it is used by DatabaseVersion class)
2016-12-16 14:35:29 +01:00
Sébastien Lesaint
1c34d6ef83 SONAR-8445 move DatabaseVersion to sonar-db-migration 2016-12-16 14:35:28 +01:00
Sébastien Lesaint
90d681b83f add constant for minimum number of components in ComponentContainer 2016-12-16 14:35:28 +01:00
Sébastien Lesaint
1af4105f69 SONAR-8445 add a DAO for SCHEMA_MIGRATIONS
and remove direct usages of MyBatis mapper
2016-12-16 14:35:28 +01:00
Sébastien Lesaint
26f0b979e0 SONAR-8445 move DataChange subclasses from sonar-db to sonar-db-migration 2016-12-16 14:35:27 +01:00
Sébastien Lesaint
714a50e499 SONAR-8445 move def and sql builder classes to sonar-db-migration 2016-12-16 14:35:27 +01:00
Sébastien Lesaint
695c9b54d7 SONAR-8445 move package charset from sonar-db to sonar-db-migration 2016-12-16 14:35:27 +01:00
Sébastien Lesaint
afe690ce40 SONAR-8445 a bit of Ruby code cleaning + fix quality flaws 2016-12-16 14:35:27 +01:00
Sébastien Lesaint
df9e35b688 SONAR-8445 do auto upgrade on fresh install without Ruby 2016-12-14 12:11:54 +01:00
Sébastien Lesaint
610a9a8397 SONAR-8445 move SQ 5.6 create schema migrations out of Ruby
and start some cleaning of migration related code in Ruby
2016-12-14 12:11:53 +01:00
Sébastien Lesaint
e2cff9277d SONAR-8445 move SQ 5.6.1 migration out of Ruby 2016-12-14 12:11:53 +01:00
Sébastien Lesaint
fcd8176603 SONAR-8445 move SQ 6.0 migrations out of Ruby 2016-12-14 12:11:53 +01:00
Sébastien Lesaint
4ff1332359 SONAR-8445 move SQ 6.1 migrations out of Ruby 2016-12-14 12:11:53 +01:00
Sébastien Lesaint
d830b2989a SONAR-8445 support multiple migrations referencing same MigrationStep
includes add support for support components per DbVersion
2016-12-14 12:11:52 +01:00
Sébastien Lesaint
01d79f9f3b SONAR-8445 move SQ 6.2 migrations out of Ruby 2016-12-14 12:11:52 +01:00
Sébastien Lesaint
ff766539d3 SONAR-8445 run DB migration of SQ 6.3 with Java
add Java toolkit to run DB migrations
port last 3 DB migrations (ie. from current SQ 6.3) to this Java toolkit and make it run after Ruby migration
2016-12-14 12:11:52 +01:00
Sébastien Lesaint
ea8ca620bf SONAR-8445 fork BaseDataChange and DdlChange in sonar-db-migration
interface DataChange is dropped and BaseDataChange renamed to DataChange
2016-12-14 12:11:52 +01:00
Sébastien Lesaint
5cea701a72 SONAR-8445 move DatabaseMigration to sonar-db-migration
also, split state (which must be stored at platform level 2 because we need to keep state until SQ is shutdown) from migration code, which doesn't need to be kept in memory once Platform is out of safe mode
2016-12-14 12:11:51 +01:00
Sébastien Lesaint
080a0fb172 SONAR-8445 handle creation of table SCHEMA_MIGRATIONS in Java 2016-12-14 12:11:51 +01:00
Sébastien Lesaint
460eee7ce9 SONAR-8445 create maven module sonar-db-migration 2016-12-14 12:11:51 +01:00