theforeman/foreman — pull request #53 by GregSutcliffe (2012-05-19 17:54:16+00:00)
Title: Fix privacy leak in dashboard/facts/stats - Refs #1582

This applies a new search scope (based on Host.my_hosts) to FactValue. :my_facts and :my_hosts are used to restrict the data shown in the Dashboard, Facts, and Statistics tab.

I'd like to write some tests for this so we can ensure we don't break this later, but I've no idea where to start, as there doesn't appear to be any existing tests on the display of the these pages. How would I go about writing that?

#1582 also talks about classes, but I have a separate plan for that, so this effectively closes #1582