-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Adding parentFields validation in addParent. #150
Adding parentFields validation in addParent. #150
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.
Looks good to me, did it fix your issue?
Hi @mansoor-sajjad looking over the list of supported parent fields in It's a little tricky to compare since the order is different but I think 'macrohood' is listed here but not supported in the schema, could you please double-check? |
Hi, @missinglink , nice catch. |
Please remove it from model as part of this PR |
@missinglink What is the further process to get that PR merged? |
I pulled your code locally and the unit tests showed as failing. There's a weird issue with Github Actions where it doesn't run the CI for people outside of our org. |
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.
Please resolve the unit test failure
edf5b13
to
bcb5510
Compare
Hi @missinglink , Sorry for the late response, I was actually on vacations. |
Thanks for your contribution, this patch was released as |
👋
Here's the reason for this change 🚀
I need to update the pelias-csv-importer to support the import of parent field. And found that the addParent function does not validate the field name with the list of parentFields, like it is done with the addressFields in setAddress function.
Here's what actually got changed 👏
Updated the addParent to function by adding the property validation for parentFields.
Added the unit test to test the change.