LimeSurvey: master 6e289f03

Author Committer Branch Timestamp Parent
twilllig GitHub master 2023-11-15 09:52:03 master e0fefafb
Changeset

QE-513: tempId for newly created objects (03594)

  • QuestionGroups return tempId - real Id mapping

  • Questions return tempId - real Id mapping

  • Fix unit test and code check

  • SubQuestions return tempId - real Id mapping

  • If question with subquestions was created, their mapping will also be returned

  • Fixed issue: OpHandlerAnswer does a proper update when aid is provided

  • Answers return tempId - real Id mapping

  • If question with answers was created, their mapping will now also be returned

  • Non DB attributes of Question should be camelcase

  • Avoided nesting in if statement

  • Response output now handled with classes

  • Codestyle fix

  • ignore method length warning for PatcherSurvey __construct()

  • fixes for psalm

  • fixes for psalm

  • fixes for psalm

  • Dev: Refactor SurveyPatch/PatcherSurvey


Co-authored-by: Kevin Foster <kevin.foster.uk@gmail.com>

mod - application/libraries/Api/Command/V1/SurveyPatch.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerAnswer.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerQuestionCreate.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerQuestionGroup.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerQuestionTrait.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerSubQuestion.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerSurveyTrait.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/PatcherSurvey.php Diff File
add - application/libraries/Api/Command/V1/SurveyPatch/TempIdMapItem.php Diff File
add - application/libraries/Api/Command/V1/SurveyPatch/TempIdMapping.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputAnswer.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputQuestion.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputQuestionGroup.php Diff File
mod - application/libraries/ObjectPatch/Patcher.php Diff File
mod - application/models/services/QuestionGroupService.php Diff File
mod - tests/unit/objectpatch/PatcherTest.php Diff File