dimagi/hsph-reports — pull request #37 by dmyung (2013-10-17 22:38:54+00:00)
Title: Report pillows - get rid of Full* and use Report* instead

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.