Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. User is a logged in user and has enrolled into atleast one trackable collection

Solutions:

  1. Adding new metadata to User’s enrollment

  2. Re-using last access time from User content consumption

Adding new metadata to User’s enrollment :

Adding a metadata to User’s enrollment component as last access timestamp. This metadata needs to updated while updating last accessed content id for a user. Also for the old records for this metadata requires a migration.

Steps to follow:

  1. Add new column to user_enrolments table

...

4. Order the records for list enrolment api to get the expected response 2.

Re-using last access time from User content consumption:

While fetch list of user enrollments join user content consumption by the last access content id to get the last access timestamp filter by the user id, course id, batch id and last access content id and formulate the response accordingly. This approach would not require the migration steps

...