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

Send all submissions to external endpoint #390

Open
jnm opened this issue Oct 19, 2017 · 0 comments · May be fixed by #391
Open

Send all submissions to external endpoint #390

jnm opened this issue Oct 19, 2017 · 0 comments · May be fixed by #391
Assignees
Labels

Comments

@jnm
Copy link
Member

jnm commented Oct 19, 2017

  • Do not store submission data in Postgres or Mongo
    • But keep timestamps and UUIDs
  • Calculate sha256 for POST data and store inside instance XML
  • Return a 500 to the submitting client when REST push fails

Requested by Ashley Maher: https://app.asana.com/0/437725957582682/438404942540010/f

@jnm jnm self-assigned this Oct 19, 2017
jnm added a commit that referenced this issue 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:

* 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 linked a pull request Oct 19, 2017 that will close this issue
@jnm jnm added coded and removed in progress labels Oct 19, 2017
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 a pull request may close this issue.

1 participant