Skip to content

Commit

Permalink
Merge 3.6.1 into master (#2559)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamjallen authored Nov 12, 2024
2 parents edc0698 + 4c66d89 commit c653bb0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/cdash.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
'expires' => env('PASSWORD_EXPIRATION', 0),
'unique' => env('UNIQUE_PASSWORD_COUNT', 0),
],
'version' => '3.6.0',
'version' => '3.6.1',
'registration' => [
'email' => [
'verify' => env('REGISTRATION_EMAIL_VERIFY', true),
Expand Down
5 changes: 3 additions & 2 deletions database/migrations/2024_04_17_183212_remove_test_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ public function up(): void
// Take care of any invalid rows which do not have an output ID before we add a foreign key
$num_b2t_rows_deleted = DB::delete('
DELETE FROM build2test
WHERE outputid NOT IN (
SELECT id
WHERE NOT EXISTS (
SELECT 1
FROM testoutput
WHERE testoutput.id = build2test.outputid
)
');
if ($num_b2t_rows_deleted > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ public function up(): void
DELETE FROM testmeasurement
WHERE
testid IS NULL OR
testid NOT IN (
SELECT id from build2test
NOT EXISTS (
SELECT 1
FROM build2test
WHERE build2test.id = testmeasurement.testid
)
');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function up(): void

// Execute at most 10k batches of buildwise updates
if (config('database.default') === 'pgsql') {
for ($i = 0; $i < ceil($count / 10000); $i++) {
for ($i = 1; $i <= ceil($count / 10000); $i++) {
DB::update('
UPDATE label2test
SET testid = build2test.id
Expand All @@ -35,7 +35,7 @@ public function up(): void
', [$i]);
}
} else {
for ($i = 0; $i < ceil($count / 10000); $i++) {
for ($i = 1; $i <= ceil($count / 10000); $i++) {
DB::update('
UPDATE label2test, build2test
SET label2test.testid = build2test.id
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cdash",
"version": "3.6.0",
"version": "3.6.1",
"description": "Continuous integration dashboard.",
"repository": "https://github.com/Kitware/CDash",
"license": "BSD-3-Clause",
Expand Down

0 comments on commit c653bb0

Please sign in to comment.