Our batch actions are currently taking on the responsibility of checking user levels before and after running the actions, then identifying changes in levels, then triggering a notification if the level increased (here, here, here, and here)
It feels like checking changes in levels should not be part of the scope of batch actions. It should be its own function that can be called by any batch action (and by other features).
The check could live in the current badge_utils.py file or it could become a larger module. It would be within the scope of that function/utility/module to trigger notifications when it detects changes to user levels.
Our batch actions are currently taking on the responsibility of checking user levels before and after running the actions, then identifying changes in levels, then triggering a notification if the level increased (here, here, here, and here)
It feels like checking changes in levels should not be part of the scope of batch actions. It should be its own function that can be called by any batch action (and by other features).
The check could live in the current badge_utils.py file or it could become a larger module. It would be within the scope of that function/utility/module to trigger notifications when it detects changes to user levels.