-
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
[tools] fix_timepoint_data_problems: hardcoding issues #5040
Comments
@ridz1208 I know you went through the tool scripts. Is that issue still relevant? Copied it from redmine https://redmine.cbrain.mcgill.ca/issues/13195 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I looked quickly and the subprojectID at least it still hard-coded in the script. |
The Stale label is being removed automatically because some activity has occurred or because the developers have decided that this pull request is important and should not continue to be overlooked. |
subprojectID and feedback types are still hardcoded in the tool so still a valid issue. |
Can we just remove the fix_date portion of the script? If the values are hardcoded to invalid values and have been for 3 years it's clearly not being used.. |
The script now uses 'Other' has Feedback type instead of the one with id 5 (Which was failing due to foreign key constraint if there was no feedback type with id = 5) Also remove the part where the date of birth was determined based on the Subproject/Cohort id 1 or 2 (which does not mean anything) and now relies on Timepoint::getEffectiveDateOfBirth. I assumed that subproject 1 and 2 was making a distinction between pre ans post natal visits. Timepoint::getEffectiveDateOfBirth should handle that. Resolves #5040
The script
tools/fix_timepoint_date_problems.php
hardcodes the feedback thread type to5
on line 512 (when the default schema does not have it) and the subproject ID to1
and2
on line 467 which clearly is not consistent across projects using LORIS.The text was updated successfully, but these errors were encountered: