matchd-ch / stories

All ticketing / planning for the matchd platform.
Apache License 2.0
2 stars 0 forks source link

Form steps renamed #75

Closed atoncetti closed 2 years ago

atoncetti commented 2 years ago

This change concerns Graphql mutations, the form step names have been renamed to be more meaningful:

STEP_NAME: changed from Step1 to: BaseData VARIABLE_NAME: changed from step_1 to: baseData

STEP_NAME: changed from Step2 to: Relations VARIABLE_NAME: changed from step_2 to: relations

STEP_NAME: changed from Step3 to: Advantages VARIABLE_NAME: changed from step_3 to: advantages

STEP_NAME: changed from Step4 to: Values VARIABLE_NAME: changed from step_4 to: values

Variables are applied on the following template to give the idea:

    mutation CompanyProfileMutation(${VARIABLE_NAME}: CompanyProfileInput{STEP_NAME}!) {
        companyProfile{STEP_NAME} ( {VARIABLE_NAME}: ${VARIABLE_NAME} ) {
            success,
            errors
        }
    }

For example the following is the new mutation for the former Step1:

    mutation CompanyProfileMutation($baseData: CompanyProfileInputBaseData!) {
        companyProfileBaseData (baseData: $baseData) {
            success,
            errors
        }
    }

STEP_NAME: changed from Step1 to: BaseData VARIABLE_NAME: changed from step_1 to: baseData

STEP_NAME: changed from Step2 to: Requirements VARIABLE_NAME: changed from step_2 to: requirements

STEP_NAME: changed from Step3 to: Allocation VARIABLE_NAME: changed from step_3 to: allocation

STEP_NAME: changed from Step1 to: BaseData VARIABLE_NAME: changed from step_1 to: baseData

STEP_NAME: changed from Step2 to: Employment VARIABLE_NAME: changed from step_2 to: employment

STEP_NAME: changed from Step3 to: Character VARIABLE_NAME: changed from step_3 to: character

STEP_NAME: changed from Step4 to: Abilities VARIABLE_NAME: changed from step_4 to: abilities

STEP_NAME: changed from Step5 to: SpecificData VARIABLE_NAME: changed from step_5 to: specificData

STEP_NAME: changed from Step6 to: Condition VARIABLE_NAME: changed from step_6 to: condition

STEP_NAME: changed from Step1 to: BaseData VARIABLE_NAME: changed from step_1 to: baseData

STEP_NAME: changed from Step2 to: SpecificData VARIABLE_NAME: changed from step_2 to: specificData

STEP_NAME: changed from Step3 to: Relations VARIABLE_NAME: changed from step_3 to: relations

STEP_NAME: changed from Step4 to: Values VARIABLE_NAME: changed from step_4 to: values

Outdated: mutations now comply to graphql relay specification

atoncetti commented 2 years ago

Outdated: mutations now comply to graphql relay specification