chore: Contact import improvements (#7787)

- Ensure existing contact information is updated on data import
- Refactor the existing job to make it more readable
- Fixes issues with import files in the wrong encoding
fixes: #7307
This commit is contained in:
Sojan Jose
2023-08-23 23:24:47 -07:00
committed by GitHub
parent 44f6a9ec3c
commit acb7debd3f
11 changed files with 174 additions and 100 deletions

View File

@@ -0,0 +1,17 @@
<p>Hello,</p>
<p>Your contact import has been completed. Please check the contacts tab to view the imported contacts.</p>
<p>Number of records imported: {{meta['imported_contacts']}}</p>
<p>Number of records failed: {{meta['failed_contacts']}}</p>
{% if meta['failed_contacts'] == 0 %}
<p>
Click <a href="{{action_url}}">here</a> to view the imported contacts.
</p>
{% else %}
<p>
Click <a href="{{ action_url }}" target="_blank">here</a> to view failed records.
</p>
{% endif %}

View File

@@ -1,14 +0,0 @@
<p>Hello,</p>
<p>Your contact import has been completed. Please check the contacts tab to view the imported contacts.</p>
<p>Number of records imported. : {{imported_contacts}}</p>
<p>Number of records failed. : {{failed_contacts}}</p>
<p>
Attachment [<a href="{{ attachment_url }}" _target="blank">Click here to view</a>]
</p>
<p>
Click <a href="{{action_url}}">here</a>
</p>