-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Exporting reports filtered by place results in an empty xml #3593
Comments
Hi @eljhkrr this sounds like a bug. Can you please provide more information? For example:
Any other relevant information, such as the software version, browser version etc. |
@SCdF This was observed on the kilifikids-kaiti instance. To reproduce the bug: |
Thanks for filling in more details @eljhkrr. I looked up the software version for you: it's 2.11.3. (You can find out which version of the software you're running on the about page) I'd be also interested in the browser you're using, it's version, and the operating system you're running on. |
@SCdF there are two parts to this: First, exporting has moved and changed a lot from 0.4 to 2.x. It's now on the Reports tab and we don't have different options for which format the file is downloaded in. We've had requests from some partners that we bring back the csv and xls options for downloads. This is something I'd like to include in 2.14 so it's not prioritized for now but will be soon. The second piece of this is a bug that I haven't had a chance to file yet but that I discovered during recent testing of the export feature. All of the filters are working as expected except for the filter by place. I'm going to update the title of this issue to represent the bug we have in filtering by place and we can open a new issue (to be fixed in the future) for the file type of the export. |
I've updated the title here - @eljhkrr's steps to reproduce should work well as that's how I've recreated the bug on my laptop. |
Exporting reports and messages was broken by the recent linked contacts change because the exports can return details on the parents, for example, "parent.name". This hydrates all the db rows before they get mapped into the output format. medic/cht-core#3593
Exporting reports filtered by place relies on the "clinic" field so we need to include it in the lucene index. Also fixes an exception that's thrown when doc.fields is null. #3593
Two PRs for code review please @estellecomment |
Exporting reports filtered by place relies on the "clinic" field so we need to include it in the lucene index. Also fixes an exception that's thrown when doc.fields is null. #3593
Commented on the commit for api one : medic/medic-api@255a2f6 And then good to merge. |
Exporting reports and messages was broken by the recent linked contacts change because the exports can return details on the parents, for example, "parent.name". This hydrates all the db rows before they get mapped into the output format. medic/cht-core#3593
Working well in v2.13.0-beta.2. Moving to ready. |
No description provided.
The text was updated successfully, but these errors were encountered: