This was the "outline tab" view of the course. Preceded by the
course info view, succeeded by the MFE outline tab.
In addition to the course home view itself, this drops related
features:
- Legacy version of Course Goals (MFE has a newer implementation)
- Course home in-course search (MFE has no search)
The old course info view and course about views survive for now.
This also drops a few now-unused feature toggles:
- course_experience.latest_update
- course_experience.show_upgrade_msg_on_course_home
- course_experience.upgrade_deadline_message
- course_home.course_home_use_legacy_frontend
With this change, just the progress and courseware tabs are still
supported in legacy form, if you opt-in with waffle flags. The
outline and dates tabs are offered only by the MFE.
AA-798
(This is identical to previous commit be5c1a6, just reintroduced
now that the e2e tests have been fixed)
25 lines
895 B
Python
25 lines
895 B
Python
"""
|
|
Signal handlers for course goals.
|
|
"""
|
|
|
|
|
|
from django.db.models.signals import post_save
|
|
from django.dispatch import receiver
|
|
from eventtracking import tracker
|
|
|
|
from common.djangoapps.track import segment
|
|
from lms.djangoapps.course_goals.models import CourseGoal
|
|
|
|
|
|
@receiver(post_save, sender=CourseGoal, dispatch_uid="emit_course_goals_event")
|
|
def emit_course_goal_event(sender, instance, **kwargs): # lint-amnesty, pylint: disable=unused-argument
|
|
"""Emit events for both tracking logs and for Segment."""
|
|
name = 'edx.course.goal.added' if kwargs.get('created', False) else 'edx.course.goal.updated'
|
|
properties = {
|
|
'courserun_key': str(instance.course_key),
|
|
'days_per_week': instance.days_per_week,
|
|
'subscribed_to_reminders': instance.subscribed_to_reminders,
|
|
}
|
|
tracker.emit(name, properties)
|
|
segment.track(instance.user.id, name, properties)
|