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

registerSchema() #3053

Merged
merged 20 commits into from
Oct 7, 2017
Merged

registerSchema() #3053

merged 20 commits into from
Oct 7, 2017

Conversation

kieckhafer
Copy link
Member

@kieckhafer kieckhafer commented Oct 6, 2017

Resolves #2983
Documention here: reactioncommerce/reaction-docs#296

  • Create new registerSchema() to register schemas in an object
  • Use registered schemas to apply i18n translations to labels of forms created with autoform && SimpleSchema

@kieckhafer kieckhafer changed the title [WIP] registerSchema() registerSchema() Oct 6, 2017
Copy link
Contributor

@aaronjudd aaronjudd left a comment

Choose a reason for hiding this comment

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

Any particular reason we are deleting imports/plugins/included/connectors-shopify/package.json -> ah never mind... I see why. fyi - fix in is later versions for that, so we'll just restore this then...

Copy link
Contributor

@aaronjudd aaronjudd left a comment

Choose a reason for hiding this comment

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

Elegant, simple. very nice.

Should we also remove reaction-connectors package.json for the time being? (I have better ones we can restore later that have all the dependencies etc moved)

@spencern
Copy link
Contributor

spencern commented Oct 7, 2017

@aaronjudd yes please.

}

// store the component in the table
Schemas[name] = schema;
Copy link
Member

Choose a reason for hiding this comment

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

Should we match the style of registerComponent and do Schemas[name] = { name, schema } ?

- TODO: add back later + deps in 1.6.x
Copy link
Contributor

@aaronjudd aaronjudd left a comment

Choose a reason for hiding this comment

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

Not sure if BitHound is ever going to report back but you have some linting errors that need to be corrected. https://www.bithound.io/github/reactioncommerce/reaction/ek-issue2983/files#lint

@kieckhafer
Copy link
Member Author

@aaronjudd fixed.

This reverts commit 7aabb1c.
@spencern
Copy link
Contributor

spencern commented Oct 7, 2017

@aaronjudd merging because your approval + tests pass.

@spencern spencern merged commit 8c9772c into release-1.5.0 Oct 7, 2017
@spencern spencern deleted the ek-issue2983 branch October 7, 2017 01:55
This was referenced Oct 7, 2017
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.

4 participants