tournesol-app / tournesol

Free and open source code of the https://tournesol.app platform. Meet the community on Discord https://discord.gg/WvcSG55Bf3
https://tournesol.app
Other
321 stars 46 forks source link

[back][front] feat: support patching criteria score and score max #1947

Closed GresilleSiffle closed 1 month ago

GresilleSiffle commented 2 months ago

related issues #1940


Description

The comparisons API now allows the users to update the value of the criteria scores one by one. This will allow users to rate the criteria one by one from the mobile UI of the front end.

The ComparisonCriteriaScore model now contains the score_max, representing the maximum absolute value accepted for a score. The mobile UI of the front end will submit scores with a score_max of 2, while the sliders use a score_max of 10.

I suppose that the score_max will make the constant COMPARISON_MAX deprecated. At the time of writing the constant is used by the class MehestanParameters, and by the view ScoreInconsistencies. I haven't updated these classes.

Checklist