Stas Vilchik
a5ca5f81b5
SONAR-8119 fix period selection
2016-10-28 11:11:36 +02:00
Stas Vilchik
1b93884d15
SONAR-8291 display internal WS parameters only if asked
2016-10-28 09:51:45 +02:00
Stas Vilchik
ca8082ba03
SONAR-8291 improve positioning of parameter badges
2016-10-28 09:45:18 +02:00
Stas Vilchik
e0ae4a26c5
SONAR-8324 Fix maintainability rating tooltip
2016-10-28 09:40:40 +02:00
Julien Lancelot
0437299b4e
SONAR-5430 User authentication by HTTP header
2016-10-27 17:47:56 +02:00
Stas Vilchik
a60fc53baf
display colorful ratings on leak period on measures page
2016-10-27 16:10:33 +02:00
Stas Vilchik
2e67a1f7e9
fix deprecation badge color on web api page
2016-10-27 16:10:33 +02:00
Stas Vilchik
c42b0872aa
improve projects search on the notifications page
...
require 2 characters for search, don't preload projects, increase input width
2016-10-27 14:07:31 +02:00
Stas Vilchik
0596925993
do not display global error when source viewer can't show code due to security reason
2016-10-27 13:59:18 +02:00
Stas Vilchik
cae60cc46c
improve front end dx ( #1331 )
2016-10-27 13:37:55 +02:00
Julien Lancelot
263d545497
SONAR-8286 Fix issue message on coverage common rules
2016-10-27 10:32:00 +02:00
Julien Lancelot
78d6bb26f3
Revert "SONAR-5430 User authentication by HTTP header - WIP"
...
This reverts commit 59616bcca2
.
2016-10-27 10:31:16 +02:00
Julien Lancelot
59616bcca2
SONAR-5430 User authentication by HTTP header - WIP
2016-10-27 09:55:32 +02:00
Julien Lancelot
301b38feda
Fix quality flaws
2016-10-27 08:36:50 +02:00
Julien Lancelot
ae09c87857
SONAR-8282 Deprecate overall/it coverage fields from file sources
2016-10-26 17:26:19 +02:00
Julien Lancelot
59887e4c0a
Fix quality flaw
2016-10-26 14:37:37 +02:00
Julien Lancelot
16fde3e774
SONAR-8282 Clean up code related to removal of IT/overall coverage
2016-10-26 14:06:52 +02:00
Julien Lancelot
936985bf5e
Fix quality flaws
2016-10-26 13:35:39 +02:00
Julien Lancelot
331558e106
SONAR-8283 Migrate quality gates after removall of IT/overall coverage metrics
2016-10-26 11:55:16 +02:00
Julien Lancelot
1609c61c56
SONAR-8120 Remove components list from api/measures/search
2016-10-25 16:04:56 +02:00
Julien Lancelot
5f0f8f4872
SONAR-8120 Replace component uuid by component key in measures list
2016-10-25 15:57:17 +02:00
Julien Lancelot
8836dd4591
SONAR-8160 WS measures/search handles permission check on several projects
2016-10-25 15:34:48 +02:00
Julien Lancelot
6dce6c46c7
SONAR-8120 Add unit tests
2016-10-25 15:34:07 +02:00
Julien Lancelot
4c65ae712e
SONAR-8120 Remove componentIds parameter
2016-10-25 10:24:25 +02:00
Julien Lancelot
2415c0342d
SONAR-8315 Make facets optional in WS api/components/search_projects
2016-10-24 16:21:30 +02:00
Julien Lancelot
7fbdae0b91
SONAR-8323 api/components/search_projects should return "sticky" facets
2016-10-24 15:39:26 +02:00
Teryk Bellahsene
be7fe2686f
SONAR-8319 Add Quality Gate facet to WS api/components/search_projects
2016-10-24 15:11:23 +02:00
Julien Lancelot
fa2be375fe
SONAR-8287 Hidden metrics should be allowed in project search action
2016-10-24 13:38:32 +02:00
Julien Lancelot
1a64babff4
SONAR-8221 Fix project measures indexing on MySQL
...
Replace streaming of projects by first loading all projects once, then load measures project by project
2016-10-24 12:02:33 +02:00
Sébastien Lesaint
9388dfa0d2
SONAR-8176 do not fail when ES is not available in api/system/info
2016-10-21 16:47:41 +02:00
Sébastien Lesaint
d608bb5237
SONAR-8318 api/project_links/search support null name or type
2016-10-21 16:47:41 +02:00
Sébastien Lesaint
3e73b2b43c
SONAR-8306 don't fail inserting scanner context if task is restarted
2016-10-21 16:47:41 +02:00
Simon Brandhof
e393f5c67d
SONAR-8134 fix isolation of organizations when dropping global permissions on user
2016-10-21 16:21:21 +02:00
Simon Brandhof
aeb761544c
SONAR-8134 fix isolation of organizations when dropping global permissions
...
on user
2016-10-21 15:58:40 +02:00
Simon Brandhof
f34266f025
SONAR-8278 Support organizations in web service api/permissions/search_templates
2016-10-21 15:58:40 +02: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
Simon Brandhof
c2ed13e241
SONAR-8134 remove ComponentFinder from PermissionService
2016-10-21 15:58:39 +02:00
Simon Brandhof
8f414992c8
SONAR-8134 do not verify provisioning permission in PermissionService
2016-10-21 15:58:39 +02:00
Simon Brandhof
2b6c82353a
SONAR-8134 use a single DbSession in ReportSubmitter
2016-10-21 15:58:39 +02:00
Simon Brandhof
fe3646e1f2
SONAR-8134 remove useless CE step about permissions
...
No need to apply default permission template in CE
as it's already done during submit of report to WS.
2016-10-21 15:58:39 +02:00
Simon Brandhof
c41809efb4
SONAR-8278 add DbSession param to DefaultRubyComponentService#create()
2016-10-21 15:58:39 +02:00
Simon Brandhof
4e0308df92
SONAR-8278 remove coupling of Ruby on class PermissionService
2016-10-21 15:58:39 +02:00
Simon Brandhof
ce7e18ffa4
SONAR-8278 clean-up SearchTemplateAction and its test
2016-10-21 15:58:39 +02:00
Simon Brandhof
ee433377a2
SONAR-8134 replace WsTester by WsActionTester
...
in tests of permissions web services
2016-10-21 15:58:39 +02:00
Julien HENRY
d434820785
SONAR-8310 Prevent generic coverage plugin to load in SonarQube
2016-10-21 13:17:30 +02:00
Stas Vilchik
b712967932
SONAR-8300 Create new "Projects" page [first iter]
2016-10-21 10:24:17 +02:00
Stas Vilchik
3d8cdcbf85
move /projects to /projects/admin
2016-10-21 10:24:17 +02:00
Julien Lancelot
1d1e150dfa
SONAR-8287 Only accepts numeric, enabled and visible metrics
2016-10-21 08:12:21 +02:00
Julien Lancelot
5cd5847842
SONAR-8287 Support operators '>=' and '<'
2016-10-21 08:12:21 +02:00
Sébastien Lesaint
06d4a96525
SONAR-8152 make current user "owner" in api/organizations/create
...
by creating a group "Owners" with all global permissions and make current user a member of this group
2016-10-20 17:18:44 +02:00
Sébastien Lesaint
ff99d26ec5
SONAR-8192 fix unstability of UT of api/users/create
2016-10-20 17:17:55 +02:00
Sébastien Lesaint
663d924d25
SONAR-8192 fix unstable UT for api/user_groups/delete
2016-10-20 17:17:55 +02:00
Sébastien Lesaint
a10c6f301d
fix some quality flaws (UT coverage and useless imports)
2016-10-20 17:17:54 +02:00
Sébastien Lesaint
3201be2777
SONAR-8134 add organization uuid to unique index of table GROUP_ROLES
2016-10-20 17:17:53 +02:00
Sébastien Lesaint
a729e675c7
SONAR-8100 check user's organization in api/organizations/delete
2016-10-20 17:17:53 +02:00
Julien Lancelot
e49f905d89
SONAR-8221 Fix issue on MySQL when indexing project measures without analysis
2016-10-20 16:01:03 +02:00
Julien Lancelot
20aa37c82a
SONAR-8221 Add IT on search projects action
2016-10-20 16:01:03 +02:00
Simon Brandhof
c545808bb4
SONAR-8267 SONAR-8265 add organization parameter
...
to web services api/permissions/search_global_permissions
and api/permissions/users.
Both WS are touched at the same time as the same refactoring
is required in UserPermissionDao.
2016-10-20 15:10:13 +02:00
Simon Brandhof
e68c4f18bb
SONAR-8261 add test to UserIdentityAuthenticatorTest about organizations
2016-10-20 15:10:13 +02:00
Simon Brandhof
8981c0fe32
SONAR-8134 improve PermissionTemplateDao
...
- deprecate the methods that do not support organizations
- do not commit session in DAO
2016-10-20 15:10:13 +02:00
Simon Brandhof
1e663e7149
SONAR-8261 Support organizations in web service api/permissions/groups
2016-10-20 15:10:12 +02:00
Simon Brandhof
612f98e594
SONAR-8134 remove unused production code from RoleDao
2016-10-20 15:10:12 +02:00
Simon Brandhof
f4a5e4e037
SONAR-8263 isolate organizations when removing user permissions
2016-10-20 15:10:12 +02:00
Teryk Bellahsene
e5285d032d
fixup! SONAR-8233 WS components/search_projects return facets for desired metrics
2016-10-20 14:50:03 +02:00
Teryk Bellahsene
984e61de79
SONAR-8233 WS components/search_projects return facets for desired metrics
2016-10-20 14:50:03 +02:00
Teryk Bellahsene
7f47ee191a
SONAR-8232 WS api/components/search_projects return the ncloc facet
2016-10-20 14:47:37 +02:00
Julien Lancelot
972fbd3a52
SONAR-8227 Rename AuthorizationIndexer to PermissionIndexer
2016-10-20 13:16:50 +02:00
Julien Lancelot
b93c54d38c
SONAR-8227 Replace user login by user id in permission indexer
2016-10-20 13:16:50 +02:00
Julien Lancelot
4bcc72d004
SONAR-8227 Add DbSession parameter in AuthorizationIndexer index methods
2016-10-20 13:16:50 +02:00
Julien Lancelot
1ab2d1cc43
SONAR-8227 Remove permission from index at the same time than removing a project from index
2016-10-20 13:16:50 +02:00
Julien Lancelot
384c1aa3ae
SONAR-8227 Use authorization index when searching project measures
2016-10-20 13:16:50 +02:00
Julien Lancelot
19199a9f6d
SONAR-8227 Fix project measures authorization index definition
...
Routing is missing in order to use a "join" in ES
2016-10-20 13:12:07 +02:00
Julien Lancelot
ac8031ea04
SONAR-8227 Index project measures authorization
2016-10-20 13:12:07 +02:00
Julien Lancelot
980460baad
SONAR-8227 Index authorization by projects
2016-10-20 13:12:07 +02:00
Julien Lancelot
7765461296
SONAR-8227 Replace selection of date by projects in authorization index
2016-10-20 13:12:07 +02:00
Julien Lancelot
d53f84fda5
SONAR-8227 Remove source from issue/authorization index
2016-10-20 13:12:07 +02:00
Julien Lancelot
533f9c875f
SONAR-8227 Remove DbUnit usage from AuthorizationDao/Indexer
2016-10-20 13:12:07 +02:00
Julien Lancelot
a9e6f5c21b
SONAR-8227 Create project measures authorisation index
2016-10-20 13:12:07 +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
Julien Lancelot
09d6b71a92
SONAR-8307 Filter by Quality Gate in WS api/components/search_projects
2016-10-20 10:40:03 +02:00
Julien Lancelot
ef46d8123e
SONAR-8307 Project measures query now supports equal operator
2016-10-19 18:15:30 +02:00
Sébastien Lesaint
72dac36bcd
SONAR-8172 check user's organization in api/organizations/update
2016-10-19 15:55:06 +02:00
Sébastien Lesaint
d874514624
SONAR-8192 update root flag of members in api/user_groups/remove
2016-10-19 14:45:13 +02:00
Sébastien Lesaint
98142b6ae3
SONAR-8192 use a System2 impl always returning a bigger number
...
provides bullet proof reliability to unit tests checking updates actually occured by checking the value of the update_at column
2016-10-19 14:45:13 +02:00
Sébastien Lesaint
fdbaf90499
SONAR-8192 set/unset root flag when creating a user via WS
...
depending upon whether the default group has the System Adminisiter permission or not
2016-10-19 14:45:13 +02:00
Sébastien Lesaint
0043949d55
SONAR-8192 set root flag in UserIdentityAuthenticator
...
depending upon whether groups of the user have or not System Administer permision and whether, when it already exists, the user has user permission "System Administer"
2016-10-19 14:45:13 +02:00
Sébastien Lesaint
c1e059083d
SONAR-8192 set/unset root with admin permission change though WS
...
this applies only to the admin permission of the default organization
2016-10-19 14:45:13 +02:00
Sébastien Lesaint
718789f18f
SONAR-8192 rename DefaultOrganizationProviderRule to TestDefaultOrganizationProvider
2016-10-19 14:45:13 +02:00
Sébastien Lesaint
7c33862f55
SONAR-8192 add OrganizationDbTester and add it to DbTester
2016-10-19 14:45:13 +02:00
evernat
836937cefa
Do not throw UnsupportedOperationException when httpRequest.getSession(false) is called
...
When httpRequest.getSession(false) is called, the callers does not ask to create a http session. (javadoc of HttpServletRequest: "If create is false and the request has no valid HttpSession, this method returns null.")
So throwing UnsupportedOperationException is not needed in this case and returning null is enough.
This will fix a [blocking issue](https://github.com/javamelody/sonar-javamelody/issues/4 ) in the [Sonar JavaMelody plugin](https://github.com/javamelody/javamelody/wiki/UserGuide#sonar-plugin ).
2016-10-19 11:58:08 +02:00
Julien HENRY
0e3e1a3323
SONAR-8286 Reword common rules about coverage
2016-10-19 11:50:15 +02:00
Julien Lancelot
7b26a6ac4e
SONAR-8287 Project measure value is a double in ES index
2016-10-18 17:01:47 +02:00
Julien Lancelot
66f10931df
SONAR-8287 Feed measures in project measures index
2016-10-18 17:01:46 +02:00
Teryk Bellahsene
93410000b4
SONAR-8287 Refactor project measures index and WS domain
2016-10-18 17:01:46 +02:00
Teryk Bellahsene
0b6399084b
SONAR-8287 Filter measures in ES
2016-10-18 17:01:20 +02:00
Teryk Bellahsene
a63bb2a1d7
SONAR-8287 Add nested field to index type 'projectmeasures'
2016-10-18 17:01:19 +02:00
Julien Lancelot
3ecbbba4ff
SONAR-8287 Add filter parameter in api/components/search_projects
2016-10-18 17:01:19 +02:00
Julien HENRY
b0d4220a7e
SONAR-8284 Remove overall/IT coverage data from scanner report
2016-10-18 16:00:26 +02:00
Julien Lancelot
302e609f58
SONAR-8223 Update project measures index when creating/updating project
2016-10-17 15:35:54 +02:00
Julien Lancelot
286f2294e5
SONAR-8223 Clean up ComponentService
...
Remove no more used code
BulkUpdateKeyAction is now using ComponentService for the bulk update of key
2016-10-17 15:35:54 +02:00
Simon Brandhof
6bbc81b3eb
SONAR-8291 make organization parameters as internal
2016-10-17 11:50:06 +02:00
Simon Brandhof
935c1feb44
SONAR-8291 display internal flag in web api documentation
2016-10-17 11:50:06 +02:00
Simon Brandhof
70384534dd
SONAR-8291 support internal params in WS api/webservices/list
2016-10-17 11:50:06 +02:00
Stas Vilchik
0dc798228f
SONAR-5857 remove "E" option
2016-10-17 10:59:14 +02:00
Simon Brandhof
7d9c992c39
SONAR-8280 organization in WS api/permissions/update_template
2016-10-16 23:16:41 +02:00
Simon Brandhof
2822ef62cc
SONAR-8297 organization in WS api/permissions/template_users
2016-10-16 23:16:40 +02:00
Simon Brandhof
1e4267f2b7
SONAR-8296 organization in WS api/permissions/template_groups
2016-10-16 23:16:40 +02:00
Simon Brandhof
7a778aa7df
SONAR-8279 organization in WS api/permissions/set_default_template
2016-10-16 23:16:40 +02:00
Simon Brandhof
2b7b047064
SONAR-8277 organization in WS api/permissions/remove_user_from_template
2016-10-16 23:16:40 +02:00
Simon Brandhof
6ae5a93158
SONAR-8276 organization in WS api/permissions/remove_project_creator_from_template
2016-10-16 23:16:39 +02:00
Simon Brandhof
fba1b6f1a5
SONAR-8275 organization in WS api/permissions/remove_group_from_template
2016-10-16 23:16:39 +02:00
Simon Brandhof
fcdbb222fe
SONAR-8268 organization in WS api/permissions/delete_template
2016-10-16 23:16:39 +02:00
Simon Brandhof
95829331ba
SONAR-8274 organization in WS api/permissions/create_template
2016-10-16 23:16:38 +02:00
Simon Brandhof
eeec0fa9d6
SONAR-8271 organization in WS api/permissions/add_user_to_template
2016-10-16 23:16:38 +02:00
Simon Brandhof
c550a843f2
SONAR-8269 organization in WS api/permissions/add_group_to_template
2016-10-16 23:16:38 +02:00
Simon Brandhof
7305fac471
SONAR-8270 organization in WS api/permissions/add_project_creator_to_template
2016-10-16 23:16:37 +02:00
Simon Brandhof
6189f1973d
SONAR-8272 SONAR-8273 organization in WS to apply permission templates
2016-10-16 23:16:37 +02:00
Simon Brandhof
25a69084ff
SONAR-8259 add missing test about authorization
...
in api/permissions/add_group
2016-10-16 19:10:50 +02:00
Simon Brandhof
51382dee14
SONAR-8258 check admin permission on related organization
...
in api/user_groups/update
2016-10-16 19:10:50 +02:00
Simon Brandhof
25c8423336
SONAR-8257 check admin permission on related organization
...
in api/user_groups/update
2016-10-16 19:10:49 +02:00
Simon Brandhof
175b5abd3a
SONAR-8253 do not delete the last administrators of organization
2016-10-16 19:10:49 +02:00
Simon Brandhof
4c8e21483b
SONAR-8252 check admin permission on related organization
2016-10-16 19:10:48 +02:00
Simon Brandhof
79127d1214
SONAR-8254 check admin permission on related organization
2016-10-16 19:10:48 +02:00
Simon Brandhof
cc2e1acfe9
SONAR-8134 isolate deletion of permissions
2016-10-16 19:10:48 +02:00
Simon Brandhof
0021e9357a
SONAR-8134 merge PermissionMapper into AuthorizationDao
2016-10-16 19:10:47 +02:00
Simon Brandhof
3d8584435b
SONAR-8263 verify authorization on organization
2016-10-16 19:10:46 +02:00
Simon Brandhof
fa95ba331f
SONAR-8262 verify authorization on organization
2016-10-16 19:10:46 +02:00
Simon Brandhof
d6d5e58a17
SONAR-8134 support of orgs in PermissionPrivilegeChecker
2016-10-16 19:10:46 +02:00
Simon Brandhof
229c62410e
SONAR-8260 verify authorization on organization
2016-10-16 19:10:45 +02:00
Simon Brandhof
37ffdd61ec
SONAR-8264 verify authorization on organization
2016-10-16 19:10:45 +02:00
Simon Brandhof
8c170c2c47
SONAR-8134 add missing "since 6.2" on parameter "organization"
2016-10-16 19:10:45 +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
Simon Brandhof
b534578274
SONAR-8134 Rename WsProjectRef to ProjectWsRef
...
for consistency with org.sonar.server.usergroups.ws.ProjectId and ProjectWsRef
2016-10-16 19:10:35 +02:00
Simon Brandhof
658eca8138
SONAR-8134 Rename ProjectRef to ProjectId
...
for consistency with org.sonar.server.usergroups.ws.ProjectId
2016-10-16 19:10:20 +02:00
Julien Lancelot
2e2d8c71b0
SONAR-8221 Take into account date when indexing project measures at startup
2016-10-14 07:44:09 +02:00
Simon Brandhof
0e55e8b6c4
SONAR-8134 remove RoleDao#countComponentPermissions()
...
replaced by GroupPermissionDao#hasRootComponentPermissions() and
UserPermissionDao#hasRootComponentPermissions()
2016-10-13 12:18:42 +02:00
Simon Brandhof
b2ab634816
SONAR-8134 remove RoleDao#deleteGroupRole()
...
replaced by GroupPermissionDao#delete()
2016-10-13 12:18:42 +02:00
Simon Brandhof
0d6f98364a
SONAR-8134 make column group_roles.organization_uuid not null
2016-10-13 12:18:42 +02:00
Simon Brandhof
5975e17715
SONAR-8134 populate column group_roles.organization_uuid on upgrade
2016-10-13 12:18:42 +02:00
Simon Brandhof
1a169ae320
SONAR-8134 feed column group_roles.organization_uuid
...
when adding permissions to a group
2016-10-13 12:18:42 +02:00
Simon Brandhof
735f1b954c
SONAR-8134 add column group_roles.organization_uuid
...
Column is currently empty.
2016-10-13 12:18:42 +02:00
Simon Brandhof
73b71c9e8e
Support organizations in user group web services
2016-10-13 12:13:11 +02:00
Simon Brandhof
8595a520f3
Support organizations in permission template web services
2016-10-13 12:13:11 +02:00
Simon Brandhof
b05d763913
Support organizations in permission web services
2016-10-13 12:13:11 +02:00
Simon Brandhof
2f8ff37deb
Refactor some tests using DbTester
2016-10-13 12:13:11 +02:00
Simon Brandhof
a9fe0a484c
SONAR-8134 add new user to default group _of default organization_
2016-10-13 12:13:11 +02:00
Simon Brandhof
2d2d1a2b81
SONAR-8134 add column permission_templates.organization_uuid
2016-10-13 12:13:11 +02:00