-
Notifications
You must be signed in to change notification settings - Fork 649
schemaForm.merge regression in 1.0.0-alpha.5 #891
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
Comments
Thanks @donalmurtagh the arguments have changed on this one, the function was moved to the core library and therefore needed more information. You can see the different signature here: schema-form.provider.js#L103 |
Thanks @Anthropic, I replaced
with
and my tests pass now. If you're planning on writing an upgrade/migration guide for ASF v1.0, the change in this function's signature is worth mentioning. |
@donalmurtagh Yeah I added the "needs documentation" tag and I will review everything with that tag regardless of it being open or closed when I am ready to go to beta, thanks again, can't tell you how helpful it is to have someone going through an upgrade process to help me find things I may have forgotten or missed :) |
@Anthropic you're very welcome and your timely responses are much appreciated |
@donalmurtagh I added #894 to make sure I keep track of items to document, please let me know what you think may be of use that isn't a breaking change, it is good the way you make an issue for each so I can confirm it is an actual change vs a bug. I'll close this issue now as once the documentation is done it will be covered. |
I recently upgraded from 0.8.13 to the latest 1.0.0-alpha.5. In my app, I programmatically merge the form and schema definitions by calling the following function, which serves as a simple facade for
schemaForm.merge
I have some Jasmine tests of this function, which fail since upgrading from 0.8.13 to the latest alpha
Test 1
I've marked the lines that fail with
// FAIL
but ultimately the reason for the failure is simply because each object inresult
has less data in the latest alpha than in 0.8.13result
in 0.8.13result
in 1.0.0-alpha.5Test 2
In the latest 1.0.0-alpha.5,
mergedForm
is an empty list, whereas in 0.8.13 it isIs it the case that
schemaForm.merge
has changed in 1.0.0-alpha.5, and I need to call it differently in order to get the same results as in version 0.8.3schemaForm.merge
was not intended to be used outside of ASF (and therefore no attempt is made to maintain backwards compatability)@json-schema-form/angular-schema-form-lead
The text was updated successfully, but these errors were encountered: