Problem Statement 1
Show 200 records in one page view with title ‘Displaying 200 out of <total records in the batch>. The various tabs - ‘LAST 7 DAYS LAST 14 DAYS LAST 5 WEEKS FROM BEGINING ‘ are not needed. Please remove these tabs.
Previous Implementation
GET /v1/dashboard/progress/course/:batchId?Period=LAST7/LAST14
New Implementation
Approach 1
GET /v1/dashboard/progress/course/:batchId?limit=200&offset=0
- With the help of limit we can define the data size.
- offset will help in getting the starting point.
With the help of limit and offset the details of the user progress in the desired batch will be fetched and calculate the progress of user
Pros
- Limit will be dynamic, so we can change limit anytime
Cons
- If new data comes up in between of next query then data will be mismatch
Ouput
{ batchEndsOn: "2019-02-04" enrolledOn: "2019-01-29 06:51:36:440+0000" firstName: "User" lastAccessTime: null lastName: "twotwo" org: "Sunbird" progress: 0 user: "c06222b0-e17e-4763-a8e9-371f30e51886" orgName:"" phoneNumber:"" }
Issues: Portal team is not working on this ticket and we are changing the parameters so to support both
- We can create a v2 request.
- We can keep the earlier code itself and add extra code to handle both parameters.
Problem Statement 2
In the current process, the download extract is sent to the course mentor’s email ID. We will continue sharing the extract in the email mode to the course mentors' email id.
The current csv file has the following fields:
Loginid
Name
CreatedDate
Language
Subject
Grade
Progress
Now updated csv wil have