ICTatRTI / coconut-analytics

Browserified & backboned version of coconut-reports
Other
2 stars 3 forks source link

Reports: Epidemic Thresholds - incorrect counts #263

Open gmcressman opened 7 years ago

gmcressman commented 7 years ago

image

And drill down of one of these looks like this:

image

scloo commented 7 years ago

The reason the Cases show a zero count is because there is no Cases attributes for that threshold. In the code: threshold.Cases? .length So this zero count is correct according to the data.

Why it is showing a list of those links? That will need Mike's explanation as it was how he had it in his codes: if @issue.Cases? $("ul#links").hide()

Generally all the threshold records do show those "strange" looking links. Just that if the threshold has a Cases attribute, then they are not shown (but hidden on the screen). If the threshold does not have Cases but has Links, it will display those links as you see them on the screen. Perhaps Mike intended it for debugging purpose?