dimagi/commcare-hq — pull request #1536 by dmyung (2013-10-17 22:42:00+00:00)
Title: Replace fullxforms and fullcases with report versions

note there are quirks with how the queries and data works.

report fields that are not know (dynamically mapped) are now wrapped in a dict
so what was once:

`case.some_secret_property = "foo"`
now is
`case.some_secret_property = {"#value": "foo"}`

dicts are kept otherwise, but any terminal leaf is turned into the `{#value: foo}` dict so as to prevent collisions in ES.

as such, i'm finding it easier to query stuff directly knowing the `#value` in the terms I set.

There is a converter in `from corehq.pillows.base import restore_property_dict` that will remove the `#value` and restore it to original form so that it can wrap() correctly.

so...what you queried with `#value` comes back and magically shows up without that dict wrap...that's how it is right now in this form.

affects/depended upon on https://github.com/dimagi/hq-pact/pull/48/files and https://github.com/dimagi/hsph-reports/pull/37