@@ -85,7 +85,6 @@ def get_env_setting(setting):
8585 'EVENT_BUS_PRODUCER_CONFIG' ,
8686 'DEFAULT_FILE_STORAGE' ,
8787 'STATICFILES_STORAGE' ,
88- 'OPEN_EDX_FILTERS_CONFIG' ,
8988 ]
9089 })
9190
@@ -280,19 +279,6 @@ def get_env_setting(setting):
280279 EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST # noqa: F405
281280)
282281
283- # Merge OPEN_EDX_FILTERS_CONFIG from YAML into the default defined in common.py.
284- # Pipeline steps from YAML are appended after steps defined in common.py.
285- # The fail_silently value from YAML takes precedence over the one in common.py.
286- for _filter_type , _filter_config in _YAML_TOKENS .get ('OPEN_EDX_FILTERS_CONFIG' , {}).items ():
287- if _filter_type in OPEN_EDX_FILTERS_CONFIG : # noqa: F405
288- OPEN_EDX_FILTERS_CONFIG [_filter_type ]['pipeline' ].extend ( # noqa: F405
289- _filter_config .get ('pipeline' , [])
290- )
291- if 'fail_silently' in _filter_config :
292- OPEN_EDX_FILTERS_CONFIG [_filter_type ]['fail_silently' ] = _filter_config ['fail_silently' ] # noqa: F405
293- else :
294- OPEN_EDX_FILTERS_CONFIG [_filter_type ] = _filter_config # noqa: F405
295-
296282if ENABLE_THIRD_PARTY_AUTH : # noqa: F405
297283 AUTHENTICATION_BACKENDS = _YAML_TOKENS .get ('THIRD_PARTY_AUTH_BACKENDS' , [
298284 'social_core.backends.google.GoogleOAuth2' ,
@@ -530,19 +516,6 @@ def get_env_setting(setting):
530516 _YAML_TOKENS .get ('EVENT_BUS_PRODUCER_CONFIG' , {})
531517)
532518
533- # Merge OPEN_EDX_FILTERS_CONFIG from YAML into the default defined in common.py.
534- # Pipeline steps from YAML are appended after steps defined in common.py.
535- # The fail_silently value from YAML takes precedence over the one in common.py.
536- for _filter_type , _filter_config in _YAML_TOKENS .get ('OPEN_EDX_FILTERS_CONFIG' , {}).items ():
537- if _filter_type in OPEN_EDX_FILTERS_CONFIG :
538- OPEN_EDX_FILTERS_CONFIG [_filter_type ]['pipeline' ].extend (
539- _filter_config .get ('pipeline' , [])
540- )
541- if 'fail_silently' in _filter_config :
542- OPEN_EDX_FILTERS_CONFIG [_filter_type ]['fail_silently' ] = _filter_config ['fail_silently' ]
543- else :
544- OPEN_EDX_FILTERS_CONFIG [_filter_type ] = _filter_config
545-
546519#######################################################################################################################
547520# HEY! Don't add anything to the end of this file.
548521# Add your defaults to common.py instead!
0 commit comments