feat: Studio menu/button to display Unit's Tags (feature flagged) (#33563)

This commit is contained in:
Yusuf Musleh
2023-11-08 23:23:05 +03:00
committed by GitHub
parent 6cc9313ffc
commit e311ef50ec
10 changed files with 126 additions and 4 deletions

View File

@@ -446,6 +446,21 @@ def get_taxonomy_list_url():
return taxonomy_list_url
def get_taxonomy_tags_widget_url(course_locator) -> str:
"""
Gets course authoring microfrontend URL for taxonomy tags drawer widget view.
The `content_id` needs to be appended to the end of the URL when using it.
"""
taxonomy_tags_widget_url = None
# Uses the same waffle flag as taxonomy list page
if use_tagging_taxonomy_list_page():
mfe_base_url = get_course_authoring_url(course_locator)
if mfe_base_url:
taxonomy_tags_widget_url = f'{mfe_base_url}/tagging/components/widget/'
return taxonomy_tags_widget_url
def course_import_olx_validation_is_enabled():
"""
Check if course olx validation is enabled on course import.