Skip to content

Commit

Permalink
Merge remote-tracking branch 'aces/25.0-release' into 25To26
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave MacFarlane committed Oct 2, 2024
2 parents 760f302 + 9177127 commit f35b060
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class Qc extends Endpoint implements \LORIS\Middleware\ETagCalculator
);
}

$inputqcstatus = $data['QCStatus'] ?? null;
$inputqcstatus = $data['QC'] ?? null;
$inputselected = $data['Selected'] ?? null;

// TODO :: This is (and was) not checking or handling Caveats
Expand Down
6 changes: 5 additions & 1 deletion modules/mri_violations/php/mri_violations.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ class Mri_Violations extends \DataFrameworkMenu
);
default:
return (new Provisioner())
->filter(new UserCenterMatchOrNull())
->filter(
new UserCenterMatchOrNullOrAnyPermission(
$this->allSitePermissionNames(),
)
)
->filter(new UserProjectMatchOrNull());
}
}
Expand Down
8 changes: 4 additions & 4 deletions raisinbread/test/api/LorisApiImagesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function testGetCandidatesCandidVisitImagesFilename(): void
),
true
);
$this->assertEquals(null, $imagesArray);
$this->assertEquals(null, $imagesArray);
}

/**
Expand Down Expand Up @@ -286,7 +286,7 @@ public function testPutCandidatesCandidVisitImagesFilenameQc(): void
'Visit' => $visit,
'File' => $filename
],
"QC" => 'pass',
"QC" => 'Pass',
"Selected" => false,
'Caveats' => [
'0' => [
Expand Down Expand Up @@ -335,7 +335,7 @@ public function testGetCandidatesCandidVisitImagesFilenameFormatBbrowser(): void
"candidates/$this->candidTest/$this->visitTest/images/" .
"$this->imagefileTest/format/brainbrowser"
);
}
}
$this->assertEquals(200, $response->getStatusCode());
// Verify the endpoint has a body
$body = $response->getBody();
Expand Down Expand Up @@ -401,7 +401,7 @@ public function testGetCandidatesCandidVisitImagesFilenameFormatBbrowser(): void
$this->assertArrayHasKey('zspace', $imagesArray);
$this->assertArrayHasKey('space_length', $imagesArray['zspace']);
$this->assertArrayHasKey('start', $imagesArray['zspace']);
$this->assertArrayHasKey('step', $imagesArray['zspace']);
$this->assertArrayHasKey('step', $imagesArray['zspace']);
}

/**
Expand Down
8 changes: 4 additions & 4 deletions raisinbread/test/api/LorisApiImages_v0_0_3_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function testGetCandidatesCandidVisitImagesFilename(): void
),
true
);
$this->assertEquals(null, $imagesArray);
$this->assertEquals(null, $imagesArray);
}

/**
Expand Down Expand Up @@ -285,7 +285,7 @@ public function testPutCandidatesCandidVisitImagesFilenameQc(): void
'Visit' => $visit,
'File' => $filename
],
"QC" => 'pass',
"QC" => 'Pass',
"Selected" => false,
'Caveats' => [
'0' => [
Expand Down Expand Up @@ -334,7 +334,7 @@ public function testGetCandidatesCandidVisitImagesFilenameFormatBbrowser(): void
"candidates/$this->candidTest/$this->visitTest/images/" .
"$this->imagefileTest/format/brainbrowser"
);
}
}
$this->assertEquals(200, $response->getStatusCode());
// Verify the endpoint has a body
$body = $response->getBody();
Expand Down Expand Up @@ -400,7 +400,7 @@ public function testGetCandidatesCandidVisitImagesFilenameFormatBbrowser(): void
$this->assertArrayHasKey('zspace', $imagesArray);
$this->assertArrayHasKey('space_length', $imagesArray['zspace']);
$this->assertArrayHasKey('start', $imagesArray['zspace']);
$this->assertArrayHasKey('step', $imagesArray['zspace']);
$this->assertArrayHasKey('step', $imagesArray['zspace']);
}

/**
Expand Down

0 comments on commit f35b060

Please sign in to comment.