-
Notifications
You must be signed in to change notification settings - Fork 175
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
[Electrophysiology Browser] New module #5230
Conversation
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.
Bravo Cecile. i'll re-review later
modules/electrophysiology_browser/php/electrophysiologybrowserrow.class.inc
Outdated
Show resolved
Hide resolved
modules/electrophysiology_browser/php/electrophysiologybrowserrow.class.inc
Outdated
Show resolved
Hide resolved
modules/electrophysiology_browser/php/electrophysiologybrowserrowprovisioner.class.inc
Outdated
Show resolved
Hide resolved
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.
@johnsaigle Thank you so much for your review! I think I integrated all comments except one that I did not understand completely.
@@ -0,0 +1,203 @@ | |||
<?php |
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.
Thank you! Will be added in the next commit.
modules/electrophysiology_browser/ajax/get_electrophysiology_session_data.php
Outdated
Show resolved
Hide resolved
modules/electrophysiology_browser/php/electrophysiologybrowserrow.class.inc
Outdated
Show resolved
Hide resolved
modules/electrophysiology_browser/php/electrophysiologybrowserrow.class.inc
Outdated
Show resolved
Hide resolved
modules/electrophysiology_browser/php/electrophysiologybrowserrowprovisioner.class.inc
Outdated
Show resolved
Hide resolved
@cmadjar In Alex's presentation, she explained that $db = \Database::singleton(); results in difficult unit testing. Instead, we should be using: $db = \NDB_Factory::singleton()->database(); This is because the Factory class does extra checking to figure out whether the code is running in a testing environment or not. I believe the same goes for config, timepoint, ..., etc. So in my review I was recommending that each of these singletons be declared using Factory so that it'll be easier to eventually write unit tests. |
@johnsaigle thank you for the clarification! The last commit replaces all occurence with calls to the NDB_Factory. Thanks!! |
@driusan @kongtiaowang @johnsaigle I don't any error on the Travis log but it is still failing Travis. Could you enlighten me on what I am missing please? Thank you! |
It looks like it's freezing/timing out after building a docker image and trying to start mysql..
|
@driusan Thank you! Is there anything that can be done to resolve that or just restart the build again? (Second time it is failing in a row) |
I can't think of anything that would have changed lately regarding that.. I restarted it just in case |
Looks like it's stuck again.. I don't understand Travis on this one either, I don't see your PR doing anything that should affect mysql starting. |
modules/electrophysiology_browser/ajax/get_electrophysiology_session_data.php
Outdated
Show resolved
Hide resolved
restart it to debug Travis |
moved ElectrophysiologyFile in models phpcbf travis easy comments from Dave Update modules/electrophysiology_browser/README.md Co-Authored-By: PapillonMcGill <34311645+PapillonMcGill@users.noreply.github.com> Update modules/electrophysiology_browser/README.md Co-Authored-By: PapillonMcGill <34311645+PapillonMcGill@users.noreply.github.com> Update modules/electrophysiology_browser/README.md Co-Authored-By: PapillonMcGill <34311645+PapillonMcGill@users.noreply.github.com> Last review comments remove unecessary lines got rid of the ajax fix previous and next links to add outputType fetch instead of ajax call phpcbf travis phan
@kongtiaowang I have no idea why Travis is failing. I don't see any error message but that could just be me not able to spot the error ;). |
SQL/0000-00-01-Permission.sql
Outdated
@@ -103,6 +103,8 @@ INSERT INTO `permissions` VALUES | |||
(55,'publication_propose', 'Publication - Propose a project', 2), | |||
(56,'publication_approve', 'Publication - Approve or reject proposed publication projects', 2), | |||
(57, 'candidate_dob_edit', 'Edit dates of birth', 2); |
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.
@cmadjar line 105, change semicolon to comma. " ; " => " , "
It should pass travis after changing.
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.
@kongtiaowang thank you!! Fixed.
Wouhou, passing Travis, @driusan I believe the ball is in your court now :) |
'download_fdt_file', | ||
]; | ||
for (let i=0; i<this.state.data.downloads.length; i++) { | ||
console.log(this.state.data.downloads[i]); |
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.
Leftover console.log?
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.
oooops. Will be removed in the next commit
modules/electrophysiology_browser/jsx/components/electrophysiology_session_panels.js
Outdated
Show resolved
Hide resolved
modules/electrophysiology_browser/jsx/components/electrophysiology_session_panels.js
Outdated
Show resolved
Hide resolved
modules/electrophysiology_browser/jsx/electrophysiologyBrowserIndex.js
Outdated
Show resolved
Hide resolved
modules/electrophysiology_browser/jsx/electrophysiologyBrowserIndex.js
Outdated
Show resolved
Hide resolved
modules/electrophysiology_browser/jsx/electrophysiologySessionView.js
Outdated
Show resolved
Hide resolved
|
||
$db = \NDB_Factory::singleton()->database(); | ||
|
||
$query = "SELECT * |
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 should be an explicit list of files, not a SELECT *
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.
ok. Done
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.
see previous comments.. almost there!
@driusan Your comments have been taken care of. Thanks! |
@driusan Edit to the README done :). Back to you. PS: subliminal message: merge, merge, merge ;) |
Closing and re-opening this to try and get it to start Travis.. |
Add new EEG module. The Electrophysiology Browser is intended to allow users to view candidate electrophysiology (EEG, MEG...) sessions collected for a study. The Electrophysiology Browser displays electrophysiology datasets that have been inserted into LORIS from a BIDS-format collection. Derived or processed electrophysiology datasets can also be accessed via this module.
Brief summary of changes
This PR includes SQL changes and code required for the new Electrophysiology Browser module.
Screenshot of the menu filter page (reactified and data frameworked):
Screenshot of the view session page:
IMPORTANT
This has been a wonderful team work and I want the authors to be recognized as most of the work to create the module has been done by them :):
Testing instructions (if applicable)
Links to related tickets (GitHub, Redmine, ...)