Our goals:
-
Make all changes in policies logged. We need to know when and what was changed, who changed it, http_referer and params.
-
Protect policy to change commission from user that have no admin role.
-
DRY
-
- replace acceptance selenium tests that could fail durin long ajax request (in our case if products searching or recalculation collection would be too long) to something more reliable.