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:
@@ -156,6 +156,7 @@ AVAILABLE_PROVIDER_MAP = {
|
||||
'messages': [],
|
||||
'has_full_support': True,
|
||||
'supports_in_context_discussions': True,
|
||||
'visible': False,
|
||||
},
|
||||
'ed-discuss': {
|
||||
'features': [
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user