Skip to content

Update IG count calculation and add karma breakdown to profiles#3072

Merged
DevWithPranav merged 3 commits into
gtech-mulearn:devfrom
DevWithPranav:dev
Jul 23, 2026
Merged

Update IG count calculation and add karma breakdown to profiles#3072
DevWithPranav merged 3 commits into
gtech-mulearn:devfrom
DevWithPranav:dev

Conversation

@DevWithPranav

Copy link
Copy Markdown
Collaborator

No description provided.

@greptile-apps

greptile-apps Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates campus IG metrics and adds a detailed karma breakdown to user profiles. The main changes are:

  • Counts active campus IG chapters directly.
  • Splits approved karma into general, intern, IG, and event categories.
  • Includes event and organizing-IG metadata in profile responses.
  • Limits intern-role classification to active role links.

Confidence Score: 5/5

This looks safe to merge.

  • The active-role filter fixes the reported historical-role misclassification.
  • No separate production-breaking issue related to that role-state behavior remains in the updated code.

Important Files Changed

Filename Overview
api/dashboard/campus/serializers.py Changes the campus active IG count to use active CampusIGChapter records.
api/dashboard/profile/profile_serializer.py Adds categorized karma fields and filters intern classification to active roles.

Reviews (2): Last reviewed commit: "fix(profile): ensure only active intern ..." | Re-trigger Greptile

Comment thread api/dashboard/profile/profile_serializer.py
@DevWithPranav
DevWithPranav merged commit e4144a0 into gtech-mulearn:dev Jul 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants