NUDelta/ce-platform

Number of Submissions for a need sometimes exceeds situation.number defined in the experience

Closed this issue · 0 comments

I've seen 3 or 4 submissions created, when situation number is 2.

Look for when submissions are updated

[info] Submissions DB Changed sometimes gets printed 3 times or 4 times

The issue in inserting extra submissions, and with new _ids, happens along these chains of funcitons

adminUpdatesForRemovingUsersToIncidentEntirely
adminUpdatesForRemovingUsersToIncident
->  _removeUsersFromAssignmentDb
----> checkIfNeedFailed
------> addEmptySubmissionsForNeed gets called, and adds needNumber submissions everytime

My question is when should 1) be called, 2) what does need failed mean, 2) why delete needs and recreate them? 3) why add empty submissions if so?

  • checkIfNeedFailed gets called twice, since _removeUsersFromAssignmentDb gets called multiple times, since admintUpdatesForRemovingUsersToIncident