fix(analytics): replace hardcoded fake member profiles with real workspace user data [NSoC'26]#165
Conversation
|
@anshul23102 is attempting to deploy a commit to the shreemp194-gmailcom's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
👋 Thank you for opening this pull request! I will review your changes and assist you soon. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@anshul23102 having the conflict pls fix it. |
…space data [NSoC'26] getAnalytics built member metrics from a static list of six fictional team members (Alex Rivera, Jordan Smith, Casey Morgan, Riley Lee, Morgan Patel, Quinn Taylor) using a hash-based pseudo-assignment. None of these metrics reflected who actually created tasks or sent messages. Replaced the fake members with a roster derived from the distinct usernames present in the messages table. Metrics (assigned tasks, completed tasks, reviews, daily activity) are now computed from the real Supabase data. The 8-day activity histogram is built from actual message timestamps. Closes Shriii19#161
59b04bc to
ca61a1a
Compare
|
Rebased onto the latest The hardcoded roster of fake member profiles (Alex Rivera, Jordan Smith, etc. with
Net change removes 92 lines of fabricated data. Verified with Filed under NSoC'26. Please add the appropriate labels (and the NSoC'26 program label) when convenient. Ready for review. |
Description
getAnalyticsbuilt member metrics from a static list of six hardcoded fictional team members (Alex Rivera, Jordan Smith, Casey Morgan, Riley Lee, Morgan Patel, Quinn Taylor). Task assignments and completion counts were computed with a deterministic hash function and arbitrary multipliers, bearing no relation to actual workspace users or their activity.Changes Made
backend/controllers/analytics.controller.jshashString, and the fakebuildMembersfunctionbackend/controllers/analytics.controller.jsmessagestablebackend/controllers/analytics.controller.jsTesting Done
GET /api/analyticsnow returns the real contributors who have sent messages."team"placeholder is returned to prevent an empty response.Checklist
Closes #161