Providers' CRUD import will need refactoring and will take longer than only solving the issue.
Context
We noticed data corruption in external services (i. e. PC) comparing to its forms.
Example provider issues
fields required in the form can be null (i. e. legal entity)
logo is stored as a URL, which may provide to its expiration and while saving it in the active storage may throw HTTP errors like 4xx, 5xx
phone number isn't regexp validated
URLs are validated in form by pinging the domain but after some time they may expire
Additional categories of countries that are not contained in ISO:3166-1 alpha2 list
Proposed solution
Because we are saving data in a corrupted state if a model doesn't exist on our site. We need to keep track of occurred errors to show them to the user managing an item. Errors should be kept also when updates couldn't be done while importing.
Providers' CRUD import will need refactoring and will take longer than only solving the issue.
Context
We noticed data corruption in external services (i. e. PC) comparing to its forms.
Example provider issues
Proposed solution
Because we are saving data in a corrupted state if a model doesn't exist on our site. We need to keep track of occurred errors to show them to the user managing an item. Errors should be kept also when updates couldn't be done while importing.