Merge pull request #17905 from edx/fsheets/sfe-search-cleanup

Remove Studio Assets Search Waffle & Add test
This commit is contained in:
Farhanah Sheets
2018-04-10 17:14:21 -04:00
committed by GitHub
6 changed files with 16 additions and 16 deletions

View File

@@ -9,7 +9,6 @@ WAFFLE_NAMESPACE = u'studio'
# Switches
ENABLE_ACCESSIBILITY_POLICY_PAGE = u'enable_policy_page'
ENABLE_ASSETS_SEARCH = u'enable_assets_search'
def waffle():

View File

@@ -6,7 +6,6 @@
from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import HTML, Text
from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json
from cms.djangoapps.contentstore.config.waffle import waffle, ENABLE_ASSETS_SEARCH
%>
<%block name="title">${_("Files & Uploads")}</%block>
<%block name="bodyclass">is-signedin course uploads view-uploads</%block>
@@ -49,9 +48,6 @@
},
"upload_settings": {
"max_file_size_in_mbs": ${max_file_size_in_mbs|n, dump_js_escaped_json}
},
"search_settings": {
"enabled": ${waffle().is_enabled(ENABLE_ASSETS_SEARCH) | n, dump_js_escaped_json}
}
}
</%static:studiofrontend>