openedx.core.djangoapps.discussions.config package#

Submodules#

openedx.core.djangoapps.discussions.config.waffle module#

This module contains various configuration settings via waffle switches for the discussions app.

openedx.core.djangoapps.discussions.config.waffle.is_forum_v2_disabled_globally() bool#

Return True if DISABLE_FORUM_V2 is defined and true-ish.

openedx.core.djangoapps.discussions.config.waffle.is_forum_v2_enabled(course_key)#

Returns whether forum V2 is enabled on the course. This is a 2-step check:

  1. Check value of settings.DISABLE_FORUM_V2: if it exists and is true, this setting overrides any course flag.

  2. Else, check the value of the corresponding course waffle flag.

openedx.core.djangoapps.discussions.config.waffle_utils module#

Utils methods for Discussion app waffle flags.

openedx.core.djangoapps.discussions.config.waffle_utils.legacy_discussion_experience_enabled(course_key)#

Checks for relevant flags and returns a boolean whether to show legacy discussion settings or not

Module contents#