feat: Enable taxonomy/tagging feature in MFE by default (#34633)
* feat: make tagging feature enabled by default * fix: use the correct flag for tagging enabled * fix: make compatible with other changes from master * fix: more compatibility fixes * fix: show tag counts at all levels of the outline, not just units * chore: typo * test: fix counts in test suite now that tagging is on by default --------- Co-authored-by: Braden MacDonald <braden@opencraft.com> Co-authored-by: Yusuf Musleh <yusuf@opencraft.com>
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
|
||||
"""
|
||||
Toggles for content tagging
|
||||
"""
|
||||
|
||||
from edx_toggles.toggles import WaffleFlag
|
||||
|
||||
from openedx.core.djangoapps.waffle_utils import CourseWaffleFlag
|
||||
|
||||
|
||||
# .. toggle_name: content_tagging.auto
|
||||
# .. toggle_implementation: WaffleSwitch
|
||||
# .. toggle_implementation: CourseWaffleFlag
|
||||
# .. toggle_default: False
|
||||
# .. toggle_description: Setting this enables automatic tagging of content
|
||||
# .. toggle_type: feature_flag
|
||||
@@ -15,3 +17,21 @@ from openedx.core.djangoapps.waffle_utils import CourseWaffleFlag
|
||||
# .. toggle_creation_date: 2023-08-30
|
||||
# .. toggle_tickets: https://github.com/openedx/modular-learning/issues/79
|
||||
CONTENT_TAGGING_AUTO = CourseWaffleFlag('content_tagging.auto', __name__)
|
||||
|
||||
|
||||
# .. toggle_name: content_tagging.disabled
|
||||
# .. toggle_implementation: WaffleFlag
|
||||
# .. toggle_default: False
|
||||
# .. toggle_description: Setting this disables the tagging feature
|
||||
# .. toggle_type: feature_flag
|
||||
# .. toggle_category: admin
|
||||
# .. toggle_use_cases: open_edx
|
||||
# .. toggle_creation_date: 2024-04-30
|
||||
DISABLE_TAGGING_FEATURE = WaffleFlag('content_tagging.disabled', __name__)
|
||||
|
||||
|
||||
def is_tagging_feature_disabled():
|
||||
"""
|
||||
Returns a boolean if tagging feature list page is disabled
|
||||
"""
|
||||
return DISABLE_TAGGING_FEATURE.is_enabled()
|
||||
|
||||
Reference in New Issue
Block a user