fix!: Removes the openedx provider temporarily [BD-38] [TNL-9269] (#29314)

* fix!: Removes the openedx provider temporarily

UI changes to support the new provider are in progress. Once they are ready we
can add back this provider.

* feat: add support for hiding providers from the API response
This commit is contained in:
Kshitij Sobti
2021-11-15 16:06:16 +00:00
committed by GitHub
parent 22cb639919
commit 28a2af7a2a
2 changed files with 6 additions and 1 deletions

View File

@@ -156,6 +156,7 @@ AVAILABLE_PROVIDER_MAP = {
'messages': [],
'has_full_support': True,
'supports_in_context_discussions': True,
'visible': False,
},
'ed-discuss': {
'features': [

View File

@@ -238,7 +238,11 @@ class DiscussionsConfigurationSerializer(serializers.ModelSerializer):
'plugin_configuration': plugin_configuration,
'providers': {
'active': provider_type or DEFAULT_PROVIDER_TYPE,
'available': AVAILABLE_PROVIDER_MAP,
'available': {
key: value
for key, value in AVAILABLE_PROVIDER_MAP.items()
if value.get('visible', True)
},
},
})
return payload