Open sleidig opened 4 months ago
Hi @sleidig!
I’m interested in working on this issue as part of my EECS 481 class: https://web.eecs.umich.edu/~weimerw/481/hw6.html.
I’d like to enhance importMapFunction by adding types, jsDocs, and relevant unit tests. Let me know if there’s any guidance you’d recommend. Thanks!
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 :smiley:
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.
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
: