-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
registerSchema() #3053
Conversation
There was a problem hiding this 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...
There was a problem hiding this 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)
@aaronjudd yes please. |
} | ||
|
||
// store the component in the table | ||
Schemas[name] = schema; |
There was a problem hiding this comment.
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
There was a problem hiding this 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
@aaronjudd fixed. |
This reverts commit 7aabb1c.
@aaronjudd merging because your approval + tests pass. |
Resolves #2983
Documention here: reactioncommerce/reaction-docs#296
registerSchema()
to register schemas in an object