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
Add contact details to provider #23
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.
This looks good for the case where the provider hasn't got any enriched contact details. When we have a contact details enrichment, are you planning to add that to this PR or in another one?
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.
It'd be good to get another spec for the case when there's a contact enrichment.
Also, I noticed this isn't being used: https://github.com/devmynd/jsonb_accessor Might be useful here, although still need to see if it'd handle the existing data (e.g. I don't think it supports nested data, do we have any?) |
3996aa7
to
1a283ef
Compare
1a283ef
to
20291ad
Compare
3bf64ea
to
f084724
Compare
"postcode" => attrs["Postcode"] | ||
} | ||
else | ||
attributes |
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.
This returns more than just the address, no?
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.
It does. It's not the tidiest, true, but the whole ordeal is a bit messy anyway. I'd be up for tidying it up in the future, I reckon we'll be revisiting this bit of code anyway.
It didn’t help that the provider attributes are a different “case” to the enrichment attributes I.e. address1 vs Address1. The enrichments definitely needs refactoring. |
Context
Providers endpoint
Changes proposed in this pull request
Add contact details i.e.
address1
,address2
,address3
,address4
,postcode
Guidance to review
/api/v1/providers