-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
RestService not called on submission update #572
Comments
|
To simply kobocat/onadata/apps/viewer/models/parsed_instance.py Lines 339 to 340 in 3de1e63
Try removing the and created condition.
[edit: removing To do this properly would be more involved; I think we'd have to:
|
After removing the I get the following error in the kobocat logs: -------------- kobocat_main_worker@kobocat v4.2.1 (windowlicker)
[tasks] ERROR 2019-11-25 14:12:11,409 tasks 488 139774313666304 service_definition_task - 409 Client Error: CONFLICT for url: http://manage.craft.swcoe.natlab.research.philips.internal/assets/aK9WQ2PncvSWf3sqcNzVgo/hook-s |
Hi all, @aleksa-krolls and I are running into this same issue with an @OpenFn integration. @evanxg852000 , @kryptt , @jnm , did you ever figure out your problem? Relatedly, I want to flag a potential bug/strange behaviour we've noticed:
Are we right in our understanding of how things work in 2-4 above? If so, how can someone take an updated form and use it to update a destination system? (In a way that survives beyond the first edit.) Finally, is there any Thanks in advance for the consideration. Happy to take a crack at a PR if you point me in the right direction. Taylor |
Sorry for the slow response, @taylordowns2000, but you're right about points 2 and 3. This is dictated by the OpenRosa specification: https://docs.getodk.org/openrosa-metadata/. Point 4 isn't quite right: kobocat/onadata/apps/viewer/models/parsed_instance.py Lines 233 to 237 in cbaa4e2
To answer your last question:
…not by default, but you can add one to your form by creating a
Example XLSForm:
XForm produced from that XLSForm, where you can see that <?xml version="1.0" encoding="utf-8"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>unchanging uuid</h:title>
<model>
<instance>
<abJaKwDGoUrJz8hm38Uhut id="abJaKwDGoUrJz8hm38Uhut" version="vwLWuEdV8neuus26ARK7w2">
<formhub>
<uuid/>
</formhub>
<silver_bullet/>
<anything/>
<__version__/>
<meta>
<instanceID/>
</meta>
</abJaKwDGoUrJz8hm38Uhut>
</instance>
<bind calculate="once(uuid())" nodeset="/abJaKwDGoUrJz8hm38Uhut/silver_bullet" type="string"/>
<bind nodeset="/abJaKwDGoUrJz8hm38Uhut/anything" type="string"/>
<bind calculate="'vwLWuEdV8neuus26ARK7w2'" nodeset="/abJaKwDGoUrJz8hm38Uhut/__version__" type="string"/>
<bind calculate="concat('uuid:', uuid())" nodeset="/abJaKwDGoUrJz8hm38Uhut/meta/instanceID" readonly="true()" type="string"/>
<bind calculate="'1560320e8115401c89abbdea384b52c6'" nodeset="/abJaKwDGoUrJz8hm38Uhut/formhub/uuid" type="string"/>
</model>
</h:head>
<h:body>
<input ref="/abJaKwDGoUrJz8hm38Uhut/anything">
<label>type anything</label>
</input>
</h:body>
</h:html> |
Thank you, @jnm , and no worries at all on the delay. It looks like On my question 4 (can we rely on Thanks again! Any updates on the original issue here? Can REST services also make |
Right, it's the single database that's the key, here. KoBo doesn't have sharding or anything, so as long as you're dealing with the same installation of KoBo, There are situations where
I'd go ahead with
No, and yes 😉 KoBo hasn't pursued this at all, but other people are interested. I'm going to mention you over at kobotoolbox/kpi#2781. |
Any updates here? I'm setting up some workflows, and triggering a post call after submit an edition is quite useful |
Rest services get called when a new submission is sent, but the service is never called uppon updating the same submission. Is this intentional? how can I mitigate this?
I am keen on working on this if need be as we so desperately need this feature.
The text was updated successfully, but these errors were encountered: