projecttacoma/bonnie — pull request #30 by jtferns (2013-12-27 17:22:32+00:00)
Title: Total Coverage on Measure View

Story: https://www.pivotaltracker.com/story/show/61762256

Added simple total coverage percentage in aggregate results section of the individual measure view.

Current styling is a simple header-5 with a percent, dropped below the aggregate results views.

Current computation:
- iterate over the data criteria associated with the given measure
- store all of its keys in the rationaleCoverage hash
- iterate over each results' rationale hash
- for each entry in the rationale hash, if it is truthy, then record a true value in the rationaleCoverage hash, otherwise if it is falsey and has not been marked true yet, then mark it as false
- the percentage is a simple computation of # of true values in the rationaleCoverage hash over the total number of values, rounded to a whole percentage