Method to retrieve Collection Aggregate Summary details #147
-
Hi Sunbird Team, I want to retrieve the activity aggregate, assessment aggregate and enrolment reconciliation data that is updated at the time of content/collection state update in my collection(course) hierarchy for every individual node. I need to get the percentage completion at Course level and at Unit level. I want the data to include lastreadcontentid and lastreadcontentstatus datapoints from user_enrolments table as well. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
@Debayanpaul1593 you have to use the For more detail on calculation on frontend @swayangjit can help you. |
Beta Was this translation helpful? Give feedback.
-
@AmiableAnil How to do we fetch data stored in user_activity_agg table? It seems the completedCount value for any Course Unit is being stored in this table. |
Beta Was this translation helpful? Give feedback.
-
@swyangjit can you give a brief overview of how to calculate percentage completion at Course Unit level for a given course from the frontend and the logic that you have used for the same? |
Beta Was this translation helpful? Give feedback.
-
@Debayanpaul1593 - Let us know if your query is answered. If so, request you to mark the thread as answered. |
Beta Was this translation helpful? Give feedback.
@Debayanpaul1593 In mobile app we do an offline course calculation which you can find in below method
https://github.com/Sunbird-Ed/SunbirdEd-mobile-app/blob/85da3acf00a06e95000080ee5d40a90a83158f6c/src/app/enrolled-course-details-page/enrolled-course-details-page.ts#L1987