Commit Graph

141 Commits

Author SHA1 Message Date
Simon Brandhof
ba7e66a7f6 SONAR-8353 add WebhookDeliveryDao 2016-11-14 12:18:50 +01:00
Teryk Bellahsene
82060eef2e SONAR-8363 Mark just created projects as favorite 2016-11-14 11:17:46 +01:00
Julien Lancelot
0962f303a5 SONAR-8377 Remove issue filters dao 2016-11-10 09:57:51 +01:00
Simon Brandhof
8301fe8e28 SONAR-8351 Send JSON payload over HTTP when project analysis is complete 2016-11-09 21:34:38 +01:00
Simon Brandhof
f050424587 SONAR-8351 share OkHttpClient utilities
sonar-ws correctly configures OkHttpClient for the
support of HTTPS, proxy (incl. authentication), timeouts and user agent.
This code should be reused by web server and compute engine, for
example when sending webhook payloads.

The new class OkHttpClientProvider allows web server/CE
to instantiate and configure a single instance of OkHttpClient.
2016-11-09 20:48:20 +01:00
Julien Lancelot
003b0805e5 SONAR-8355 Remove measure filters Dao 2016-11-09 16:47:34 +01:00
Julien Lancelot
6d53f242b3 SONAR-8354 Remove dao related to dashboards 2016-11-09 16:47:34 +01:00
Simon Brandhof
c004eacf33 SONAR-8134 merge PermissionRepository into PermissionTemplateService 2016-10-21 15:58:39 +02:00
Simon Brandhof
4770d7ad2a SONAR-8134 rename PermissionService
It's only about templates, so class is renamed
PermissionTemplateService.
2016-10-21 15:58:39 +02:00
Julien Lancelot
972fbd3a52 SONAR-8227 Rename AuthorizationIndexer to PermissionIndexer 2016-10-20 13:16:50 +02:00
Julien Lancelot
7b3ad7add7 SONAR-8227 Move org.sonar.server.issue.index.IssueAuthorizationIndexer to org.sonar.server.permission.index.AuthorizationIndexer
This indexer will also be used to feed the authorization type of projectmeasures index
2016-10-20 13:12:07 +02:00
Teryk Bellahsene
93410000b4 SONAR-8287 Refactor project measures index and WS domain 2016-10-18 17:01:46 +02:00
Simon Brandhof
0021e9357a SONAR-8134 merge PermissionMapper into AuthorizationDao 2016-10-16 19:10:47 +02:00
Simon Brandhof
522ab3078d SONAR-8134 add support of organizations in UserSession 2016-10-16 19:10:44 +02:00
Simon Brandhof
bf7b10fc5c SONAR-8134 add dao to verify authorizations 2016-10-16 19:10:44 +02:00
Simon Brandhof
8a475eff47 SONAR-8134 Remove check of authorization in PermissionUpdater
so that Compute Engine can call it without emulating
authroization stack.
Authorization is verified directly in the api/permissions
web services.
2016-10-16 19:10:40 +02:00
Julien Lancelot
2bf5b53cdb SONAR-8222 Update project measures index at the end of each project analysis 2016-10-12 18:11:08 +02:00
Sébastien Lesaint
377b208781 SONAR-8155 add UserSession#isRoot and checkIsRoot 2016-10-12 12:24:29 +02:00
Sébastien Lesaint
f8ea3a5f88 SONAR-8155 drop mutability in UserSession impls where possible 2016-10-12 12:24:29 +02:00
Sébastien Lesaint
82a14b1821 SONAR-8151 add property sonar.organizations.anyoneCanCreate 2016-10-12 10:48:47 +02:00
Simon Brandhof
423d0917ec Fix Quality flaws 2016-09-30 10:03:37 +02:00
Simon Brandhof
b792684ba4 Remove unused QProfileProjectLookup 2016-09-28 18:07:34 +02:00
Simon Brandhof
f9d05e78a6 Add UserPermissionDao to DbClient 2016-09-28 16:32:39 +02:00
Sébastien Lesaint
fe24831c5b SONAR-8100 add DefaultOrganization to Pico container in CE and Web
includes a ThreadLocal cache to avoid multiple calls to DB for same information
2016-09-28 15:26:29 +02:00
Sébastien Lesaint
b5da9d55d9 SONAR-8095 add OrganizationDao 2016-09-26 15:06:49 +02:00
David Rautureau
1d20e24831 Prepare for next development iteration 2016-09-19 17:32:59 +02:00
Simon Brandhof
3f5215522d SONAR-8079 drop cache RuleRepositories 2016-09-14 16:27:00 +02:00
Simon Brandhof
eede3a7a99 Remove unused QProfileComparison from Compute Engine 2016-09-14 11:36:50 +02:00
Simon Brandhof
35a12e4132 Remove unused class BuiltInProfiles 2016-09-14 11:36:50 +02:00
Simon Brandhof
3499984a4c SONAR-7851 drop ActivityDao 2016-09-12 14:11:59 +02:00
Simon Brandhof
6c0b5563fb SONAR-7851 add QProfileChangeDao 2016-09-12 14:11:59 +02:00
Simon Brandhof
42f5097916 SONAR-7908 allow web followers to index docs into Elasticsearch 2016-09-12 14:11:58 +02:00
Sébastien Lesaint
e2bc2d6cf0 SONAR-6992 make sonar.core.id persistent and always a UUID 2016-09-12 10:50:56 +02:00
Sébastien Lesaint
526583323c SONAR-7676 PropertiesDao supports IS_EMPTY, TEXT_VALUE and CLOB_VALUE 2016-09-09 09:11:42 +02:00
Sébastien Lesaint
874bc9637e SONAR-7676 removing dead code from Properties related classes
PropertiesDao, PropertiesMapper, Persistentsettings and their tests
2016-09-09 09:11:42 +02:00
Julien Lancelot
ade78dc77f SONAR-8055 Declare emails configuration with PropertyDefinition 2016-09-06 11:23:54 +02:00
Simon Brandhof
f79030e299 SONAR-7678 server-side stateless settings
* Settings class becomes abstract as multiple implementations
are used. Can't become an interface for binary
backward-compatibility of API

* tests should use MapSettings, an in-memory implementation
of Settings

* web server uses a thread-specific cache of settings when
processing HTTP requests

* web server does not have a cache of settings during startup,
except for the system settings loaded from sonar.properties

* Compute Engine uses a thread-specific cache of settings when
  processing a task. Cache is clear at end of task.

 * some useless methods of PersistentSettings are removed
2016-09-06 10:13:55 +02:00
Sébastien Lesaint
1c607e1946 SONAR-7675 add InternalPropertiesImpl to Web and Ce containers 2016-09-05 11:32:17 +02:00
Sébastien Lesaint
eab5b2144b remove commented out code in ComputeEngineContainerImpl 2016-09-05 11:32:17 +02:00
Sébastien Lesaint
6c561c138b SONAR-7675 add InternalPropertiesDao 2016-09-05 11:32:17 +02:00
Julien Lancelot
6e1540023e Rename package org.sonar.server.settings.ws to org.sonar.server.setting.ws 2016-08-31 10:39:45 +02:00
Sébastien Lesaint
df1ae26b7c SONAR-7841 remove property sonar.ce.maxLogsPerTask 2016-08-29 09:48:29 +02:00
Sébastien Lesaint
3b5998a64f SONAR-7911 restore purge of CE_ACTIVITIES + purge CE_SCANNER_CONTEXT 2016-08-29 09:48:29 +02:00
Sébastien Lesaint
6c8d497329 fix coverage of CeHttpServer 2016-08-25 15:05:41 +02:00
Sébastien Lesaint
087481a535 SONAR-7825 changeloglevel WS now change CE's log level too 2016-08-23 15:14:18 +02:00
Sébastien Lesaint
eff8f60c08 SONAR-7825 make SystemInfoHttpAction support only GET 2016-08-23 15:14:18 +02:00
Sébastien Lesaint
3e08dd56ab SONAR-7825 rename ProcessCommands#systemInfoUrl to #httpUrl 2016-08-23 15:14:18 +02:00
Sébastien Lesaint
72c6c20873 SONAR-7825 alter CE HTTP server for general use 2016-08-23 15:14:18 +02:00
Sébastien Lesaint
2c2a897184 SONAR-7825 move CE specific container modules to server-ce 2016-08-23 15:14:18 +02:00
Sébastien Lesaint
e9ac521dd1 SONAR-7844 add ScannerContextDao 2016-08-22 10:25:43 +02:00