Jacek
b83cfa7f76
Fix some code smell debt (#2143)
4 years ago
Sébastien Lesaint
ab6fd46a1f
fix missing class constructor (mostly GSon serialized classes)
4 years ago
Sébastien Lesaint
4039016980
SONAR-12510 do not fail in views/define when app branch already exist
4 years ago
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
4 years ago
Sébastien Lesaint
140e84fbdf
fix some quality flaws on the new code period
4 years ago
Jacek
1c6c03d9ed
Fixing SonarQube analysis issues (#2084)
4 years ago
Jacek
831fc476ad
Fix UT for components count
4 years ago
Duarte Meneses
d59c35feef
SONAR-12390 Prevent analysis deletion when it is a baseline
4 years ago
Jacek
e8f1a84869
Fix conflicts after rebase
4 years ago
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
4 years ago
Duarte Meneses
d53977760b
Improve code quality and test coverage
4 years ago
Duarte Meneses
89ab883abd
New Code Period table
4 years ago
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
4 years ago
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
4 years ago
Duarte Meneses
4a7cdbda9c
SONAR-12366 Create WS to read/write New Code Periods
4 years ago
Duarte Meneses
7eaf366fa7
SONAR-12394 Load analysis new code period based on hierarchy of New Code Period settings
4 years ago
Duarte Meneses
14bd90f47e
SONAR-12364 Fix update of values
4 years ago
Jacek
09f8f0f6ca
SONAR-12364 - SonarQube analysis fixes
4 years ago
Jacek
099e2173f4
SONAR-12364 - IT fixes, add uniq new code period table constraint
4 years ago
Jacek
545d742d5d
SONAR-12364 - remove manual baseline column from usage
4 years ago
Jacek
3ca59798cc
SONAR-12364 - migrate project analysis delete action to new concept
4 years ago
Jacek
ba41dbfdf3
SONAR-12364 - switch from manual baseline to New Code Period concept
4 years ago
Duarte Meneses
d2bba78239
SONAR-12366 Create WS to read/write New Code Periods
4 years ago
Duarte Meneses
09a0e34e0e
Create UUID for new_code_periods
4 years ago
Duarte Meneses
52db58fa07
add Upsert to NewCodePeriodDao
4 years ago
Duarte Meneses
0279e128fd
SONAR-12366 Create WS to read/write New Code Periods
4 years ago
Jacek
b926d57936
SONAR-12365 create new_code_period table (#1986)
* Create new_code_periods table along with dto and dao
4 years ago
Jacek
0443794329
Fix mssql CE activity query and incorrect usage of AlwaysIncreasingSystem2 (#2077)
4 years ago
Jacek
2be53fd8bc
SONAR-5366 - restore custom rules (#2060)
- restore custom rules
- reduce SQL query executions
- code readability improvements
4 years ago
Sébastien Lesaint
bb7e74da6d
SONAR-12398 make schedule refresh of porfolios work
4 years ago
Jacek
ad082b3d7b
SONAR-12214 - order by created_at instead of technical id (#2029)
* SONAR-12214 - order by created_at instead of technical id
4 years ago
Sébastien Lesaint
2b029d9b12
use testFixtures instead of test configuration of db-dao
4 years ago
Sébastien Lesaint
b789401479
use testFixtures instead of test configuration of db-core
4 years ago
philippe-perrin-sonarsource
8de7715e05
SONAR-8520 Make schema dumper cross-platform
4 years ago
Sébastien Lesaint
a5c7558400
remove DBUnit
4 years ago
Sébastien Lesaint
ba3c8baa18
CreateDb initialize DB without starting full SQ
+ db-core & db-migration UTS are executed only on H2
4 years ago
Sébastien Lesaint
b83c58503a
SONAR-8520 remove H2 specific way of creating database in Unit tests
4 years ago
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)
4 years ago
Sébastien Lesaint
a787e0d957
SONAR-8520 fix missing not null in schema-h2.ddl for table PROPERTIES
4 years ago
Sébastien Lesaint
26aceee575
SONAR-8520 move H2 scripts to sonar-db-dao
4 years ago
Sébastien Lesaint
2ad2359c06
SONAR-9882 column should be named ANALYSIS_PROPERTIES.ANALYSIS_UUID
4 years ago
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
4 years ago
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
4 years ago
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
4 years ago
Duarte Meneses
e4c5ada51d
Clean deps
4 years ago
Benoit
7f1afd8ce4
MMF-769 User can close their account (#1861)
4 years ago
Duarte Meneses
6ce2c8689b
Extract implementation from plugin API and create new module sonar-plugin-api-impl
4 years ago
Duarte Meneses
93dc977090
Extract implementation from plugin API and create new module sonar-plugin-api-impl
5 years ago
Sébastien Lesaint
d959cb81e0
SONAR-12261 fix project QG search on MsSQL
4 years ago
Simon Brandhof
983f593231
SONAR-12246 remove MySQL dialect
4 years ago