Skip to content

Separation of concerns: Batch actions should not check user levels and trigger notifications #4288

Description

@camilapedraza

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Default, possibly shipping in the following two quartersdays

    Type

    Fields

    No fields configured for Task.

    Projects

    Status
    📋 Not ready yet

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions