Skip to content
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

Allow destroying locally-stored submissions after #391

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jnm
Copy link
Member

@jnm jnm commented Oct 19, 2017

...POSTing JSON to an external service.

  • WARNING: ADVANCED USERS ONLY. POTENTIAL FOR MAJOR DATA LOSS! *

Should you want to direct ALL submissions to an external endpoint WITHOUT
storing any user-generated data in KoBoCAT's own Postgres or Mongo databases,
set the following in your environment:

Closes #390

...POSTing JSON to an external service.

* WARNING: ADVANCED USERS ONLY. POTENTIAL FOR MAJOR DATA LOSS! *

Should you want to direct ALL submissions to an external endpoint WITHOUT
storing any user-generated data in KoBoCAT's own Postgres or Mongo databases,
set the following in your environment:

* ENABLE_DESTRUCTIVE_REST_SERVICE=True
* FAILED_REST_SERVICE_BLOCKS_SUBMISSION=True
* FORCE_REST_SERVICE_NAME=destructive_json
* FORCE_REST_SERVICE_URL=https://your-server/your-JSON-submission-endpoint

Closes #390
@jnm jnm added the coded label Oct 19, 2017
...which caused 500 errors after the first submission for each thread
@jnm
Copy link
Member Author

jnm commented Sep 15, 2020

When updating to kobokitten, we should make ENABLE_DESTRUCTIVE_REST_SERVICE = True have the effect of completely replacing the available REST services list instead of appending to it; that way, there will be no risk of another REST service (e.g. KPI hook integration) trying and failing after the data has been destroyed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send all submissions to external endpoint
1 participant