Management command for assigning enterprise_learner roles to existing linked enterprise users that are missing them.
Bases: django.core.management.base.BaseCommand
Management command for assigning enterprise_learner roles to existing enterprise users.
$ ./manage.py backfill_learner_role_assignments
Entry point for subclassed commands to add custom arguments.
Assigns enterprise_learner role to users.
Entry point for management command execution.
Django management command for bulk updating EnterpriseCustomerCatalog record’s EnterpriseCatalogQuery’s.
Bases: django.core.management.base.BaseCommand
Takes a new and old Enterprise Catalog Query ID, find all most recent records within the historical Enterprise Catalog table where enterprise catalog query ID is the old ID provided and updates the corresponding Enterprise Catalog table entries with the new ID.
Entry point for subclassed commands to add custom arguments.
Returns an options dictionary from the current BulkCatalogQueryUpdateCommandConfiguration model.
Entry point for management command execution.
Django management command for creating EnterpriseCourseEnrollment records.
Bases: django.core.management.base.BaseCommand
Creates EnterpriseCourseEnrollment records (if they do not already exist) for CourseEnrollment records that are associated with an enterprise user and a course run that exists in the enterprise’s catalog.
Entry point for subclassed commands to add custom arguments.
The actual logic of the command. Subclasses must implement this method.
Django management command for creating DataSharingConsent records.
Bases: django.core.management.base.BaseCommand
Django management command for creating DataSharingConsent records
Entry point for subclassed commands to add custom arguments.
The actual logic of the command. Subclasses must implement this method.
Django management command for sending an email to learners with missing DataSharingConsent records.
Bases: django.core.management.base.BaseCommand
Django management command for sending an email to learners with missing DataSharingConsent records
Entry point for subclassed commands to add custom arguments.
Emit the Segment event which will be used by Braze to send the email
Get EnterpriseCourseEnrollment records according to the options and with dsc enabled
Management command for sending an email to learners with a missing DSC. Designed to run daily.
$ ./manage.py email_drip_for_missing_dsc_records $ ./manage.py email_drip_for_missing_dsc_records –no-commit $ ./manage.py email_drip_for_missing_dsc_records –enrollment-before 2021-05-06 –no-commit $ ./manage.py email_drip_for_missing_dsc_records –enrollment-before 2021-05-06
Django management command to ensure there is at most a single EnterpriseCustomerUser with active=True for each enterprise user.
Bases: django.core.management.base.BaseCommand
Django management command to ensure there is at most a single EnterpriseCustomerUser with active=True for each enterprise user.
Example usage: ./manage.py lms ensure_singular_active_enterprise_customer_user
Entry point for subclassed commands to add custom arguments.
The actual logic of the command. Subclasses must implement this method.
Django management command to Fix DSC records having spaces in there course Id.
Bases: django.core.management.base.BaseCommand
Django management command to Fix DSC records having spaces in there course Id.
This Command fixes the DSC records what were saved due to bug in our system and DSC records were saved with spaces.
Example usage: ./manage.py lms fix_dsc_records ./manage.py lms fix_dsc_records –no-commit
Entry point for subclassed commands to add custom arguments.
The actual logic of the command. Subclasses must implement this method.
Django management command for migrating EnterpriseCustomerCatalog data to new service.
Bases: django.core.management.base.BaseCommand
Migrate EnterpriseCustomerCatalog data to new Enterprise Catalog service.
Entry point for subclassed commands to add custom arguments.
The actual logic of the command. Subclasses must implement this method.
Django management command to send monthly impact report to enterprise admins.
Bases: django.core.management.base.BaseCommand
Django management command to send monthly impact report to enterprise admins.
Example usage: ./manage.py lms monthly_impact_report ./manage.py lms monthly_impact_report –no-commit
Entry point for subclassed commands to add custom arguments.
Emit the Segment event which will be used by Braze to send the email
Get query results from Snowflake and yield each row.
The actual logic of the command. Subclasses must implement this method.
Django management command to send nudge email to dormant enrolled enterprise learners.
Bases: django.core.management.base.BaseCommand
Django management command to send nudge email to dormant enrolled enterprise learners.
Example usage: ./manage.py lms nudge_dormant_enrolled_enterprise_learners ./manage.py lms nudge_dormant_enrolled_enterprise_learners –no-commit
Entry point for subclassed commands to add custom arguments.
Emit the Segment event which will be used by Braze to send the email
Get query results from Snowflake and yield each row.
The actual logic of the command. Subclasses must implement this method.
Management command for reverting revoked enrollment related objects to a particular time.
Bases: django.core.management.base.BaseCommand
Management command for reverting revoked enrollment related objects to a particular time.
$ ./manage.py revert_enrollment_objects –year 2021 –month 11 –day 17 –enterprise-customer-name test-co
Entry point for subclassed commands to add custom arguments.
Entry point for management command execution.
Revert all EnterpriseCourseEnrollment, LicensedEnterpriseCourseEnrollment, and “student” CourseEnrollment objects to the date provided, using the history table IF is_revoked = True on LicensedEnterpriseCourseEnrollment
Django management command for saving EnterpriseCustomerUser models.
Bases: django.core.management.base.BaseCommand
Calls save() on EnterpriseCustomerUser models.
This is useful for triggering save-related signals causing the associated signal receiver functions to fire.
Entry point for subclassed commands to add custom arguments.
The actual logic of the command. Subclasses must implement this method.
Management command for assigning enterprise roles to existing enterprise users.
Bases: django.core.management.base.BaseCommand
Management command for populating Devstack with initial data for enterprise.
$ ./manage.py lms seed_enterprise_devstack_data
Entry point for subclassed commands to add custom arguments.
Entry point for managment command execution.
Django management command to unlink the learners, Delete the enrollments and remove the DSC.
Bases: django.core.management.base.BaseCommand
Django management command to unlink the learners, Delete the enrollments and remove the DSC
Example usage: ./manage.py lms unlink_enterprise_customer_learners -e <enterprise-uuid> –data-csv /path/file.csv ./manage.py lms unlink_enterprise_customer_learners -e <enterprise-uuid> –data-csv /path/file.csv –skip-unlink
Entry point for subclassed commands to add custom arguments.
The actual logic of the command. Subclasses must implement this method.
Management command for updating enterprise user role assignments
with appropriate enterprise_customer
and applies_to_all_contexts
values.
Bases: django.core.management.base.BaseCommand
Management command for creating enterprise role assignments with a foreign key to an EnterpriseCustomer, or an explicit boolean flag indicating that the assignment grants the role to the user for every EnterpriseCustomer.
Entry point for subclassed commands to add custom arguments.
Entry point for managment command execution.