Commit Graph

1111 Commits

Author SHA1 Message Date
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
Duarte Meneses
5cb5deb5e5 SONAR-12802 SONAR-12927 Fix moved file detection for cobol and when calculating new lines 2020-02-07 20:46:16 +01:00
Duarte Meneses
6ac9d2618e SONAR-12689 change WS to use ProjectDto 2020-01-31 20:46:09 +01:00
Michal Duda
1ad6b11311 SONAR-12689 migrated tags, updated test framework 2020-01-31 20:46:09 +01:00
Duarte Meneses
ace9a50d55 SONAR-12689 Separate storage of projects/apps from their components and branches 2020-01-31 20:46:09 +01:00
Sébastien Lesaint
d42fce99f8 SONAR-12723 api/issues/tags and component_tags ignore Hotspots 2020-01-13 20:46:34 +01:00
Jacek
97fd4b10e7 SONAR-12723 Filter hotspots in api/issues/bulk_change 2020-01-13 20:46:34 +01:00
Jacek
c890861887 SONAR-12723 remove hotspots from issues API 2020-01-13 20:46:33 +01:00
Sébastien Lesaint
26604f21a7 SONAR-12723 text fixtures enforce split of issue from secu hotspot 2020-01-13 20:46:33 +01:00
Sébastien Lesaint
7d5898c9ad SONAR-12726 api/hotspots/search supports Applications 2020-01-13 20:46:30 +01:00
Jacek
114efaae21 SONAR-12725 drop manual vulnerabilities
* drop manual vulnerabilities
* remove issues `from_hotspot` column usage
2020-01-13 20:46:26 +01:00
Sébastien Lesaint
8c4a7402f8 SONAR-12717 refactor SecurityStandardHelper into SecurityStandards
and cleanup responsibility for parsing serialized tags and security standards into table RULES
2020-01-13 20:46:25 +01:00
Wouter Admiraal
3f6f549627 Format all headers for 2020 2020-01-07 20:46:09 +01:00
Pierre Guillot
f17b1e3e6c SONAR-12773 add gitlab alm settings 2019-12-16 20:46:13 +01:00
Duarte Meneses
d1fd889554 Fix code quality issues and reduce dependency on Guava 2019-12-10 20:46:09 +01:00
Duarte Meneses
ebdae1d5b7 SONAR-12673 Fix issue management 2019-12-09 20:46:17 +01:00
Michal Duda
39f7a38219 SONAR-12636 set excludeFromPurge on branch creation based on global settings 2019-12-09 20:46:15 +01:00
Duarte Meneses
4244d2ea76 SONAR-12679 Use single branch type 2019-12-09 20:46:15 +01:00
Michal Duda
d23f59d180 SONAR-12636 add a global setting that defines default list of branches to keep 2019-12-09 20:46:15 +01:00
Duarte Meneses
63c9fb57a0 SONAR-12626 remove references to SLB 2019-12-09 20:46:15 +01:00
Duarte Meneses
1b7c2ba7e1 SONAR-12626 CE and Web no longer support SLBs 2019-12-09 20:46:14 +01:00
Julien Lancelot
6c12781c2f SONAR-12666 Fix groups sorting when high number of groups 2019-12-02 20:46:10 +01:00
Sébastien Lesaint
b5725e190b SONAR-12701 upgrade H2 from 1.3 to 1.4 2019-11-18 20:21:08 +01:00
Julien Lancelot
969407f6a6 SONAR-12512 Fix SQL queries on MsSQL 2019-11-06 10:04:34 +01:00
Julien Lancelot
9cf2e94394 SONAR-12512 SONAR-12514 SONAR-12515 Fix ordering of lists WS 2019-11-06 10:04:32 +01:00
Julien Lancelot
6635d689c3 SONAR-12512 SONAR-12514 SONAR-12515 Increase ALM key from 80 to 200 2019-11-06 10:04:30 +01:00
Julien Lancelot
34b205a13e SONAR-12515 Allow binding of projects on Bitbucket ALM 2019-11-06 10:04:28 +01:00
Julien Lancelot
bab304dac9 SONAR-12515 Decorate Azure PR using new settings 2019-11-06 10:04:28 +01:00
Julien Lancelot
b02a0a1458 SONAR-12515 Allow binding of projects on Azure ALM 2019-11-06 10:04:27 +01:00
Pierre Guillot
b1d5e0b3bb SONAR-12512 Decorate PR using configuration from new ALM_SETTINGS tables 2019-11-06 10:04:27 +01:00
Julien Lancelot
ab573e2a25 SONAR-12512 Allow project binding on multiple GitHub instances 2019-11-06 10:04:26 +01:00
Pierre Guillot
87faff43bc SONAR-12576 Allow configuration of multiple Bitbucket instances 2019-11-06 10:04:25 +01:00
Pierre Guillot
26b2689886 SONAR-12515 Allow configuration of multiple Azure instances 2019-11-06 10:04:25 +01:00
Julien Lancelot
58d04f69bb SONAR-12512 Allow configuration of multiple GitHub instances 2019-11-06 10:04:19 +01:00
Duarte Meneses
0b3dcbf2c6 SONAR-10408 Web service api/qualityprofiles/copy is too slow 2019-10-21 20:21:09 +02:00
Jacek
caf0309d6e SONAR-12531 drop usage of UserIdentity#getLogin and UserIdentity#setLogin (#2139)
* remove login generation strategy
* add migration to remove gh login strategy + code review fixes
* support same login for new user and update login for SQ authority
2019-10-17 20:21:03 +02:00
Jacek
b83cfa7f76 Fix some code smell debt (#2143) 2019-10-15 20:21:05 +02:00
Sébastien Lesaint
ab6fd46a1f fix missing class constructor (mostly GSon serialized classes) 2019-10-14 20:21:05 +02:00
Sébastien Lesaint
4039016980 SONAR-12510 do not fail in views/define when app branch already exist 2019-10-11 20:21:07 +02:00
Sébastien Lesaint
d17f0721a3 SONAR-12513 last used date is never set on new Quality Profiles
all QP start with no last used date in the Database, which is represented by a null value in the column,
the update method ensures no update is done if new date is older than the current one
it does so by comparing the new date with the current value, however, this test always returns false if the current value is null

this way of updating the last used date was introduced to fix SONAR-10462 (Update of last used date on Quality Profile can fail with Deadlock on Postgres)
since then, last used date of new QP (which includes any new install of SQ since 7.8, including the LTS) is never set
2019-10-09 20:21:07 +02:00
Sébastien Lesaint
140e84fbdf fix some quality flaws on the new code period 2019-10-09 20:21:06 +02:00
Jacek
1c6c03d9ed Fixing SonarQube analysis issues (#2084) 2019-09-24 20:21:18 +02:00
Jacek
831fc476ad Fix UT for components count 2019-09-24 20:21:18 +02:00
Duarte Meneses
d59c35feef SONAR-12390 Prevent analysis deletion when it is a baseline 2019-09-24 20:21:17 +02:00
Jacek
e8f1a84869 Fix conflicts after rebase 2019-09-24 20:21:17 +02:00
Jacek
bc586fa19b SONAR-12412 - support import/export of new code periods for projects (#2024)
* SONAR-12412 - support import/export of new code periods for projects
2019-09-24 20:21:16 +02:00
Duarte Meneses
d53977760b Improve code quality and test coverage 2019-09-24 20:21:15 +02:00
Duarte Meneses
89ab883abd New Code Period table 2019-09-24 20:21:15 +02:00
Duarte Meneses
d650e5eeb4 Feature/dm/migrate new code period (#2017)
* SONAR-12396 List new code periods for all branches with effective current values

* SONAR-12347 Migrate old definitions of leak period
2019-09-24 20:21:14 +02:00
Jacek
4a83bd0b28 SONAR-12393 - support remove new code period on branch, project removal (#2002)
* SONAR-12393 - support remove new code period on branch, project removal
2019-09-24 20:21:14 +02:00
Duarte Meneses
4a7cdbda9c SONAR-12366 Create WS to read/write New Code Periods 2019-09-24 20:21:13 +02:00
Duarte Meneses
7eaf366fa7 SONAR-12394 Load analysis new code period based on hierarchy of New Code Period settings 2019-09-24 20:21:13 +02:00
Duarte Meneses
14bd90f47e SONAR-12364 Fix update of values 2019-09-24 20:21:13 +02:00
Jacek
09f8f0f6ca SONAR-12364 - SonarQube analysis fixes 2019-09-24 20:21:13 +02:00
Jacek
099e2173f4 SONAR-12364 - IT fixes, add uniq new code period table constraint 2019-09-24 20:21:13 +02:00
Jacek
545d742d5d SONAR-12364 - remove manual baseline column from usage 2019-09-24 20:21:12 +02:00
Jacek
3ca59798cc SONAR-12364 - migrate project analysis delete action to new concept 2019-09-24 20:21:12 +02:00
Jacek
ba41dbfdf3 SONAR-12364 - switch from manual baseline to New Code Period concept 2019-09-24 20:21:12 +02:00
Duarte Meneses
d2bba78239 SONAR-12366 Create WS to read/write New Code Periods 2019-09-24 20:21:12 +02:00
Duarte Meneses
09a0e34e0e Create UUID for new_code_periods 2019-09-24 20:21:12 +02:00
Duarte Meneses
52db58fa07 add Upsert to NewCodePeriodDao 2019-09-24 20:21:12 +02:00
Duarte Meneses
0279e128fd SONAR-12366 Create WS to read/write New Code Periods 2019-09-24 20:21:11 +02:00
Jacek
b926d57936 SONAR-12365 create new_code_period table (#1986)
* Create new_code_periods table along with dto and dao
2019-09-24 20:21:11 +02:00
Jacek
0443794329 Fix mssql CE activity query and incorrect usage of AlwaysIncreasingSystem2 (#2077) 2019-09-18 20:21:04 +02:00
Jacek
2be53fd8bc SONAR-5366 - restore custom rules (#2060)
- restore custom rules
- reduce SQL query executions
- code readability improvements
2019-09-18 09:51:47 +02:00
Sébastien Lesaint
bb7e74da6d SONAR-12398 make schedule refresh of porfolios work 2019-09-16 20:21:02 +02:00
Jacek
ad082b3d7b SONAR-12214 - order by created_at instead of technical id (#2029)
* SONAR-12214 - order by created_at instead of technical id
2019-09-05 20:21:02 +02:00
Sébastien Lesaint
2b029d9b12 use testFixtures instead of test configuration of db-dao 2019-09-02 20:21:04 +02:00
Sébastien Lesaint
b789401479 use testFixtures instead of test configuration of db-core 2019-09-02 20:21:04 +02:00
philippe-perrin-sonarsource
8de7715e05 SONAR-8520 Make schema dumper cross-platform 2019-08-14 20:21:11 +02:00
Sébastien Lesaint
a5c7558400 remove DBUnit 2019-08-09 20:21:24 +02:00
Sébastien Lesaint
ba3c8baa18 CreateDb initialize DB without starting full SQ
+ db-core & db-migration UTS are executed only on H2
2019-08-09 20:21:24 +02:00
Sébastien Lesaint
b83c58503a SONAR-8520 remove H2 specific way of creating database in Unit tests 2019-08-09 20:21:24 +02:00
Sébastien Lesaint
e8985121ed SONAR-8520 init H2 with Java code as with all other DBs
schema-h2.ddl file is replaced by autogenerated file schema-sq.ddl (and moved to module sonar-db-dao)
files rows-h2.sql and schema_migrations-h2.ddl are dropped
command "./gradlew :server:sonar-db-dao:dumpSchema" can be used to update schema-sq.ddl
but this is optional as build will always ensure file is up-to-date with java changes and fail the build if it is not (required for CI builds)
2019-08-09 20:21:24 +02:00
Sébastien Lesaint
a787e0d957 SONAR-8520 fix missing not null in schema-h2.ddl for table PROPERTIES 2019-08-09 20:21:24 +02:00
Sébastien Lesaint
26aceee575 SONAR-8520 move H2 scripts to sonar-db-dao 2019-08-09 20:21:24 +02:00
Sébastien Lesaint
2ad2359c06 SONAR-9882 column should be named ANALYSIS_PROPERTIES.ANALYSIS_UUID 2019-07-31 20:21:14 +02:00
Jacek
eb9b158713 SONAR-8115 storing project quality gate in table (#1919)
* migrate properties to project_qgate table

* use project_qgates table instead of property

* change usage of project quality gate in CE
2019-07-31 20:21:14 +02:00
Jacek
44a69c7974 SONAR-12259 - remove deprecated request params, response fields from api/projects (#1881)
* remove deprecated params from api/projects/bulk_delete
* remove deprecated projectsIds param
* update documentation for api/projects/bulk_delete

* remove deprecated params from api/projects/bulk_update_key
* remove deprecated params: key, projectId, id
* update documentation for api/projects/bulk_update_key

* remove deprecated params from api/projects/create
* remove deprecated param: key
* update documentation for api/projects/create

* remove deprecated params from api/projects/delete
* remove deprecated param: projectId, key
* update documentation for api/projects/delete

* remove deprecated apis: api/projects/ghosts | index | provisioned

* remove deprecated params from api/projects/search
* remove deprecated param: projectIds
* remove deprecated response fields: id (uuid)
* remove all usage of deprecated params: page, pageSize (remove associated tests)
* update documentation for api/projects/search

* remove deprecated params from api/projects/search_my_projects
* remove deprecated response fields: id (uuid)
* update documentation for api/projects/search_my_projects

* remove deprecated params from api/projects/update_key
* remove deprecated params: id, projectId, key, newKey
* change "from" param to be mandatory

* remove ProjectListTest.java file as endpoint does not exist anymore

* bump orchestrator version
* remove ComponentDao and ComponentMapper methods associated with deprecated code

* use "project" param when calling api/projects/create
* update ProjectDumpOperations#renameProjectKey to use api/projects/update_key endpoint

* use java api calls instead of URLs

*  bump orchestrator version to latest released 3.26.0.2111
2019-07-22 20:21:09 +02:00
Jacek
7d80528377 SONAR-8115 Storing default qgate in table (blue green deploy safety) (#1925)
* add DDL for project_qgate table

* support saving/update/delete to project quality gate and properties

* add db migration tests
2019-07-19 20:21:15 +02:00
Duarte Meneses
e4c5ada51d Clean deps 2019-07-17 20:21:13 +02:00
Benoit
7f1afd8ce4 MMF-769 User can close their account (#1861) 2019-07-12 20:21:16 +02:00
Duarte Meneses
6ce2c8689b Extract implementation from plugin API and create new module sonar-plugin-api-impl 2019-07-12 20:21:15 +02:00
Duarte Meneses
93dc977090 Extract implementation from plugin API and create new module sonar-plugin-api-impl 2019-07-12 20:21:14 +02:00
Sébastien Lesaint
d959cb81e0 SONAR-12261 fix project QG search on MsSQL 2019-07-10 08:36:54 +02:00
Simon Brandhof
983f593231 SONAR-12246 remove MySQL dialect 2019-07-10 08:36:52 +02:00
Simon Brandhof
5b6b842644 SONAR-12246 Remove SQL requests specific to MySQL 2019-07-10 08:36:52 +02:00
Simon Brandhof
f833180b66 SONAR-12246 Remove dependencies on MySQL driver 2019-07-10 08:36:52 +02:00
mickael-caro-sonarsource
fbcd3b7693 MMF-1737 Analyze Bitbucket repositories with Azure Pipelines (#1879)
* SC-762-  Tutorial for new BbC projects should mention support of Azure Pipelines

* Updated tutorial for bitbucketcloud

* SC-801 - Organization and its eventual app install related entity are now mandatory while targeting a bound project on ALMs.

* SC-801 --TEMP Added INFO logs

* SC-801 - Added back return of alm binding if no project alm is present.

* SC-801 - Fixed added log, failing unit tests before.

* SC-801 - Added extra logs (TEMP)

* SC-801 - Reverted unwanted imports.

* SC-801 - Adaptation of UT following the add of logs TO BE REVERTED ONCE OK

* SC-801 - Changed newly added log levels to debug to see if they are popping in the CE logs.

* SC-801 - Add constant for Bitbucket API Version in its REST client.

* SC-760 - Updated documentation to support Azure Pipelines.

* SC-801 - Reverted all temporary logs

* fixup! SC-760 - remove inside file links to avoid failing of unint tests.

* SC-801 - Fixes after review

* SC-760 - Splited documentation to 3 in total, with azure pipelines and bitbucket pipelines.

* SC-762 - Updated Snapshot

* SC-762 - Updated onboarding tutorial + documentation

* SC-762 - Updated formating of .tsx following yarn validate.

* SC-801 - Added unit tests + removed codesmell

* SC-760 - Updated documentation markdowns for Bitbucket.

* SC-801 - Removed unused import.

* SC-801 - Updated failing unit tests.

* SC-801 - Fix typo

* SC-801 - Resolving issues following analysis by SQ
2019-07-10 08:36:51 +02:00
Janos Gyerik
478a71d5d0 SC-799 Add temporary live migration to delete empty personal orgs 2019-07-05 20:21:13 +02:00
Benoît Gianinetti
c2ee935557 SC-764 Return alm organization type in /api/organizations/search 2019-07-05 20:21:13 +02:00
Michal Duda
97a815175c Merge pull request #1789 from SonarSource/fix/md/SONAR-11845-project-import-should-handle-external-issues
SONAR-11845 project import should handle external issues
2019-06-28 08:45:58 +02:00
Franck Arnulfo
e74f2a8c8b Replace 3 regex with 1 and precompiled pattern 2019-06-28 08:45:52 +02:00
Julien Lancelot
071dd097a3 SONAR-12221 Add pagination to api/qualitygates/search 2019-06-28 08:45:45 +02:00
Michal Duda
856a11e826 SONAR-11560 fix api/permissions/users sorting 2019-06-14 20:21:10 +02:00
Sébastien Lesaint
b64932e6d0 SONAR-11745 deletion of disable component's child tables is resilient 2019-06-13 20:21:13 +02:00
Sébastien Lesaint
fc2a6271ae SONAR-11745 do not fail when loading issues of disabled components 2019-06-13 20:21:13 +02:00
Diego Marcilio
0c7a136085 Using already-defined constants instead of duplicating their values
Fixes multiple squid:S1192 violations (only for already defined constants)
2019-06-13 20:21:12 +02:00
Sébastien Lesaint
2f48b31961 SONAR-12146 fix resilience of deletion of project/branch/view 2019-06-13 20:21:12 +02:00
Duarte Meneses
36d13bae20 SONAR-12038 Add pendingTime to api/ce/activity_status and ComputeEngineTasks JMX metrics 2019-06-03 20:21:18 +02:00
Sébastien Lesaint
aefa1e5ffb SONAR-11675 delete scan contexts and CE activities on project purge 2019-05-31 10:17:08 +02:00