AA-289: rewrite how course updates behave when dismissed
Previously, dismissing one course update would disable all future updates. But that feels a bit limiting. Instead, these are the new rules: - If the newest update has not been dismissed yet, it gets displayed. - If the newest update has been dismissed, we display nothing. - Editing the newest update will cause it to be displayed again. - New updates get displayed, even if previous updates were dismissed. This commit includes a light refactoring and addition of some utility methods to help manage the above. It also notes that the learning MFE does not use the "latest_update" waffle option, which controls the labeling of the update message.
Showing
- lms/djangoapps/course_home_api/outline/v1/views.py 7 additions, 11 deletionslms/djangoapps/course_home_api/outline/v1/views.py
- openedx/features/course_experience/__init__.py 2 additions, 1 deletionopenedx/features/course_experience/__init__.py
- openedx/features/course_experience/course_updates.py 113 additions, 0 deletionsopenedx/features/course_experience/course_updates.py
- openedx/features/course_experience/tests/__init__.py 104 additions, 0 deletionsopenedx/features/course_experience/tests/__init__.py
- openedx/features/course_experience/tests/test_course_updates.py 121 additions, 0 deletions...x/features/course_experience/tests/test_course_updates.py
- openedx/features/course_experience/tests/views/test_course_home.py 10 additions, 23 deletions...eatures/course_experience/tests/views/test_course_home.py
- openedx/features/course_experience/tests/views/test_course_updates.py 7 additions, 93 deletions...ures/course_experience/tests/views/test_course_updates.py
- openedx/features/course_experience/tests/views/test_welcome_message.py 9 additions, 50 deletions...res/course_experience/tests/views/test_welcome_message.py
- openedx/features/course_experience/views/course_updates.py 1 addition, 34 deletionsopenedx/features/course_experience/views/course_updates.py
- openedx/features/course_experience/views/latest_update.py 2 additions, 7 deletionsopenedx/features/course_experience/views/latest_update.py
- openedx/features/course_experience/views/welcome_message.py 8 additions, 17 deletionsopenedx/features/course_experience/views/welcome_message.py
Loading
Please register or sign in to comment