Skip to content

Commit 80fa4f3

Browse files
xitij2000farhaanbukhsh
authored andcommitted
fixup! fixup! fix: use a single 'provider_type' key for storing discussion provider type in course
1 parent 6e336e2 commit 80fa4f3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • openedx/core/djangoapps/discussions

openedx/core/djangoapps/discussions/tasks.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ def update_unit_discussion_state_from_discussion_blocks(
201201
"""
202202
store = modulestore()
203203
course = store.get_course(course_key)
204+
# The provider information has been written to both `provider_type` and `provider`.
205+
# Both of these serve the same purpose and this is an accident of early development.
206+
# The `provider_type` key is now treated as read-only to allow existing values
207+
# to be respected while moving to the `provider` key in the future.
204208
provider = course.discussions_settings.get(
205209
'provider_type',
206210
course.discussions_settings.get('provider', None),

0 commit comments

Comments
 (0)