fix(analytics): replace hardcoded fake member profiles with real workspace user data [NSoC'26]#165
Open
anshul23102 wants to merge 1 commit into
Open
Conversation
…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
|
@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. |
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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