-
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
Refactor the import legacy persist logic #1387
Conversation
We have recently introduced functionality to import data from NALD using for a licence and companies for that particular licence. This change will break out the persist functionality into logical groups of functionality.
I think it's worth having the big test to test the complete transaction. Do we want to add duplicate tests per persist service ? Worth a discussion. |
Looks like we need a discussion! For me, the main driver for this was just how big and complex the tests were becoming, which is a 'smell' that the service under test is doing too much. So, I would expect to see tests specifically for the things we have broken out, and The child services can then focus on ensuring they behave as expected when inserting or updating. In |
d82efea
to
cd512c5
Compare
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.
Just gonna ping these back and then will check in again later, as they'll also help make the changes a bit less confusing for me!
app/services/import/persist/persist-licence-versions.service.js
Outdated
Show resolved
Hide resolved
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]>
We have recently introduced functionality to import data from NALD using for a licence and companies for that particular licence.
This change will break out the persist functionality into logical groups of functionality.