-
Notifications
You must be signed in to change notification settings - Fork 177
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
[EEG] EEG uploader module #8409
Conversation
28dd3c2
to
66babb4
Compare
01fc09d
to
285f5c3
Compare
@jeffersoncasimir, ready for testing |
6589b7b
to
3e98457
Compare
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.
I successfully uploaded a recording to a candidate. Works as intended.
Review notes:
-
The uploaded file exceeds the upload_max_filesize directive in php.ini
was properly reported on the front-end but an error that came before, which was due to thepost_max_size
being too low, reported as a generic failure on the front-end but was adequately reported in the server log. -
After uploading successfully, the only way to upload again or to have an updated view of the browser is by refreshing the page.
-
Did you mean to hard-code the notification e-mails here?
Thanks @jeffersoncasimir for this very good review, I addressed your comments. |
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.
Tested the new changes and the only issue remaining is that the new e-mail template was not pushed to the PR.
This actually does not trigger an error on the front-end (no success/fail modal, hangs forever after 100%, unobvious 500 response) nor the server log (nothing unusual reported). The file does still get uploaded.
I have also tested it with success by replacing the e-mail template reference with an existing one.
Oups, thought I did. Solved :) |
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.
In addition to the couple comments, this seems to be a new module, in which case it's missing the standardized README that every module in LORIS is supposed to have.
modules/electrophysiology_uploader/php/electrophysiology_uploader.class.inc
Outdated
Show resolved
Hide resolved
'UploadUrl' => null, | ||
]; | ||
foreach ($emails as $email) { | ||
\Email::send( |
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.
Shouldn't this be using the notifier class? @ridz1208 Is there a difference between Notify and Email::send?
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.
This is still missing a standardized README for the module.
**Note**: Uploaded recordings are erased from the | ||
`EEGUploadIncomingPath` following a successful archival and insertion | ||
through the LORIS-MRI pipeline. | ||
|
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.
Are there any interactions with other modules / LORIS that need to be defined? EEG Browser presumably?
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.
No, no other module interactions yet.
Co-authored-by: Dave MacFarlane <[email protected]>
Add new module intended to allow users to upload and browse electrophysiology files.
No description provided.