-
Notifications
You must be signed in to change notification settings - Fork 0
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
Import contact data for a licence #1317
Conversation
https://eaflood.atlassian.net/browse/WATER-4667 We need to replace the import service logic to import a licence from NALD. The current import service iterates all the companies (known as parties in the import.NALD_PARTIES table) and updates CRM_V2 tables. This change will use the nald licence id and region to update the companies (parties) contact data. This means going forwards we will only import companies (parties) contact when the licence is imported. We will insert this imported data in the relevant public views. This change focuses on the companies (parties) contact data and not address or contacts tables which will be done after this work.
.insert({ ...contact, updatedAt }) | ||
.onConflict('externalId') | ||
.merge([ | ||
'salutation', |
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 this update the data source to nald ? what if this has changed in wrls. Might be a none issue as the test helper sets this as wrls.
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.
An incomplete first pass, but hopefully something to be considering whilst I get on and look through the rest!
Co-authored-by: Alan Cruikshanks <[email protected]>
Co-authored-by: Alan Cruikshanks <[email protected]>
Co-authored-by: Alan Cruikshanks <[email protected]>
Co-authored-by: Alan Cruikshanks <[email protected]>
Co-authored-by: Alan Cruikshanks <[email protected]>
https://eaflood.atlassian.net/browse/WATER-4667
We need to replace the import service logic to import a licence from NALD.
The current import service iterates all the companies (known as parties in the import.NALD_PARTIES table) and updates CRM_V2 tables.
This change will use the nald licence id and region to update the companies (parties) contact data. This means going forwards we will only import companies (parties) contact when the licence is imported.
We will insert this imported data in the relevant public views.
This change focuses on the companies (parties) contact data and not address or contacts tables which will be done after this work.