Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
spell00 committed Nov 3, 2020
1 parent 451bee8 commit 0e89111
Show file tree
Hide file tree
Showing 116 changed files with 7,443 additions and 7,475 deletions.
2,255 changes: 1,192 additions & 1,063 deletions composer.lock

Large diffs are not rendered by default.

31 changes: 0 additions & 31 deletions modules/api/docs/LorisRESTAPI_v0.0.4-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,37 +263,6 @@ will return a JSON object of the form:
}
```
#### 2.1.6 Single project dicoms tar files
```
GET /projects/$ProjectName/dicoms
```
will return a JSON object of the form:
```js
{
"Dicoms": [
{
"Candidate": "587630",
"PSCID": "DCC090",
"Entity_type": "Human",
"Visit": "V1",
"Visit_date": "2018-04-20",
"CenterID": "1",
"Site": "Data Coordinating Center",
"date_acquired": "2018-04-20",
"date_first_archived": "2019-05-23 13:46:39",
"date_last_archived": "2019-05-23 13:46:39",
"tarchiveid": "27",
"DicomArchiveID": "1.2.840.113745.101000.1022000.39911.6153.5242769",
"Archive": "2018/DCM_2018-04-20_ImagingUpload-13-42-zcoZR0.tar",
"Source": "/tmp/ImagingUpload-13-42-zcoZR0",
"FileName": "DCM_2018-04-20_ImagingUpload-13-42-zcoZR0.tar"
},
...
]
}
```
### 2.2 Instrument Forms
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ class Channels extends Endpoint implements \LORIS\Middleware\ETagCalculator
{
return md5(json_encode($this->_handleGET($request)->getBody()));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ class Metadata extends Endpoint implements \LORIS\Middleware\ETagCalculator
{
return md5(json_encode($this->_handleGET($request)->getBody()));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,4 @@ class Recording extends Endpoint implements \LORIS\Middleware\ETagCalculator

return md5(json_encode($signature));
}
}
}
169 changes: 0 additions & 169 deletions modules/api/php/endpoints/project/dicoms.class.inc

This file was deleted.

3 changes: 0 additions & 3 deletions modules/api/php/endpoints/project/project.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ class Project extends Endpoint implements \LORIS\Middleware\ETagCalculator
case 'recordings':
$handler = new Recordings($this->_project);
break;
case 'dicoms':
$handler = new Dicoms($this->_project);
break;
default:
return new \LORIS\Http\Response\JSON\NotFound();
}
Expand Down
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/project/recordings.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,4 @@ class Recordings extends Endpoint implements \LORIS\Middleware\ETagCalculator
{
return md5(json_encode($this->_handleGET($request)->getBody()));
}
}
}
36 changes: 0 additions & 36 deletions modules/api/php/models/projectdicomsobject.class.inc

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion modules/api/test/login_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function testLoginSuccess(): void
{
$this->_authenticator->expects($this->once())
->method('passwordAuthenticate')
->with('test_username', 'test_password')
->with(['test_username', 'test_password'])
->willReturn(true);

$handler = $this->getMockBuilder('\LORIS\api\Endpoints\Login')
Expand Down
2 changes: 1 addition & 1 deletion modules/behavioural_qc/php/behavioural_qc.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class Behavioural_QC extends \NDB_Form
* all the feedback at all levels. In the case of just a candidate
* set we return all feedbacks at every level for that candidate.
*
* @param null $test_name the value of test name
* @param ?string $test_name the value of test name
* @param null $candID the value of candidate ID
* @param null $visit_label the value of visit label
* @param int|string $site the id or default value of the site
Expand Down
4 changes: 4 additions & 0 deletions modules/candidate_parameters/ajax/formHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ function editFamilyInfoFields(\Database $db)
$db->update('family', $updateValues, ['ID' => $siblingID]);

$i++;

// Otherwise there is an error about a possible infinite loop
// How is siblingCandID updated to get updated to null eventually?
$siblingCandID = $siblingCandID;
}
}

Expand Down
Loading

0 comments on commit 0e89111

Please sign in to comment.