betagouv / analyse-flux-insertion

Outil d'analyse des flux et échanges de données dans le domaine de l'insertion
2 stars 1 forks source link

feat(identificateur): Add Category information to new applicants #55 #57

Closed aminedhobb closed 3 years ago

aminedhobb commented 3 years ago

This PR is linked to issue #55. In this PR I add the category information on new applicants that meet the conditions in one of the categories mentioned in this document. We only add that it belongs to category 4 (identified through TOPFOYDRODEVRSA) or 1-2-3 (identified through TOPPERSDRODEVRSA).

To do so, I store applicants as a JS object instead of an array, with the keys being an applicant ID composed with the name, the application number and the role. This has the advantage to also increase substantially the performance of our tool since we do not have to scan all the applicants any longer to match an application number when doing the match J-1 -> J.