LimeSurvey: master f710b28e

Author Committer Branch Timestamp Parent
twilllig GitHub master 2023-10-30 13:48 master 28fc5164
Changeset

QE-429 op handler subquestion update (#3492)

  • OpHandlerSubquestionUpdate.php first steps

  • OpHandlerSubquestionUpdate.php with basic unit tests

  • re-added deleted function

  • exception when no question found

  • OpHandlerSubQuestion.php can now handle create and update

  • OpHandlerSubQuestion.php fixed a test

  • QE-429 dev: throw exception when prepared data is empty array

  • adjustments after change of how subquestions are saved

  • OpHandlerSubQuestion.php can now handle create and update after changes in SubQuestionService

  • fix psalm issue


Co-authored-by: pstelling patricia.stelling@limesurvey.org

mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerQuestionCreate.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerQuestionTrait.php Diff File
add - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerSubQuestion.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/PatcherSurvey.php Diff File
rm - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputSubQuestion.php Diff
mod - application/models/services/QuestionAggregateService.php Diff File
mod - application/models/services/QuestionAggregateService/SubQuestionsService.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerQuestionCreateTest.php Diff File
add - tests/unit/api/opHandlers/OpHandlerSubquestionUpdateTest.php Diff File