-
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
experimental_customMergeAllOf v2 #4383
experimental_customMergeAllOf v2 #4383
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.
Also consider adding test for all the modified functions to ensure the param is passed through properly? I know that's a bunch more work, so if you can justify why it is unnecessary, I'll listen.
CHANGELOG.md
Outdated
@@ -16,6 +16,12 @@ should change the heading of the (upcoming) version to include a major version b | |||
|
|||
--> | |||
|
|||
# 5.22.5 |
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.
Can you update this to be part of the upcoming 5.23.0
release instead?
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.
Done.
f4455b2
to
04b593c
Compare
@heath-freenome I definitely agree that history of this screams that it needs tests. In the short term, as it acts broken now (the custom merger is called let's say in 50% cases in real world application), I think there are two options: completely revert the feature (which I don't prefer), or merge this fix. Long term, I think it is good to create a new issue to discuss how to structure such tests. It seems it won't be easy, for example only in |
Fair enough. Can you write an issue to add these tests AND then assign it to yourself? Since you introduced the feature, it makes sense for you to come up with something that covers the test cases. At least for this feature. Maybe we also need a issue for the |
@heath-freenome I did. #4385 However I cannot assign myself because of the permissions probably. Do you please plan to release |
Reasons for making this change
Unfortunately, in the original PR #4308, and I am deeply sorry, that I've missed one code branch that the argument must be passed to that led to many other branches to be missed. In this PR the argument is passed in 100% places it should be.
I've had also forgotten to add params to documentation which I've done now.
However, I've tested the code in a real world application and this change really helps the performance. When using our custom fast merge the input event duration went from ~300ms to ~80ms in large form.
Checklist
npx nx run-many --target=build --exclude=@rjsf/docs && npm run test:update
to update snapshots, if needed.