alumni_lookup

Top Engaged Alumni System

Overview

The Top Engaged Alumni system provides a sophisticated ranking mechanism to identify the most active and committed alumni based on their engagement activities, with built-in protections against “gaming” the system.

Key Features

Time Period Filtering

Scoring System

Level-Based Points

Activity Caps (Anti-Gaming Protection)

To prevent manipulation of rankings through repetitive low-level activities:

Combined Score (Distance Formula)

The ranking uses a “distance” calculation that balances both engagement quality (score) and breadth (activity count):

Distance = √((score × 1.5)² + (capped_activity_count × 1.0)²)

This ensures alumni with both high scores AND diverse engagement activities rank highest.

Changes Made (August 2025)

Removed Features

Enhanced Features

Implementation Details

Service Classes

Controller Updates

View Components

Usage

For Developers

# Get top 50 alumni for the last year
service = TopEngagedAlumniService.new(limit: 50, time_period: '1_year')
results = service.top_alumni

# Each result contains:
# - alum: Alumni record
# - score: Calculated score with caps applied
# - activity_count: Capped activity count
# - distance: Combined score for ranking
# - filtered_activities: Activities within time period

For Users

  1. Navigate to /alumni/top_engaged
  2. Select desired time period from dropdown
  3. View ranked list with engagement breakdowns
  4. Expand individual rows to see detailed activity history

Database Dependencies

UI Enhancements

Engagement Stats Breakdown Page

The breakdown page (/engagement_stats?tab=breakdown) displays engagement activities organized by level with point values clearly indicated: