Closed oesteban closed 2 years ago
@rwblair ratings are not integers on a Likert scale anymore, now we need to store floats - is that possible in the current MRIQCwebapi schema?
We probably want to add the collection of the elapsed time rating and the rater's confidence.
Hey @oesteban, This looks great! What about extending the list of artifacts with some of my suggestion from issue nipreps/nireports#92 ? (cf discussion there)
Let's address that on a different PR.
@oesteban looks like ratings coming in to web api are cast as strings to be as flexible as possible.
There are two new fields we probably want to also submit:
@oesteban looks like ratings coming in to web api are cast as strings to be as flexible as possible.
Does that mean that the API could also accept nonnumerical values? Do we know if someone has tried to push garbage in?
Someone could post nonnumerical ratings, I have not looked to see if its been abused yet.
So the historic way of adding fields, as you have done, is embedding them in the comment field, which is a hack to say the least (*no need to be snippy its how we got away with allowing for easy expansion of rating widget). I need to think about how we can make this better and what all it would take. While still being backwards compatible.
schema definition for ratings for context: https://github.com/nipreps/mriqcwebapi/blob/master/dockereve-master/eve-app/settings.py#L577
My dump of ratings from 05/27 only contains single digit ratings from 1 to 4.
Changes with this PR:
Resolves: nipreps/mriqc#1007. Resolves: nipreps/mriqc#1008.
New look and feel: