]>
source.dussan.org Git - sonarqube.git/log
Daniel Schwarz [Thu, 23 Mar 2017 16:11:29 +0000 (17:11 +0100)]
SONAR-8857 remove redundant QProfileService class
Daniel Schwarz [Thu, 23 Mar 2017 15:50:45 +0000 (16:50 +0100)]
SONAR-8857 reduce duplicated code for bulk requests
Daniel Schwarz [Thu, 23 Mar 2017 15:21:29 +0000 (16:21 +0100)]
SONAR-8857 split BulkRuleActivationActions
Daniel Schwarz [Thu, 23 Mar 2017 14:44:35 +0000 (15:44 +0100)]
SONAR-8857 make api/qualityprofiles/activate_rule organization aware
Daniel Schwarz [Thu, 23 Mar 2017 11:05:48 +0000 (12:05 +0100)]
SONAR-8857 make api/qualityprofiles/deactivate_rule organization aware
Daniel Schwarz [Thu, 23 Mar 2017 10:00:24 +0000 (11:00 +0100)]
provide session to QProfileService
Daniel Schwarz [Thu, 23 Mar 2017 09:25:32 +0000 (10:25 +0100)]
SONAR-8857 split RuleActivationActions into activation and deactivation
Sébastien Lesaint [Thu, 23 Mar 2017 08:55:57 +0000 (09:55 +0100)]
SONAR-8867 fix too long property identifier in RuleDto for most SGBDs
Sébastien Lesaint [Wed, 22 Mar 2017 15:07:06 +0000 (16:07 +0100)]
SONAR-8867 drop metadata columns from table RULES
Sébastien Lesaint [Wed, 22 Mar 2017 15:05:29 +0000 (16:05 +0100)]
SONAR-8867 add AbstractDbTester#assertColumnDoesNotExist
Sébastien Lesaint [Wed, 22 Mar 2017 15:04:38 +0000 (16:04 +0100)]
SONAR-8897 add H2 support in DropColumnsBuilder
Sébastien Lesaint [Wed, 22 Mar 2017 13:58:38 +0000 (14:58 +0100)]
SONAR-8867 RuleResultSetIterator supports table RULES_METADATA
Sébastien Lesaint [Wed, 22 Mar 2017 10:49:05 +0000 (11:49 +0100)]
SONAR-8867 read and write into table RULES_METADATA
Sébastien Lesaint [Tue, 21 Mar 2017 11:00:08 +0000 (12:00 +0100)]
SONAR-8867 populate table RULES_METADATA
Sébastien Lesaint [Tue, 21 Mar 2017 09:58:22 +0000 (10:58 +0100)]
SONAR-8867 create table RULES_METADATA
Sébastien Lesaint [Wed, 22 Mar 2017 07:58:43 +0000 (08:58 +0100)]
SONAR-8867 add organizationUuid parameter to RuleDao#selectByQuery
Sébastien Lesaint [Wed, 22 Mar 2017 07:56:57 +0000 (08:56 +0100)]
SONAR-8867 add and use RuleDao#selectAllDefinitions
and added organizationUuid parameter to RuleDao#selectAll
Sébastien Lesaint [Tue, 21 Mar 2017 18:17:12 +0000 (19:17 +0100)]
SONAR-8867 make UserDao#selectEnabled process RuleDefinitionDto
rather than RuleDto
Sébastien Lesaint [Tue, 21 Mar 2017 18:14:06 +0000 (19:14 +0100)]
SONAR-8867 add and use UserDao#selectDefinitionByKeys
and add organizationUuid parameter to UserDao#selectByKeys
Sébastien Lesaint [Tue, 21 Mar 2017 17:47:31 +0000 (18:47 +0100)]
SONAR-8867 add and use RuleDao#selectDefinitionById[s]
and add organizationUuid parameter to selectById[s]
Sébastien Lesaint [Tue, 21 Mar 2017 17:30:49 +0000 (18:30 +0100)]
SONAR-8867 add and use RuleDao#selectOrFailDefinitionByKey
and add organization uuid parameter to RuleDao#selectOrFailByKey
Sébastien Lesaint [Tue, 21 Mar 2017 17:02:27 +0000 (18:02 +0100)]
SONAR-8867 add and use RuleDao#selectDefinitionByKey
and add organization parameter to RuleDao#selectByKey
Sébastien Lesaint [Tue, 21 Mar 2017 10:31:43 +0000 (11:31 +0100)]
SONAR-8867 add CoreDbTester#defaultOrganization()
Sébastien Lesaint [Tue, 21 Mar 2017 09:55:15 +0000 (10:55 +0100)]
SONAR-8867 fix support for composite PK in assertPrimaryKey
Sébastien Lesaint [Mon, 20 Mar 2017 16:58:02 +0000 (17:58 +0100)]
SONAR-8867 enforce definition and metadata are inserted/updated separately
Sébastien Lesaint [Mon, 20 Mar 2017 14:43:28 +0000 (15:43 +0100)]
SONAR-8867 RuleDto aggregates RuleDefinitionDto and RuleMetadataDto
Sébastien Lesaint [Mon, 20 Mar 2017 13:08:09 +0000 (14:08 +0100)]
SONAR−8867 split persistence of rule definition from metadata
Sébastien Lesaint [Mon, 20 Mar 2017 09:39:05 +0000 (10:39 +0100)]
SONAR-8867 split insert/update of definition and metadata in DAO
Sébastien Lesaint [Fri, 17 Mar 2017 16:42:14 +0000 (17:42 +0100)]
SONAR-8867 don't open extra DbSession in RuleCreator
Sébastien Lesaint [Fri, 17 Mar 2017 16:34:41 +0000 (17:34 +0100)]
SONAR-8867 remove usused RuleDao#selectEnabled(DbSession)
only override with ResultHandler is used
Sébastien Lesaint [Fri, 17 Mar 2017 16:16:26 +0000 (17:16 +0100)]
SONAR-6547 remove now useless ClearRulesOverloadedDebt
Sébastien Lesaint [Fri, 17 Mar 2017 15:37:17 +0000 (16:37 +0100)]
SONAR-8867 remove unused RuleMapper#selectAll(ResultHandler)
Sébastien Lesaint [Fri, 17 Mar 2017 11:13:55 +0000 (12:13 +0100)]
SONAR-8867 a bit of formatting on RuleMapper.xml
Sébastien Lesaint [Fri, 17 Mar 2017 10:58:45 +0000 (11:58 +0100)]
SONAR-8867 add missing jdbcType to RuleMapper
Sébastien Lesaint [Fri, 17 Mar 2017 10:58:13 +0000 (11:58 +0100)]
SONAR-8867 remove unused RuleMapper#selectByName
Simon Brandhof [Wed, 22 Mar 2017 20:13:16 +0000 (21:13 +0100)]
SONAR-8925 re-enable IssueAssignTest
Simon Brandhof [Wed, 22 Mar 2017 16:42:25 +0000 (17:42 +0100)]
SONAR-8925 scanner sends param "organization" when requesting Quality profiles
Simon Brandhof [Tue, 21 Mar 2017 21:17:57 +0000 (22:17 +0100)]
SONAR-8971 check consistency of Quality profiles in Compute Engine
Simon Brandhof [Wed, 22 Mar 2017 14:12:52 +0000 (15:12 +0100)]
SONAR-8924 restrict count of projects on specified organization
Simon Brandhof [Wed, 22 Mar 2017 14:03:03 +0000 (15:03 +0100)]
SONAR-8924 compute active rules statistics via database
Using Elasticsearch is not accurate because the results
are not exhaustive. They can be paginated by the aggregations.
Moreover it brings useless complexity compared to the
simple and performance SQL requests.
Simon Brandhof [Tue, 21 Mar 2017 17:25:01 +0000 (18:25 +0100)]
SONAR-8924 add and populate field "orgUuid" to ES index rules/activeRule
Simon Brandhof [Tue, 21 Mar 2017 15:10:27 +0000 (16:10 +0100)]
SONAR-8889 fix Quality flaws in ActiveRuleIndexer
Simon Brandhof [Tue, 21 Mar 2017 15:03:45 +0000 (16:03 +0100)]
SONAR-8889 drop Quality profiles when deleting an organization
Simon Brandhof [Tue, 21 Mar 2017 15:03:23 +0000 (16:03 +0100)]
SONAR-8889 do not drop Quality profile at startup if already exists
Simon Brandhof [Thu, 16 Mar 2017 22:10:46 +0000 (23:10 +0100)]
SONAR-8889 api/qualityprofiles/delete must delete changelog and clean-up Elasticsearch
Simon Brandhof [Thu, 16 Mar 2017 21:48:25 +0000 (22:48 +0100)]
SONAR-8889 profile related SQLs to delete rows by list of key
Add the ability to delete rows by profile keys from all the tables
related to Quality profiles.
Simon Brandhof [Thu, 16 Mar 2017 16:22:36 +0000 (17:22 +0100)]
SONAR-8889 remove OrganizationMapper#deleteByKey()
Organization should be referenced by UUID. Only the method
deleteByUuid() is needed.
Simon Brandhof [Wed, 22 Mar 2017 19:15:10 +0000 (20:15 +0100)]
SONAR-8888 fix indexing of quality profiles on SQLServer
When creating an organization, Elasticsearch index rules/active_rule
must be updated only when DB session is committed, otherwise
the DB session of ActiveRuleIndexer is locked by the DB
session of OrganizationCreationImpl.
Simon Brandhof [Tue, 21 Mar 2017 17:00:26 +0000 (18:00 +0100)]
Remove unused "statuses" field in response of api/rules/app
This field is not used by web app
Simon Brandhof [Tue, 21 Mar 2017 16:58:25 +0000 (17:58 +0100)]
SONAR-8865 support new param "organization" in api/rules/app
Daniel Schwarz [Wed, 22 Mar 2017 10:41:57 +0000 (11:41 +0100)]
SONAR-8857 temporarily ignore IssueAssignTest, until it is org ready
Daniel Schwarz [Wed, 22 Mar 2017 10:41:13 +0000 (11:41 +0100)]
SONAR-8857 add /restore and /activate_rule to sonar-ws, refactor tests
Simon Brandhof [Tue, 21 Mar 2017 20:26:43 +0000 (21:26 +0100)]
Drop unused method QualityProfileMapper#selectByProjectIdAndLanguage()
Sébastien Lesaint [Tue, 21 Mar 2017 12:24:48 +0000 (13:24 +0100)]
SONAR-8888 use DefinedQProfileRepository in QProfileResetImpl
Sébastien Lesaint [Fri, 17 Mar 2017 09:50:03 +0000 (10:50 +0100)]
SONAR-8888 create default quality profiles when creating organization
Sébastien Lesaint [Thu, 16 Mar 2017 17:35:05 +0000 (18:35 +0100)]
SONAR-8888 move commit out of DefinedQProfileCreation#commit
Sébastien Lesaint [Thu, 16 Mar 2017 15:43:03 +0000 (16:43 +0100)]
SONAR-8888 add DefinedQProfileCreation
Sébastien Lesaint [Thu, 16 Mar 2017 09:55:37 +0000 (10:55 +0100)]
SONAR-8888 load DefinedQProfiles even when no startup leader
Sébastien Lesaint [Thu, 16 Mar 2017 09:28:37 +0000 (10:28 +0100)]
SONAR-8888 add DefinedQProfileRepository
Sébastien Lesaint [Wed, 15 Mar 2017 14:38:44 +0000 (15:38 +0100)]
SONAR-8931 fix log level
Daniel Schwarz [Fri, 17 Mar 2017 16:30:35 +0000 (17:30 +0100)]
SONAR-8857 fix quality flaws
* deprecate quality profile dao methods without org parameter
* remove unused fields in RenameAction
* change access to wsSupport to static
* source format
* reduce complexity of method
* use constants instead of literals
* remove redundantly overridden method
* remove method QProfileFactory.find
* fix QualityProfileDao.sqlQueryString
Daniel Schwarz [Fri, 17 Mar 2017 13:57:56 +0000 (14:57 +0100)]
SONAR-8857 support organizations in api/qualityprofiles/change_parent
Daniel Schwarz [Fri, 17 Mar 2017 11:21:54 +0000 (12:21 +0100)]
SONAR-8857 use random names in change_parent wsAction test
Daniel Schwarz [Fri, 17 Mar 2017 11:18:17 +0000 (12:18 +0100)]
SONAR-8857 refactored change_parent medium test to WsActionTester test
Daniel Schwarz [Thu, 16 Mar 2017 15:33:32 +0000 (16:33 +0100)]
SONAR-8857 make ws/qualityprofiles/inheritance organization aware
Daniel Schwarz [Thu, 16 Mar 2017 15:33:32 +0000 (16:33 +0100)]
SONAR-8857 make ws/qualityprofiles/inheritance organization aware
Daniel Schwarz [Thu, 16 Mar 2017 11:55:27 +0000 (12:55 +0100)]
SONAR-8857 move code from QProfileLoader to callers
Daniel Schwarz [Thu, 16 Mar 2017 11:20:03 +0000 (12:20 +0100)]
SONAR-8857 refactored inheritance action medium test to a regular test
Daniel Schwarz [Mon, 20 Mar 2017 13:46:32 +0000 (14:46 +0100)]
SONAR-8857 make ws api/qualityprofiles/changelog organization aware
Simon Brandhof [Wed, 15 Mar 2017 15:27:01 +0000 (16:27 +0100)]
SONAR-8857 add param "organization" to api/qualityprofiles/add_project/remove_project
Simon Brandhof [Thu, 16 Mar 2017 15:40:11 +0000 (16:40 +0100)]
SONAR-8857 support organization in api/qualityprofiles/copy
- verify permission on the related organization
- create the target profile (if needed) on the same organization
- no need to add the WS parameter "organization" because
"fromKey" is self-sufficient to identify the profile.
Simon Brandhof [Thu, 16 Mar 2017 15:34:03 +0000 (16:34 +0100)]
SONAR-8857 remove test of api/qualityprofiles/copy from QProfilesWsTest
Simon Brandhof [Thu, 16 Mar 2017 15:17:33 +0000 (16:17 +0100)]
SONAR-8857 clean-up backup/restore
Do not load target profile twice when copying a profile
Daniel Schwarz [Thu, 16 Mar 2017 15:16:27 +0000 (16:16 +0100)]
SONAR-8857 move code from SearchDataLoader to SearchAction
Sébastien Lesaint [Wed, 15 Mar 2017 09:37:23 +0000 (10:37 +0100)]
SONAR-6315 use standard UUID in examples for QP keys
Sébastien Lesaint [Tue, 14 Mar 2017 14:42:05 +0000 (15:42 +0100)]
fix and simplify pagination CeActivityDao#selectByQuery
Sébastien Lesaint [Tue, 14 Mar 2017 14:02:46 +0000 (15:02 +0100)]
fix pagination in OrganizationDao#selectByQuery
Sébastien Lesaint [Tue, 14 Mar 2017 13:46:03 +0000 (14:46 +0100)]
SONAR-8931 simpler paging in selectOrganizationsWithoutLoadedTemplate
Sébastien Lesaint [Tue, 14 Mar 2017 10:41:44 +0000 (11:41 +0100)]
move profile with-db-drivers to server to allow testing in any db module
Sébastien Lesaint [Mon, 13 Mar 2017 17:05:53 +0000 (18:05 +0100)]
SONAR-6315 cache rules and query active rules per profile
rather than 1 by 1
Sébastien Lesaint [Mon, 13 Mar 2017 14:54:30 +0000 (15:54 +0100)]
SONAR-6315 remote RuleActivator#activate override used only in tests
Sébastien Lesaint [Mon, 13 Mar 2017 13:44:22 +0000 (14:44 +0100)]
SONAR-8931 support all organizations in RegisterQualityProfiles
Sébastien Lesaint [Mon, 13 Mar 2017 13:43:50 +0000 (14:43 +0100)]
SONAR-8931 add OrganizationDao#.selectOrganizationsWithoutLoadedTemplate
Sébastien Lesaint [Fri, 10 Mar 2017 15:40:25 +0000 (16:40 +0100)]
SONAR-8931 extend size of LOADED_TEMPLATES.TEMPLATE_TYPE
Sébastien Lesaint [Fri, 10 Mar 2017 14:24:00 +0000 (15:24 +0100)]
SONAR-6315 use System2 for date in QProfileFactory
and add some of the many UTs on QProfileFactory
Sébastien Lesaint [Wed, 8 Mar 2017 17:02:03 +0000 (18:02 +0100)]
SONAR-6315 remove SQL update to set default QP for language
Sébastien Lesaint [Tue, 7 Mar 2017 17:03:50 +0000 (18:03 +0100)]
SONAR-6315 do all validations before creating any QP at startup
Sébastien Lesaint [Tue, 7 Mar 2017 16:09:47 +0000 (17:09 +0100)]
SONAR-6315 fix missing locale when lowercasing QP name and language
Stas Vilchik [Fri, 10 Mar 2017 13:29:42 +0000 (14:29 +0100)]
SONAR-6315 do not rely on quality profile keys in ITs
required for IT to work now that quality profile key is not based on the QP's name anymore
Sébastien Lesaint [Tue, 7 Mar 2017 15:52:07 +0000 (16:52 +0100)]
SONAR-6315 use standard UUID generation rather than kee based on name
Sébastien Lesaint [Tue, 7 Mar 2017 15:12:34 +0000 (16:12 +0100)]
SONAR-6315 do not check twice for existing QP
Sébastien Lesaint [Tue, 7 Mar 2017 14:56:22 +0000 (15:56 +0100)]
SONAR-6315 cache list of children of quality profiles
to avoid doing the same SQL requests for each activated rule
Sébastien Lesaint [Mon, 6 Mar 2017 15:26:08 +0000 (16:26 +0100)]
SONAR-6315 remove duplicate calls to DB retrieving QualityProfile
Daniel Schwarz [Thu, 16 Mar 2017 10:11:22 +0000 (11:11 +0100)]
SONAR-8857 fail for ws/api/qualityprofiles/compare across orgs
Simon Brandhof [Wed, 15 Mar 2017 11:13:57 +0000 (12:13 +0100)]
SONAR-8857 add organization param to api/qualityprofiles/export
Simon Brandhof [Wed, 15 Mar 2017 10:58:12 +0000 (11:58 +0100)]
SONAR-8857 add organization parameter to api/qualityprofiles/restore_built_in
Simon Brandhof [Wed, 15 Mar 2017 09:31:08 +0000 (10:31 +0100)]
SONAR-8857 add organization to response of api/qualityprofiles/restore
Simon Brandhof [Tue, 14 Mar 2017 14:38:23 +0000 (15:38 +0100)]
SONAR-8857 add parameter "organization" to api/qualityprofiles/restore"
If unset, then the default organization is used.
Simon Brandhof [Mon, 13 Mar 2017 20:18:20 +0000 (21:18 +0100)]
SONAR-8857 clean-up opening of DbSession
Simon Brandhof [Mon, 13 Mar 2017 16:57:41 +0000 (17:57 +0100)]
SONAR-8857 clean-up RestoreAction