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

Support separators in doc_id #108

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Support separators in doc_id #108

wants to merge 2 commits into from

Conversation

kaapstorm
Copy link
Contributor

Context: SC-3872

This change accommodates merged payloads from CommCare HQ.

The value of "doc_id" of a merged payload is a comma-separated list of the doc_ids it contains. e.g.

{
  "data_source_id": "abc123",
  "doc_id": "a1,b2",
  "data": [
    {"doc_id": "a1", "foo": "bar"},
    {"doc_id": "b2", "foo": "baz"}
  ]
}

@kaapstorm
Copy link
Contributor Author

Commit 6aa8a65 supports the new payload format introduced in PR dimagi/commcare-hq#35732 while still supporting the current payload format.

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

Successfully merging this pull request may close these issues.

2 participants