OpenClinica / enketo-oc

OpenClinica's fork of the Enketo web forms monorepo
Apache License 2.0
0 stars 1 forks source link

Change autoquery submissions to come from system instead of root #18

Open malcjackson opened 5 months ago

malcjackson commented 5 months ago

When autoqueries are created by the user closing the form or closed by data changes causing an item to become hidden, the submission seems hardcoded to indicate the action is attributed to the user "root"; see below ("user":"root" in the query submission):

{"queries":[{"type":"comment","id":"1","date_time":"2024-01-08 17:37:11.615 -05:00","comment":"Automatic query for: Temperature must be between 90 and 105 ⁰F or between 32 and 41 ⁰C (no more than 1 decimal digit)","status":"new","assigned_to":"","notify":false,"thread_id":"aa0be9bd-f3c4-4bbc-9df1-66ff128fa177","user":"root"}]}

We'd like to change this so in that all these cases autoquery actions currently attributed to root are instead attributed to "system" (so change to "user":"system" for autoquery submissions).

theywa commented 5 months ago

Hi @MartijnR , can you please review this OpenClinica/enketo-express-oc#739 in your spare time? thanks