You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When submission made to one task via ODK collect, all other tasks submissions is also incremented.
For example:
Assume a project has 10 tasks. When a submission is made to one task via ODK, the submission count of that task should only increment but submissions of other tasks are also incremented .
To Reproduce
Create a project
Go to ODK collect and make a submission to any one task
Go to the project submissions page or refresh the page and open the network tab
See the response of the /task-completion API and see incremented submission counts of all the tasks
Expected behavior
The submission count of that specific task should only increase when submission is made.
Screenshots
Here I made 2 submissions to task 5 only but the entire task submission count seems to be updated.
Laptop (please complete the following information):
Device: [Laptop]
OS: []
Browser [Chrome]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Previously each task was mapped to an XForm.
Now each task uses the same XForm, hence the issue here.
The submissions stuff needs a big overhaul now we are using Entities. The submission count can probably be determined without needing a separate endpoint now.
We could use the response from /project/id/statuses to determine how many features have status=2. Those Entities have been mapped and count as a submission.
Describe the bug
When submission made to one task via ODK collect, all other tasks submissions is also incremented.
For example:
Assume a project has 10 tasks. When a submission is made to one task via ODK, the submission count of that task should only increment but submissions of other tasks are also incremented .
To Reproduce
/task-completion
API and see incremented submission counts of all the tasksExpected behavior
The submission count of that specific task should only increase when submission is made.
Screenshots
Here I made 2 submissions to task 5 only but the entire task submission count seems to be updated.
Laptop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: