LimeSurvey: master 2aa2d631

Author Committer Branch Timestamp Parent
K Foster GitHub master 2024-01-18 17:36 master bb4112e2
Changeset

Qe 585 refactor prepare functions to transformer classes (03675)

  • refactor prepareAdvancedSettings() into TransformerInputQuestionAttribute

  • refactor getTransformedLanguageProps() into TransformerInputLanguageTrait

  • Added missing import of OpHandlerExceptionTrait

  • Added one more missing import of OpHandlerExceptionTrait

  • dev: refactor op handler transform and validation (work in progress)

  • dev: refactor op handler transform and validation (work in progress)

  • dev: refactor op handler transform and validation (work in progress)

  • dev: refactor op handler transform and validation (work in progress)

  • dev: refactor op handler transform and validation (work in progress)

  • dev: refactor op handler transform and validation (work in progress)

  • dev: refactor op handler transform and validation (work in progress)

  • dev: FormatterYnToBool should implement FormatterInterface

  • dev: refactor transformer

  • dev: refactor transformer

  • dev: refactor op handler transform and validation (work in progress)

  • dev: api transformer required option can be operation specific

  • dev: add transformer tests

  • dev: add transformer tests

  • dev: transformer 'required' option can be operation specific

  • dev: transformer 'required' option can be operation specific

  • dev: fix subquestion transformation

  • dev: fix OpHandlerQuestionUpdate

  • dev: refactor OpHandlerLanguageSettingsUpdate

  • dev: refactor api transformers

  • dev: refactor op handler tests

  • dev: refactor op handler tests

  • dev: refactor OpHandlerQuestionL10nUpdate

  • dev: fix psalm errors

  • dev: fix php mess detector issues

  • Fix for getLanguageSettingsData() variant 2 not recognized

  • Fix for getLanguageSettingsData() variant 2 not recognized (other approach)

  • Fix for getLanguageSettingsData() variant 2 not recognized (mixed approach)

  • Adjusted comment

  • dev: fix subquestion ophandler l10ns

  • dev: mess detector fix

  • dev: transfomer input question qid is not required

  • Fix for L10n related OpHandlers

  • dev: revertclear

  • dev: fix QuestionAggregateService/SubQuestionsService

  • dev: revert SubQuestionsService

  • Fix TransformerInputQuestionGroupAggregate.php and passing of options into nested valdiations and transforms

  • Fix OpHandlerQuestionGroup.php create

  • Fixed issue: mandatory "S" was not handled anymore in OpHandlerQuestionUpdate

  • Fixed issue: mandatory "S" was not handled anymore in OpHandlerQuestionUpdate (better approach)

  • Fixed issue: TransformerInputSubQuestionL10ns.php was not returning the expected structure

  • Fixed issue: TransformerInputQuestion was expecting sid to be required on create

  • Fixed issue: TransformerInputSubQuestionL10ns.php was not returning the expected structure (psalm fix)

  • Fixed issue: tempId mapping for subquestions wasn't working anymore after internal change from "title" to "code"

  • new TransformerInputAnswerTest.php

  • new TransformerInputAnswerTest.php (added tempId)

  • new TransformerInputAnswerTest.php (added language)

  • new TransformerInputAnswerTest.php (fix array levels)

  • new Transformer test for null values

  • new Transformer tests on selected entities handled by TransformerInputQuestionAggregate

  • new Transformer tests on selected entities handled by TransformerInputQuestionAggregate (fix)

  • new Transformer tests on selected entities handled by TransformerInputQuestionAggregate (fix tempId)

  • new Transformer tests on selected entities handled by TransformerInputQuestionAggregate (fix language)

  • dev: composer update

  • dev: TransformerOutputSurveyGroup::transform signature


Co-authored-by: twilligls tim.willig@limesurvey.org

mod - application/libraries/Api/Command/Exception.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerAnswer.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerLanguageSettingsUpdate.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerQuestionAttributeUpdate.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/OpHandlerQuestionGroupL10n.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerQuestionGroupReorder.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerQuestionL10nUpdate.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerQuestionUpdate.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/OpHandlerSubQuestion.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/PatcherSurvey.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/Traits/OpHandlerExceptionTrait.php Diff File
add - application/libraries/Api/Command/V1/SurveyPatch/Traits/OpHandlerL10nTrait.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/Traits/OpHandlerQuestionTrait.php Diff File
mod - application/libraries/Api/Command/V1/SurveyPatch/Traits/OpHandlerSurveyTrait.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputAnswer.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputAnswerL10ns.php Diff File
add - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputAnswerL10nsCollection.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputQuestion.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputQuestionAggregate.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputQuestionAttribute.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputQuestionGroup.php Diff File
add - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputQuestionGroupAggregate.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputQuestionGroupL10ns.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputQuestionL10ns.php Diff File
add - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputSubQuestion.php Diff File
add - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputSubQuestionAggregate.php Diff File
add - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputSubQuestionL10ns.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Input/TransformerInputSurveyLanguageSettings.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Output/TransformerOutputAnswer.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Output/TransformerOutputQuestion.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Output/TransformerOutputQuestionAttribute.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Output/TransformerOutputQuestionGroup.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Output/TransformerOutputSurvey.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Output/TransformerOutputSurveyDetail.php Diff File
mod - application/libraries/Api/Command/V1/Transformer/Output/TransformerOutputSurveyGroup.php Diff File
rm - application/libraries/Api/Exception.php Diff
mod - application/libraries/Api/Transformer/Formatter/FormatterYnToBool.php Diff File
mod - application/libraries/Api/Transformer/Output/TransformerOutputActiveRecord.php Diff File
mod - application/libraries/Api/Transformer/Transformer.php Diff File
add - application/libraries/Api/Transformer/TransformerException.php Diff File
mod - application/libraries/Api/Transformer/TransformerInterface.php Diff File
mod - application/models/services/QuestionAggregateService/SaveService.php Diff File
mod - application/models/services/QuestionAggregateService/SubQuestionsService.php Diff File
mod - tests/bootstrap.php Diff File
mod - tests/unit/api/AuthSessionTest.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerAnswerDeleteTest.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerAnswerTest.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerLanguageSettingsTest.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerQuestionAttributeUpdateTest.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerQuestionCreateTest.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerQuestionGroupL10nTest.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerQuestionGroupReorderTest.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerQuestionGroupTest.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerQuestionL10nTest.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerQuestionUpdateTest.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerSubquesDeleteTest.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerSubquestionUpdateTest.php Diff File
mod - tests/unit/api/opHandlers/OpHandlerSurveyUpdateTest.php Diff File
add - tests/unit/api/transformer/TransformerInputAnswerTest.php Diff File
add - tests/unit/api/transformer/TransformerInputQuestionAggregateTest.php Diff File
mod - tests/unit/api/transformer/TransformerTest.php Diff File
mod - vendor/composer/autoload_classmap.php Diff File
mod - vendor/composer/autoload_psr4.php Diff File
mod - vendor/composer/autoload_static.php Diff File
mod - vendor/composer/include_paths.php Diff File
mod - vendor/composer/installed.php Diff File
add - vendor/symfony/polyfill-php80/LICENSE Diff File
add - vendor/symfony/polyfill-php80/Php80.php Diff File
add - vendor/symfony/polyfill-php80/PhpToken.php Diff File
add - vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php Diff File
add - vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php Diff File
add - vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php Diff File
add - vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php Diff File
add - vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php Diff File
add - vendor/symfony/polyfill-php80/bootstrap.php Diff File
add - vendor/symfony/polyfill-php80/composer.json Diff File