Commit Graph

1111 Commits

Author SHA1 Message Date
Jacek
d32d574c7e SONAR-13999 drop organization from QualityGate WS 2020-12-22 20:09:37 +00:00
Michal Duda
019d8c66ad SONAR-13999 removed OrganizationMemberDao 2020-12-22 20:09:37 +00:00
Michal Duda
a8cd264afd SONAR-13999 remove organizations from user WS 2020-12-22 20:09:36 +00:00
Jacek
2c9a70a4ba SONAR-13999 move project default visibility to global settings 2020-12-22 20:09:36 +00:00
Michal Duda
31544958c5 SONAR-13999 remove orgs from permission WS 2020-12-22 20:09:36 +00:00
Michal Duda
bb0b4b79e4 SONAR-13999 remove orgs from issue WS 2020-12-22 20:09:36 +00:00
Michal Duda
6ca1fa59bc SONAR-13999 remove orgs from hotspots WS 2020-12-22 20:09:35 +00:00
Jacek
9ae766e0e8 SONAR-13999 drop organization from Components WS 2020-12-22 20:09:35 +00:00
Michal Duda
c73de56d4b SONAR-13999 remove orgs webhook WS 2020-12-22 20:09:35 +00:00
Jacek
4ad241a3c3 SONAR-13999 drop organization from CE WS 2020-12-22 20:09:35 +00:00
Michal Duda
aade9364a2 SONAR-13999 remove orgs from favorite WS 2020-12-22 20:09:35 +00:00
Duarte Meneses
2ed2e64706 SONAR-14256 Create events not working for branches 2020-12-14 20:07:14 +00:00
Zipeng WU
ea1876bac5 Close all resources automatically 2020-12-14 20:07:14 +00:00
Pierre
ffcea568c7 fix code smells 2020-12-14 20:07:14 +00:00
Zipeng WU
89f05cf116 InputSteam.read() implementation should not return a signed byte 2020-12-14 20:07:14 +00:00
Zipeng WU
5c55c92b79 Code smell fix: remove unused code 2020-12-11 20:07:52 +00:00
Jacek
720c19e83f Code smells test fixes 2020-12-09 20:07:21 +00:00
Pierre
91c611fe56 fix assertions on incompatible types on overall code 2020-12-09 20:07:20 +00:00
Zipeng WU
f25db2cec5 SONAR-12821 Fail to update an application branch name 2020-12-08 20:07:03 +00:00
Michal Duda
94db5278d1 SONAR-14024 fix not purging some pull requests 2020-12-03 20:06:38 +00:00
Belen Pruvost
bfda84b43d SONAR-12659 Improve Quality Profiles Query Performance 2020-12-02 20:06:58 +00:00
Pierre Guillot
5ca7a4f8b7 SONAR-13793 improve ncloc count performance by using projects instead of components 2020-12-02 20:06:58 +00:00
Julien Lancelot
3c492694e7 SONAR-14176 Send email to admins when default admin credential is detected 2020-12-02 20:06:57 +00:00
Jacek
89d9f0efa0 SONAR-14175 Add 'reset_password' column to 'users' table
- add and populate 'reset_password' column in users table
 - add boolean 'resetPassword' to UserDto
2020-12-02 20:06:57 +00:00
Duarte Meneses
736bfc4d5a Speed up unit tests by improving indexing in unit tests
* Unit tests no longer use the LargeSizeHandler for indexing. This handler is designed for indexing large amounts of data and is slower for the data sets used in unit tests.
* Insert all data in DB before indexing in unit tests (there is a huge overhead in each call to index)
2020-11-30 20:07:06 +00:00
Duarte Meneses
59adbb849b Fix cache of MyBatis configuration extensions in unit tests
The cache used a map with an ineffective key, that changed in every call. It now depends on the set of extensions being loaded.
2020-11-30 20:07:06 +00:00
Pierre Guillot
8782863ad2 SONAR-14091 handle indexation tasks bound to an orphan branch 2020-11-30 20:07:06 +00:00
Duarte Meneses
37587a03da SONAR-14033 Refactor storage of applications 2020-11-28 20:06:15 +00:00
Pierre Guillot
dfd9164217 clean code smells (unused import) 2020-11-26 20:06:29 +00:00
Jacek
6e18f97ab5 SONAR-14159 enforce user authentication by default 2020-11-26 20:06:29 +00:00
Pierre Guillot
ca8d160e00 remove code smells 2020-11-25 20:06:27 +00:00
belen-pruvost-sonarsource
7417603c00 SONAR-14057 Set sqProjectKey and sqProjectName 2020-11-25 20:06:27 +00:00
Pierre
2f2d8a0aa1 SONAR-14133 update get_binding changelog 2020-11-25 20:06:26 +00:00
Belen Pruvost
a51816d2a6 SONAR-14058 add url to list_definitions endpoint 2020-11-25 20:06:26 +00:00
Mark Rekveld
253db82122 SONAR-13988 - GitHub ALM settings validation 2020-11-04 20:05:48 +00:00
Zipeng WU
7ce287cb9e SONAR-13941 Move and adapt application CE processor 2020-10-23 20:08:29 +00:00
Michal Duda
36546f92b7 SONAR-13936 cleanup 2020-10-16 20:07:41 +00:00
Julien Lancelot
b493fce1f2 SONAR-13936 Rename OrganizationPermission to GlobalPermission 2020-10-16 20:07:41 +00:00
Julien Lancelot
a4ab9ccfce SONAR-13936 Move default permission templates to internal properties 2020-10-16 20:07:41 +00:00
Michal Duda
4d8f0c4bf3 SONAR-13936 Remove use of organizations in Groups 2020-10-16 20:07:40 +00:00
Julien Lancelot
276abb4233 SONAR-13936 Remove use of organizations in Permissions WS and DB
* SONAR-13936 Remove organization parameters from permissions WS

* SONAR-13936 Remove organization_uuid column from user_roles table

* SONAR-13936 Fix developer ITs

* SONAR-13936 Remove organization_uuid column from group_roles table

* SONAR-13936 Remove organization_uuid column from permission_templates table
2020-10-16 20:07:40 +00:00
Julien Lancelot
073c87437f SONAR-13936 Remove organization parameter from Users
* SONAR-13936 Remove organization parameter from api/users/groups
* SONAR-13936 Remove organization_uuid column from users table
2020-10-16 20:07:40 +00:00
Duarte Meneses
7de02f77f4 SONAR-13936 Drop some Organization code related to Users/Groups/Permission 2020-10-16 20:07:40 +00:00
Pierre
13d76f2a2c SONAR-13903 Remove use of organizations in Quality Profiles and Active Rules 2020-10-05 20:07:42 +00:00
Duarte Meneses
9cf5918d47 SONAR-13861 Remove column 'key_type" from the table 'project_branches' 2020-09-30 20:07:46 +00:00
Michal Duda
6dc2cc9ff6 SONAR-13862 Do not display dismissed warnings in api/ce/analysis_status 2020-09-29 20:07:42 +00:00
Michal Duda
0ecd861055 SONAR-13862 Add a WS for dismissing analysis warning by the current user 2020-09-29 20:07:42 +00:00
Julien Lancelot
bc413ee3db SONAR-13869 Add a flag in telemetry to know if there's some c/c++ unanalyzed code
* SONAR-13869 Compute number of unanalyzed C and C++ files measures
* SONAR-13869 Send unanalyzed C and C++ flags in Telemetry
2020-09-29 20:07:42 +00:00
Julien Lancelot
dae0f392c7 SONAR-13862 Add dismiss information to 'api/ce/analysis_status' WS 2020-09-29 20:07:41 +00:00
Duarte Meneses
c6bb025fe8 SONAR-13835 api/qualitygates/search is not returning deterministic results when many projects have same name 2020-09-22 20:07:12 +00:00
Duarte Meneses
d189558e9c SONAR-13643 Save plugins with type 2020-09-18 20:07:13 +00:00
Pierre
a6889467a2 SONAR-12692 add project_uuid to issues_changes 2020-09-08 20:07:13 +00:00
Jacek
8cba7b5098 SONAR-13572 Add "Buffer Overflow" security category 2020-08-26 20:06:43 +00:00
Duarte Meneses
24bf49516a SONAR-13784 Deleting project should make sure all components are removed 2020-08-24 20:06:06 +00:00
Jacek
ed7d37d968 SONAR-13633 Match existing gitlab projects with gitlab search repos results 2020-08-17 20:06:22 +00:00
Duarte Meneses
3347e33f19 SONAR-13518 Drop unused indexes 2020-08-14 20:16:19 +00:00
Duarte Meneses
670f78693c SONAR-13747 Drop unused DB columns related to periods 2020-08-14 20:16:19 +00:00
Duarte Meneses
e7c1b404c3 SONAR-13696 drop PROJECT_ALM_BINDINGS table 2020-08-14 20:16:19 +00:00
Jacek
dc7916a368 SONAR-11595 drop unused 'value_warning', 'period' columns from 'quality_gate_conditions' table 2020-08-14 20:16:18 +00:00
Pierre Guillot
df64c184d1 SONAR-13759 use uuid instead of id + use the real schema in test instead of a mocked one.. (#3048) 2020-08-13 20:06:34 +00:00
Michal Duda
94ea3b30c8 SONAR-13445 fix failure to export project on Oracle and mssql 2020-08-12 20:06:28 +00:00
Duarte Meneses
1a90571a65 SONAR-13708 P/R purge should depend on last analysis date 2020-08-06 20:06:09 +00:00
Jacek
63a1ca96eb SONAR-13698 Delete 'project_alm_settings' rows when project is deleted 2020-07-30 20:05:46 +00:00
Duarte Meneses
db5fc17519 SONAR-13475 - List Github Enterprise repositories API (#2883)
fixup! SONAR-13475 - List Github Enterprise repositories API (#2883)
2020-07-01 20:05:53 +00:00
Mark Rekveld
39d0d57a49 SONAR-13475 Get GitHub ClientId API 2020-07-01 20:05:53 +00:00
Jacek
db0776c59b Fix oracle selects with case for issue sync progress 2020-06-30 20:05:41 +00:00
Pierre
96af2bcbe7 SONAR-13444 fix logs verbosity and code smells 2020-06-26 20:04:58 +00:00
Jacek
beb0a7404e SONAR-13398 Throw ES exception in case component is a portfolio, subview or app 2020-06-26 20:04:58 +00:00
Jacek
dc2f7ec44a SONAR-13444 Return hasFailure flag for indexation progress status
isCompleted is now based on task rather on project_branches
2020-06-26 20:04:58 +00:00
Jacek
741d14c014 SONAR-13398 Verify needIssue sync flag at project level 2020-06-26 20:04:57 +00:00
Pierre
e85644a5ea SONAR-13400 exclude portfolio (but not applications) from worker peek during indexation 2020-06-26 20:04:57 +00:00
Jacek
14d6de3529 SONAR-13398 fail with 503 api/issues/search WS if needIssueSync is set to true 2020-06-26 20:04:57 +00:00
Pierre
50a3b6070d SONAR-13444 order projects by last analysis date 2020-06-26 20:04:57 +00:00
Pierre
87b9e4db55 SONAR-13444 purge CE indexation tasks when triggering a disaster recovery 2020-06-26 20:04:57 +00:00
Pierre
e4b519ed12 SONAR-13444 background tasks for issue indexation implementation 2020-06-26 20:04:56 +00:00
Jacek
ac3abae642 SONAR-13398 add ws api/ce/indexation_status to track progress of issue indexation 2020-06-26 20:04:56 +00:00
Jacek
93ed0d5e1a SONAR-13399 return 'needIssueSync' flag in api/components/show WS 2020-06-26 20:04:56 +00:00
Jacek
328aafb642 SONAR-13399 return 'needIssueSync' flag in api/components/search_projects WS 2020-06-26 20:04:56 +00:00
Jacek
9b49b87d25 SONAR-13444 add 'need_issue_sync' to 'project_branches' table 2020-06-26 20:04:56 +00:00
Duarte Meneses
f3bd6c51bb Optimize database migrations 2020-06-23 20:04:36 +00:00
Julien Lancelot
8c7e9ded9a SONAR-13327 Fix SSF-107
* SONAR-13327 Create 'SAML_MESSAGE_IDS' table and DAO
* SONAR-13327 Check SAML Message id not already exist during auth
* SONAR-13327 Clean expired SAML Message ids daily
2020-06-15 20:05:16 +00:00
Jacek
41f7eb48fa SONAR-13221 Increase size of FK user_uuid column to 255 2020-06-15 20:05:16 +00:00
Duarte Meneses
3352e9f378 SONAR-13390 SONAR-13391 New Code Reference Branch 2020-06-11 20:04:56 +00:00
Julien Lancelot
46a49f0b5e SONAR-13472 Fix SSF-113
* SONAR-13472 Create 'SESSION_TOKENS' table
* SONAR-13472 Remove 'SESSION_TOKENS' from user when disabling an user
* SONAR-13472 Replace JwtSession expiration duration by a time
* SONAR-13472 Create, update and delete SessionToken during authentication lifecycle
* SONAR-13472 Purge expired session tokens at start-up and every day
* SONAR-13472 Improve log during session tokens cleaning
* Add example to start a Keycloak server already configured
2020-06-11 20:04:55 +00:00
Julien Lancelot
ffe8bb6ab9 Table creation migrations should not be re-entrant
* Table creation should not be re-entrant

The creation of a table should not be re-entrant. Indeed, if the creation of the table is in success but not the creation of the index(es), then next execution of the migration will ignore creation of indexes.

* Simplify some mappers insert usage and some dao tests
2020-06-03 20:04:43 +00:00
Jacek
21dacef212 SONAR-13291 index components with qualifier ['APP', 'TRK', 'VW', 'SVW'] only in Component ES index 2020-05-26 20:05:32 +00:00
Michal Duda
bf05b3c7c2 SONAR-13221 change PK of RULES and update FK 2020-05-25 20:05:22 +00:00
Jacek
88e71c8c97 SONAR-13221 drop id column of USERS table 2020-05-25 20:05:22 +00:00
Jacek
7ea90bda7b SONAR-13221 change USER_ROLES user_id FK to user_uuid 2020-05-25 20:05:22 +00:00
Jacek
584c92dff0 SONAR-13221 change QPROFILE_EDIT_USERS user_id FK to user_uuid 2020-05-25 20:05:22 +00:00
Jacek
7925b2f67b SONAR-13221 change PROPERTIES user_id FK to user_uuid 2020-05-25 20:05:22 +00:00
Jacek
1cb0039c09 SONAR-13221 change PERM_TEMPLATES_USERS user_id FK to user_uuid 2020-05-25 20:05:22 +00:00
Jacek
0e6876dcb3 SONAR-13221 change ORGANIZATION_MEMBERS user_id FK to user_uuid 2020-05-25 20:05:21 +00:00
Jacek
8d7585051a SONAR-13221 change USERS_GROUPS user_id FK to user_uuid 2020-05-25 20:05:21 +00:00
Pierre
ac532a55b9 SONAR-13221 change PK of quality gates from id to uuid, update FKs, update API 2020-05-25 20:05:21 +00:00
Duarte Meneses
16b2b85fc2 SONAR-13221 Update method and var names 2020-05-25 20:05:21 +00:00
Duarte Meneses
85b940dd93 SONAR-13221 change PK of GROUPS and update FKs 2020-05-25 20:05:21 +00:00
Pierre
370f5d3e20 SONAR-13221 change PK of properties 2020-05-25 20:05:21 +00:00
Jacek
94711e1ee7 SONAR-13221 change PK to uuid of RULES_PROFILES table
* change profile_id to profile_uuid for ACTIVE_RULES
2020-05-25 20:05:20 +00:00
Jacek
6c334f9290 SONAR-13221 change PK to uuid of PERMISSION_TEMPLATES table
* change template_id to template_uuid for PERM_TEMPLATES_GROUPS, PERM_TEMPLATES_USERS, PERM_TPL_CHARACTERISTICS
2020-05-25 20:05:20 +00:00
Duarte Meneses
6b41a01454 SONAR-13221 Metrics 2020-05-25 20:05:20 +00:00
Jacek
65e12a8ca0 SONAR-13221 change PK to uuid of RULES_PARAMETERS table
* change rules_parameter_id of ACTIVE_RULE_PARAMETERS table to rules_parameter_uuid
2020-05-25 20:05:20 +00:00
Duarte Meneses
75d31b4c5d Fix ITs 2020-05-25 20:05:20 +00:00
Duarte Meneses
85b9f88486 Fix ITs 2020-05-25 20:05:20 +00:00
Duarte Meneses
34d010c997 SONAR-13240 Change PK of ACTIVE_RULES and update FK 2020-05-25 20:05:20 +00:00
Duarte Meneses
bde9afd00f SONAR-13221 Feedback from review and fix tests 2020-05-25 20:05:20 +00:00
Duarte Meneses
ffd176a905 SONAR-13221 Fix permission template tables 2020-05-25 20:05:20 +00:00
Duarte Meneses
aa8d678e85 SONAR-13221 Update Dbversion83 2020-05-25 20:05:20 +00:00
Duarte Meneses
249c040bad SONAR-13221 Quality gate conditions 2020-05-25 20:05:19 +00:00
Duarte Meneses
9b546ae896 SONAR-13221 Issue changes 2020-05-25 20:05:19 +00:00
Duarte Meneses
d94ddd98de SONAR-13221 File sources 2020-05-25 20:05:19 +00:00
Duarte Meneses
1b0ad62a22 SONAR-13221 User roles 2020-05-25 20:05:19 +00:00
Duarte Meneses
be7d7c94ba SONAR-13221 Group roles 2020-05-25 20:05:19 +00:00
Michal Duda
3d49d20dee SONAR-13235 change PK of manual measures 2020-05-25 20:05:19 +00:00
Jacek
af3821b8fc SONAR-13221 change PK to uuid of PROJECT_QPROFILES table 2020-05-25 20:05:19 +00:00
Pierre
49592e8324 SONAR-13221 replace auto-incremented ID by UUID for user tokens 2020-05-25 20:05:19 +00:00
Jacek
3be8b93009 SONAR-13221 change PK to uuid of PROJECT_MEASURES table 2020-05-25 20:05:19 +00:00
Jacek
6dbee6b742 SONAR-13221 change PK to uuid of ACTIVE_RULE_PARAMETERS table 2020-05-25 20:05:19 +00:00
Jacek
85a8f41b50 Do not recreate UuidFactory for DbTester 2020-05-25 20:05:18 +00:00
Jacek
8b0dda072d SONAR-13221 change PK to uuid of DUPLICATIONS_INDEX table 2020-05-25 20:05:18 +00:00
Pierre
476ea1acef SONAR-13221 replace auto-incremented ID by UUID for ce_activity 2020-05-25 20:05:18 +00:00
Pierre
3774fac209 SONAR-13221 change PK of ce_queue 2020-05-25 20:05:18 +00:00
Julien Lancelot
e3109b5fa3 SONAR-13221 Set primary key of 'SNAPSHOTS' table to column 'UUID' and drop 'ID' 2020-05-25 20:05:18 +00:00
Julien Lancelot
efa3b41443 SONAR-13221 Set primary key of 'ISSUES' table to column 'KEE' and drop 'ID'
* SONAR-13221 Set primary key of 'ISSUES' table to column 'KEE' and drop 'ID'
* SONAR-13221 Move events migration in a dedicated package
2020-05-25 20:05:18 +00:00
Pierre
4de7a25dc4 SONAR-13221 replace auto-incremented ID by UUID for notifications 2020-05-25 20:05:18 +00:00
Julien Lancelot
42c3745035 SONAR-13221 Set primary key of 'EVENTS' table to column 'UUID' and drop 'ID' 2020-05-25 20:05:18 +00:00
Jacek
bd73de8086 SONAR-13188 store qualifier in project measure index
- return applications in api/components/search_projects
2020-04-15 20:03:38 +00:00
Duarte Meneses
32c274e7d7 SONAR-13193 Stop using legacy project ID and use project UUID instead 2020-04-14 20:04:05 +00:00
Duarte Meneses
d8081f847f SONAR-13193 Stop using legacy project ID and use project UUID instead 2020-04-14 20:04:04 +00:00
Duarte Meneses
88597f3717 SONAR-12691 Refactor measures DAO 2020-03-30 20:03:43 +00:00
Duarte Meneses
74384e6705 SONAR-12691 Don't persist project measures that are not historical 2020-03-30 20:03:43 +00:00
Duarte Meneses
4f5231d181 SONAR-12691 Dont delete past measures of directories and files 2020-03-30 20:03:43 +00:00
Julien HENRY
a5e56c8d40 SONAR-13214 Remove org.sonar.api.config.Settings from the API 2020-03-23 20:03:41 +00:00
Simon Brandhof
7af9ac7424 SONAR-13155 use the official Maven coordinates of Oracle driver
'com.oracle.jdbc:ojdbc8' was the coordinates of the artifact manually
deployed to SonarSource repository.
2020-03-21 20:04:03 +00:00
Simon Brandhof
3351fb7e24 SONAR-13155 Drop usage of commons-dbutils
except for unit tests
2020-03-21 20:04:01 +00:00
Julien Lancelot
ec384a1e69 SONAR-13160 Fix display of Portfolio Admin page when project contains UTF-8 characters 2020-03-12 20:04:29 +00:00
Duarte Meneses
0433161433 SONAR-12928 Persistence of live measures is a performance hotspot on Oracle and SQLServer 2020-03-11 20:04:31 +00:00
Sébastien Lesaint
d961c0a405 SONAR-13093 Optimize cache of issues in Compute Engine 2020-03-11 20:04:31 +00:00
Jacek
a91ea17d6e SONAR-13139 Add 'summaryCommentEnable' property to allow enable/disable of showing summary of analysis in discussion tab for GitHub 2020-03-06 20:04:32 +00:00
Jacek
f2911115af SONAR-13126 add summary of analysis to GH discussion tab 2020-03-06 20:04:32 +00:00
Duarte Meneses
a957f86e86 SONAR-13099 ALM settings WS for GitLab should support URL and project binding 2020-02-21 20:46:17 +01:00
Pierre Guillot
531e52e6f1 SONAR-13003 display already imported BBS repos
Co-authored-by: Julien Lancelot <julien.lancelot@sonarsource.com>
2020-02-20 20:46:18 +01:00
Pierre Guillot
966316908d SONAR-13002 auto configure PR settings when BBS project is imported 2020-02-20 20:46:17 +01:00
Pierre Guillot
333a03b9c4 cleanup unused sonarcloud code 2020-02-20 20:46:16 +01:00
Pierre Guillot
86ed2e5290 SONAR-13001 apply review feedback 2020-02-20 20:46:16 +01:00
Pierre Guillot
7915d064a2 SONAR-13001 create endpoint alm_integrations/set_pat 2020-02-20 20:46:16 +01:00
Julien Lancelot
eacba88db0 SONAR-13089 Fix permission template issue when lot of groups
* Remove PermissionQuery#template
* SONAR-13089 Fix api/templates/template_groups WS
* Add UTs for api/templates/template_users WS
2020-02-18 20:46:12 +01:00
Jacek
8fa7616e5a SONAR-12961 add facets for new code period: new_security_hotspots_reviewed, new_security_review_rating 2020-02-11 20:46:12 +01:00
Jacek
77f34d207b SONAR-12961 add facets for: security_hotspots_reviewed, security_review_rating 2020-02-11 20:46:11 +01:00
Julien Lancelot
5401ba28ca SONAR-12962 Compute Security Review measures on new code 2020-02-11 20:46:11 +01:00