admin.application.go
#1
func getStudentsByProforma 
- It returns all the valid applicants under a proforma ID.
First, it fetch all the students from the pid using the function :
func fetchApplicantDetails(ctx, pid, &applied) 
Here pid refers to Proforma ID
- This takes pid and an empty array of type ApplicantsByRole (applied) as parameters.
Mentioned in db.application
Then it fetch all the students in the rc by srid taken from above function using the function:
func FetchStudentBySRID(ctx, srids, &allStudentsRC)
Mentioned in rc/db.student
#Check 1: Are some students missing from the rc :
- Done by comparing the output of both the ways.
#Check 2: Are some students missing from master:
- Done by comparing the output from the SRID path and from SID path.
Here SRID refers to Student RCID and SID refers to Student ID
For getting the students from SID path, we used the function:
func FetchStudentByID(ctx, sid, &allStudents) 
- This takes sid and an empty array of type Student
Mentioned in student/db
Finally it returns the valid applicants by verifying the questions using the function:
func getAnswersForProforma(ctx, pid)
Mentioned in application/admin.questions
#2
func viewApplicationsAdminHandler
- It returns the applications of a student using its SID with the function: func fetchApplications(ctx, srid, &response)
- This takes SRID and an empty array of type ViewApplicationsResponse
Mentioned in application/db.application