-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
RestAPI hooks : allow post hook for submit, edit, delete, validation status change #4812
base: main
Are you sure you want to change the base?
Conversation
Hi @hhertout, thanks for your recent contributions. I appreciate the labor and enthusiasm. I need to emphasize, however, that larger changes like this need to have discussion and consensus on the functionality and implementation approach—and it would hopefully save you time if we had these discussions before you wrote a lot of code. If you're planning to make more contributions like this, please start a discussion at https://community.kobotoolbox.org/c/feature-wishlist/6. Since you are a developer and willing to do the work yourself, you're welcome to ping me |
Any updates here? |
Hi @mtyszler, |
Ok, tks. In my case the |
Sorry to bother, but do you have any idea when this might be available? I'm asking because I'm testing a few workflows, and if this is not available I need some sort of cron job to check for updates periodically. Tks |
This PR is not going to be integrated any time soon, dsl. |
No, I'm using the EU kobotoolbox server... So I'll need to figure a workaround |
Hi @jnm , Let me add some context information: But you're right, we are create too quickly this PR. We are available to exchange, to modify our code, etc., without problem, quite the contrary! |
Checklist
Description
Allow events for each submission:
Frontend
Backend
It create only one row in database (hooklog table) for each new submission, or deletion, like the actual process.
It create one row in database (hooklog table) for each validation status changes or edition of the submission.
In case of retry, it keep the uid hook log and apply "tries" changes to it (with args parameters of celery retry async def) to prevent duplication hook log row.
https://github.com/kobotoolbox/kpi/compare/beta...geohyd:kpi:hook_crud_REST?expand=1#diff-31cba572d024445407a36a2c229103a835632da45f069eb4e804c074e1896a33R101
Related issues
kobotoolbox/kobocat#572
This PR is related to : kobotoolbox/kobocat#916
To be more precise, we also created an issue for side effect we noticed on the submission data edition when the hook fail and is in the retry process.
#4817