-
-
Notifications
You must be signed in to change notification settings - Fork 129
Where do the submissions go?
jnm edited this page Jul 13, 2020
·
1 revision
- Client
POST
s tosubmission
endpoint - NGINX receives request and passes it to uWSGI
- uWSGI invokes Django machinery, which invokes Django REST Framework, which calls
-
XFormSubmissionApi.create()
, which calls -
create_instance_from_xml()
, which calls -
safe_create_instance()
, which calls -
create_instance()
, which calls -
save_submission()
, which calls-
Instance.save()
, which calls, through a Django signal,-
update_xform_instance_count()
- but the
defer_counting
attribute makes itreturn
without doing anything
- but the
-
-
ParsedInstance.objects.get_or_create()
, which saves the submission in Mongo -
update_xform_instance_count()
, directly, after having removeddefer_counting
, which- actually increments
num_of_submissions
- actually increments
-