Activity Attribution Service
Component Detail
Service Layer
high complexity
backend
0
Dependencies
0
Dependents
5
Entities
0
Integrations
Description
Service responsible for walking the organizational hierarchy upward to aggregate activity counts at each level for accurate Bufdir reporting roll-ups. Ensures that national, regional, and local contributions are transparently tracked and attributed to the correct tier.
activity-attribution-service
Responsibilities
- Walk hierarchy upward to aggregate activity counts per level
- Attribute activities to the correct org tier for Bufdir reporting
- Provide per-level breakdowns for coordinator dashboards
- Detect and flag cross-level attribution conflicts
Interfaces
aggregateActivitiesByLevel(organizationId, period)
getAttributionForNode(nodeId, level)
getRollUpCounts(nationalAssociationId)
validateAttribution(activityId)
getActivityDistribution(organizationId)
Related Data Entities (5)
Data entities managed by this component