Merge User Courses
Last updated
Last updated
'merge-user-courses' job will permit a user who owns multiple accounts on a sunbird platform (one on an Organisation tenant and one on the custodian tenant), to merge the course related usage history (course batch enrolments, course content consumption, course progress) into one primary account.
This job performs following tasks:
Merges the content consumption details from an account to primary account.
Merges the user batches from an account to primary account.
Merges the user activity aggregate data from an account to primary account.
Performs a batch-enrolment-sync
to primary account
Configuration variables:
Sample event:
Source Code:
Variable | Default Value | Purpose |
---|---|---|
kafka.input.topic
{{env}}.lms.user.account.merge
Kafka topic from which messages/events are read to be processed.
kafka.output.failed.topic
{{env}}.learning.events.failed
Kafka topic to which message is written when an exception occurs while processing an event.
kafka.groupId
Kafka input topic group Id
kafka.output.course.batch.updater.topic
{{env}}.coursebatch.job.request
Kafka topic to which output message/event is inserted to perform user course progress activity reconciliation to merged Id
lms-cassandra.keyspace
sunbird_courses
Cassandra keyspace name
lms-cassandra.content_consumption.table
user_content_consumption
Cassandra table used to store content wise data for a collection of a batch by a user. Content progress, status etc
lms-cassandra.user_enrolments.table
user_enrolments
Cassandra table used to store user enrolment data in a collection of a particular batch. This also holds the consumption progress, enrolment status and issued certificate details
lms-cassandra.user_activity_agg.table
user_activity_agg
Cassandra table used to store user consumption aggregate details of a collection in a batch. Aggregates like the consumption completed content count