Katello/katello — pull request #801 by gstoeckel (2012-10-05 18:52:24+00:00)
Title: Notices

Added notice capture for use in automation testing framework. Notices are stored in an array only until page reload. This is expected to have a negligible effect on performance, since only a relatively small number of notices should accumulate between page loads.

The alternative of injecting js and using triggers was explored, but would require an unreasonable amount of effort to accomplish due to the need to inject js from within the testing framework on every page load. This would affect hundreds of call sites and would be difficult to extend. Thus, storing notices in an array was deemed to be an effective and simple solution with no noticeable effect on performance.