Service Layer medium complexity backend
1
Dependencies
1
Dependents
7
Entities
0
Integrations

Description

Core backend service that listens for assignment completion events, increments per-mentor counters, evaluates organization-specific threshold configurations, and emits threshold-crossing events. Supports versioned threshold rules so historical reporting reflects the configuration in force at the time of each assignment.

Feature: Assignment Threshold Tracking

threshold-tracking-service

Responsibilities

  • Listen for assignment status-change events (completed)
  • Increment and maintain per-mentor assignment counters per reporting period
  • Evaluate all configured thresholds against current count
  • Emit threshold-crossing events for notification and audit
  • Support versioned threshold configurations for historical accuracy

Interfaces

onAssignmentCompleted(assignmentId, mentorId)
evaluateThresholds(mentorId, organizationId)
getCurrentTier(mentorId, periodId)
getThresholdProgress(mentorId)
getThresholdHistory(mentorId, dateRange)
recalculateCountsForPeriod(organizationId, periodId)
getTeamThresholdSummary(coordinatorId)

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component