-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CenterID class to LORIS #7359
Conversation
29be378
to
526a4c9
Compare
Can't create a new new_profile. |
@kongtiaowang should be fixed (assuming it still passes GitHub actions after a rebase..) |
@driusan last issue. Fatal error: Uncaught TypeError: ValidatableIdentifier::__construct(): Argument #1 ($value) must be of type string, null given, called in /var/www/html/modules/dicom_archive/php/dicomarchiverowprovisioner.class.inc on line 75 and defined in /var/www/html/php/libraries/ValidatableIdentifier.php:57 Stack trace: #0 /var/www/html/modules/dicom_archive/php/dicomarchiverowprovisioner.class.inc(75): ValidatableIdentifier->__construct(NULL) #1 /var/www/html/src/Data/Provisioners/DBRowProvisioner.php(118): LORIS\dicom_archive\DicomArchiveRowProvisioner->getInstance(Array) #2 [internal function]: IteratorIterator@anonymous->current() #3 [internal function]: IteratorIterator->next() #4 /var/www/html/src/Data/Table.php(83): FilterIterator->next() #5 /var/www/html/src/Data/Table.php(98): LORIS\Data\Table->toArray(Object(User)) #6 /var/www/html/php/libraries/DataFrameworkMenu.class.inc(144): LORIS\Data\Table->toJSON(Object(User)) #7 /var/www/html/php/libraries/NDB_Menu_Filter.class.inc(648): DataFrameworkMenu->toJSON() #8 /var/www/html/php/libraries/NDB_Page.class.inc(728): NDB_Menu_Filter->display() #9 /var/www/html/php/libraries/DataFrameworkMenu.class.inc(169): NDB_Page->handle(Object(Laminas\Diactoros\ServerRequest)) #10 /var/www/html/php/libraries/NDB_Page.class.inc(707): DataFrameworkMenu->handle(Object(Laminas\Diactoros\ServerRequest)) #11 /var/www/html/php/libraries/Module.class.inc(414): NDB_Page->process(Object(Laminas\Diactoros\ServerRequest), Object(LORIS\dicom_archive\Dicom_Archive)) #12 /var/www/html/modules/dicom_archive/php/module.class.inc(72): Module->handle(Object(Laminas\Diactoros\ServerRequest)) #13 /var/www/html/src/Middleware/ResponseGenerator.php(50): LORIS\dicom_archive\Module->handle(Object(Laminas\Diactoros\ServerRequest)) #14 /var/www/html/src/Middleware/AuthMiddleware.php(63): LORIS\Middleware\ResponseGenerator->process(Object(Laminas\Diactoros\ServerRequest), Object(LORIS\dicom_archive\Module)) #15 /var/www/html/src/Router/ModuleRouter.php(74): LORIS\Middleware\AuthMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(LORIS\dicom_archive\Module)) #16 /var/www/html/src/Middleware/ExceptionHandlingMiddleware.php(35): LORIS\Router\ModuleRouter->handle(Object(Laminas\Diactoros\ServerRequest)) #17 /var/www/html/src/Router/BaseRouter.php(112): LORIS\Middleware\ExceptionHandlingMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(LORIS\Router\ModuleRouter)) #18 /var/www/html/src/Middleware/ResponseGenerator.php(50): LORIS\Router\BaseRouter->handle(Object(Laminas\Diactoros\ServerRequest)) #19 /var/www/html/src/Middleware/ContentLength.php(52): LORIS\Middleware\ResponseGenerator->process(Object(Laminas\Diactoros\ServerRequest), Object(LORIS\Router\BaseRouter)) #20 /var/www/html/htdocs/index.php(48): LORIS\Middleware\ContentLength->process(Object(Laminas\Diactoros\ServerRequest), Object(LORIS\Router\BaseRouter)) #21 {main} thrown in /var/www/html/php/libraries/ValidatableIdentifier.php on line 57 |
Objects should not be compared with strict equality
We do not have a CenterID to associate with tarchive rows that have no session (ie. an invalid patient name), so need a DataInstance type that doesn't implement SiteHaver for those rows.
@kongtiaowang need to see if it still passes the tests but it should be fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This adds a new CenterID class and updates it throughout LORIS.
This adds a new CenterID class and updates it throughout LORIS.
I updated SiteHaver and MultiSiteHaver interfaces, user->hasCenterID, and then followed through all the numerous phan errors that were introduced.