-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feat/pre assignation #101
Feat/pre assignation #101
Conversation
nextDocumentStatus, | ||
|
||
// Check first pre-assignation by documentNumber and then by appelNumber | ||
let preAssignationForDocument = await preAssignationService.fetchPreAssignationBySourceAndNumber( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je pense que faire : let preAssignationForDocument = await preAssignationService.fetchPreAssignationBySourceAndNumber( documentNumber.toString(), source, ) || await preAssignationService.fetchPreAssignationBySourceAndNumber( appealNumber, source, );
c'est pareil soit l'un est undiefined donc il passe à l'autre
extractor: (preAssignation) => | ||
preAssignation.preAssignation.creationDate | ||
? timeOperator.convertTimestampToReadableDate(preAssignation.preAssignation.creationDate) | ||
: '-', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
la preassignation est sensé avoir une date de création à sa création. Pourquoi une boolean et '-' ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est OK pour moi. j'ai testé en local, tout fonctionne bien.
* create model and repositories to preAssign decision * add preAssignation service tests * create pre assignation api endpoints * fix import in controller * create assignation when there is a preAssignation after nlp annotation * add delete preassignation route on api * first step for frontend * create delete oprtion * get userName instead of userId * refetch on delete * add pre-assignation creation button * add pre assignation creation * lint * adapt clear db * fix tests * fix to run script without docker * change behavior to accept appealNumbers * fix docker start * reset path to storage * fix paths to execute scripts * changes from review --------- Co-authored-by: Antoine Jeanneney <antoine.jeanneney@justice.fr>
* create model and repositories to preAssign decision * add preAssignation service tests * create pre assignation api endpoints * fix import in controller * create assignation when there is a preAssignation after nlp annotation * add delete preassignation route on api * first step for frontend * create delete oprtion * get userName instead of userId * refetch on delete * add pre-assignation creation button * add pre assignation creation * lint * adapt clear db * fix tests * fix to run script without docker * change behavior to accept appealNumbers * fix docker start * reset path to storage * fix paths to execute scripts * changes from review --------- Co-authored-by: Antoine Jeanneney <antoine.jeanneney@justice.fr>
* create model and repositories to preAssign decision * add preAssignation service tests * create pre assignation api endpoints * fix import in controller * create assignation when there is a preAssignation after nlp annotation * add delete preassignation route on api * first step for frontend * create delete oprtion * get userName instead of userId * refetch on delete * add pre-assignation creation button * add pre assignation creation * lint * adapt clear db * fix tests * fix to run script without docker * change behavior to accept appealNumbers * fix docker start * reset path to storage * fix paths to execute scripts * changes from review --------- Co-authored-by: Antoine Jeanneney <antoine.jeanneney@justice.fr>
Issue description :
You can set a pre-assignation for a document, after its annotation, the document is automatically assigned to the specified user
Describe your changes :
How to test :
Checklist before requesting a review