Skip to content
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 company address data for a licence #1385

Merged

Conversation

jonathangoulding
Copy link
Collaborator

https://eaflood.atlassian.net/browse/WATER-4669

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 addresses' data. This will insert or update the company addresses record.

This change will build on top of the previous work to add the licence holder to the company address logic and will introduce the licence role for a company address. The only licence role we are interested in is the 'returnsTo' licence role.

This is not a concept in nald and is created for WRLS to link an address to company.

We will insert this imported data in the relevant public views.

https://eaflood.atlassian.net/browse/WATER-4669

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 addresses' data. This will insert or update the company addresses record.

This change will build on top of the previous work to add the licence holder to the company address logic and will introduce the licence role for a company address. The only licence role we are interested in is the 'returnsTo' licence role.

This is not a concept in nald and is created for WRLS to link an address to company.

We will insert this imported data in the relevant public views.
@jonathangoulding jonathangoulding added the enhancement New feature or request label Oct 7, 2024
@jonathangoulding jonathangoulding self-assigned this Oct 7, 2024
@jonathangoulding jonathangoulding marked this pull request as ready for review October 7, 2024 08:07
@jonathangoulding jonathangoulding merged commit 4cd97ec into main Oct 7, 2024
5 of 6 checks passed
@jonathangoulding jonathangoulding deleted the import-company-address-for-licence-returns-to branch October 7, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants