Performance improvement and temporary patch removal#3076
Conversation
Greptile SummaryThis PR applies two focused improvements: it eliminates an N+1 query on the learning circle detail endpoint by moving
|
| Filename | Overview |
|---|---|
| api/dashboard/learningcircle/learningcircle_serializer.py | Replaced per-object count query with annotation-backed IntegerField for total_members; fixed datetime.now() → DateTimeUtils.get_current_utc_time(); removed dead commented-out code. Clean changes. |
| api/dashboard/learningcircle/learningcircle_views.py | Detail fetch now correctly uses select_related + annotate(total_members=...), matching the list path. Removed lat/lon variable bindings and commented-out temporary filters. No new issues introduced. |
| api/dashboard/mentor/mentor_views.py | LinkedIn key now always written to response_data (None when pending verification). MentorChangeCompanyAPI simplified to single approved-profile query ordered by -updated_at. Both changes are intentional and correct. |
Reviews (2): Last reviewed commit: "Fixed the greptile review" | Re-trigger Greptile
No description provided.