-
Notifications
You must be signed in to change notification settings - Fork 21
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: columns with numbers are not converted to string for importMapping lookups #2427
Comments
Hi @sleidig! |
Hi @kumarannathan , thanks for reaching out and finding us! It's great to see your initiative to help our system - and thereby all our NGOs and social workers using Aam Digital 😃 Have you worked with Angular and TypeScript before and are familiar with unit tests written in jasmine? (sorry, many details!) We'll be happy to guide you on the specifics of the Aam Digital code base and this concrete issue/task then. |
Test Scenario: importing "Recurring Activity" records, including a Child to be linked in the "participants" field of the Recurring Activity that is created by the import. The Child entity is identified by matching the "phone number" of a Child in the database with the "phone number" column in the imported sheet: Steps to prepare & test:
|
During imports a value is imported as
number
if it is all digits in the csv file. However, in our entities the related field may be a string. If such a field is used to map to an entity reference, the lookup in the EntityDatatype does not work anymore, as string and number equivalents of a value are not equal.EntityDatatype
mockEntityMapper()
for mocking db)details for
EntityDatatype.importMapFunction
:The text was updated successfully, but these errors were encountered: