Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form.io API 7.1.2 to 7.3.0 custom component fix #36

Merged
merged 11 commits into from
Apr 25, 2022
Merged

Conversation

devonpis
Copy link
Contributor

rework PlsPlusAddress to support formio app upgrade 7.3.0

  • PlsPlusAddress data will get erased in the backend Formio app, after the app upgraded from 7.1.2 to 7.3.0
  • any custom component extend from address or container will get the issue
  • PlsPlusAddress component will extent from fieldset instead of container
  • user experience will be the same as previous

@devonpis devonpis requested a review from a team April 22, 2022 04:31
Copy link

@fran38 fran38 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Casino rewards ``- [francesdoer@gmail.com_**

const warning = await findByText(form, `Please check your answers`);
expect(warning).toBeVisible();
// const warning = await findByText(form, `Please check your answers`);
// expect(warning).toBeVisible();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

``

@duttonw duttonw changed the title Release v1.0.4 Form.io API 7.1.2 to 7.3.0 custom component fix Apr 22, 2022
Copy link
Member

@duttonw duttonw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also include ability to change all api key id's, use property lookup for logic so a user can change their payload from address1 to a1 or similar.

It is good that labels can be altered, but we should also allow low level id's as they are transmitted upstream.

hideLabel: false,
disableClearIcon: false,
enableManualMode: true,
input: true,
persistent: "client-only",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line does: validation code fires on client only, as we don't want to send data of the component to the database.

type: "hidden",
},
{
label: "Mode",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mode use to be outside of the structure, now its inside.

// https://github.com/formio/formio.js/blob/master/src/utils/formUtils.js#L89-L90
schema: { ...PlsPlusAddress.schema(), tree: true },
schema: {
...PlsPlusAddress.schema(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since using fieldset component, no need for tree.

@duttonw
Copy link
Member

duttonw commented Apr 22, 2022

Casino rewards ``- [francesdoer@gmail.com_**
Hi @fran38 , I believe your account is hacked.

Regards,

@duttonw

@duttonw duttonw closed this Apr 22, 2022
@duttonw duttonw reopened this Apr 22, 2022
@devonpis devonpis marked this pull request as ready for review April 25, 2022 22:59
@devonpis devonpis merged commit 8c2e478 into main Apr 25, 2022
@duttonw duttonw deleted the release-v1.0.4 branch April 5, 2024 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants