[REF] survey: on survey.user_input.line, rename value_suggested{_row} fields
PURPOSE As new features are about to land in survey, notably live interactions [1] and new survey building [2] performing a pre cleaning is necessary. In this PR we clean survey models by: removing unnecessary fields, cleaning some code and finally renaming models. SPECIFICATIONS A new naming for ``survey.question.answer`` has been recently introduced: ``suggested_answer_ids`` and ``matrix_row_ids``. In this commit we propagate that naming to survey.user_input.line model. New naming is * ``suggested_answer_id``: one chosen value for single / multiple choice. It is also used for matrix columns as those indicates the value to give on a given row; * ``matrix_row_id``: the related row of the suggested answer for matrix questions; It adds two benefits * it finishes by _id which is always a good idea for m2o fields; * it better indicates the use; LINKS [0] Related to Task ID 2061901 (survey models cleaning and preparation) [1] Task ID 1972640 (live interactions) [2] Task ID 2119587 (new frontend for building surveys) PR #40765
Showing
- addons/survey/data/survey.user_input.line.csv 1 addition, 1 deletionaddons/survey/data/survey.user_input.line.csv
- addons/survey/models/survey_survey.py 7 additions, 7 deletionsaddons/survey/models/survey_survey.py
- addons/survey/models/survey_user.py 16 additions, 16 deletionsaddons/survey/models/survey_user.py
- addons/survey/tests/common.py 3 additions, 3 deletionsaddons/survey/tests/common.py
- addons/survey/tests/test_survey.py 4 additions, 4 deletionsaddons/survey/tests/test_survey.py
- addons/survey/views/survey_templates.xml 5 additions, 5 deletionsaddons/survey/views/survey_templates.xml
- addons/survey/views/survey_user_views.xml 2 additions, 2 deletionsaddons/survey/views/survey_user_views.xml
- addons/website_slides_survey/data/survey.user_input.line.csv 1 addition, 1 deletionaddons/website_slides_survey/data/survey.user_input.line.csv
- addons/website_slides_survey/tests/test_course_certification_failure.py 1 addition, 1 deletion..._slides_survey/tests/test_course_certification_failure.py
Loading
Please register or sign in to comment