Harshavarma: Created an analytics api for fetching job hits#1882
Open
harshavarma29 wants to merge 1 commit intodevelopmentfrom
Open
Harshavarma: Created an analytics api for fetching job hits#1882harshavarma29 wants to merge 1 commit intodevelopmentfrom
harshavarma29 wants to merge 1 commit intodevelopmentfrom
Conversation
Anusha-Gali
requested changes
Nov 22, 2025
Anusha-Gali
left a comment
There was a problem hiding this comment.
Hi Harsha,
I have reviewed your PR locally and it works as per the requirement except for the optional query parameters as mentioned in the Endpoint: GET /analytics/role-hits-applications
Query Parameters:
startDate (optional): Date range start.
endDate (optional): Date range end.
roles (optional): Specific roles to filter.



bhanuanishakkineni
approved these changes
Dec 4, 2025
There was a problem hiding this comment.
Hello Harsha,
I have reviewed your PR and tested both frontend and backend. I tested the API endpoint using the Postman and it returned the expected results.

Please find comments related to frontend in #4325
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
An analytics chart that displays the number of hits and applications for each role, with options to filter by date range and specific roles.

Related PRS (if any):
To test this backend PR, you need to checkout the 4325 frontend PR.
Main changes explained:
Created the following files:
/analytics/job-hits-and-applicationsroute to fetch data using the controller’s business logic./analytics/job-hits-and-applications.How to test:
npm install,npm run build, andnpm startto run this PR locallyhttp://localhost:4500/api/loginhttp://localhost:4500/api/analytics/job-hits-and-applicationsScreenshots or videos of changes:
role_fetch_issue_video.mp4
Note:
Let me know your inputs, comments, or suggestions for improvement.