Added dynamic profile stats And 1 hr In-Memory Cache#69
Open
SampurnaNiyogi wants to merge 2 commits intoAvishkarPatil:mainfrom
Open
Added dynamic profile stats And 1 hr In-Memory Cache#69SampurnaNiyogi wants to merge 2 commits intoAvishkarPatil:mainfrom
SampurnaNiyogi wants to merge 2 commits intoAvishkarPatil:mainfrom
Conversation
Rahma5983
reviewed
Jan 5, 2026
Collaborator
There was a problem hiding this comment.
@SampurnaNiyogi The implementation is functionally correct and well-structured. It successfully replaces the misleading hardcoded stats with real data as requested in issue #68.
@AvishkarPatil You can merge the PR and if you want you can also check it once, or else it is good to go
Collaborator
|
I have found a few problems :-
|
Author
|
Ok I'll check into it. Thank you.. |
Collaborator
|
Saw the changes looks fine @AvishkarPatil This PR is ready to be merged. |
Owner
|
I'll merge it by EOD |
Author
|
Fixed the problem for more than 100 starred repos using iteration through response Link headers until all available pages are requested for paginated Github response. |
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
This PR addresses issue #68, which replaces static/mock profile activity data with dynamically fetched GitHub statistics. Previously, the profile page displayed hardcoded values for all users, which was misleading and did not reflect actual GitHub activity.
With this change, profile statistics are now fetched from GitHub APIs via the backend and rendered dynamically on the profile page.
Solution
Backend
GET /api/v1/github/stats/{username}Retrieved using GitHub Search API:
author:{username} type:prRetrieved using GitHub Search API:
author:{username} type:issue is:closed(issues authored by the user)
Aggregated from the user’s public repositories
Retrieved using GitHub GraphQL API (aggregated contribution data)
Frontend
mockData.stats.Testing
Future Improvements
Related Issue
Closes #68