feat: Add authoring organization logo in API response for all learner enrolled programs (#30139)
This commit is contained in:
@@ -166,7 +166,8 @@ class TestProgramsView(SharedModuleStoreTestCase, ProgramCacheMixin):
|
||||
title='Journey to cooking',
|
||||
type='MicroMasters',
|
||||
authoring_organizations=[{
|
||||
'key': 'MAX'
|
||||
'key': 'MAX',
|
||||
'logo_image_url': 'http://test.org/media/organization/logos/test-logo.png'
|
||||
}],
|
||||
)
|
||||
cls.site = SiteFactory(domain='test.localhost')
|
||||
|
||||
@@ -134,7 +134,12 @@ class Programs(APIView):
|
||||
"""
|
||||
transformed_authoring_organizations = []
|
||||
for authoring_organization in authoring_organizations:
|
||||
transformed_authoring_organizations.append({'key': authoring_organization['key']})
|
||||
transformed_authoring_organizations.append(
|
||||
{
|
||||
'key': authoring_organization['key'],
|
||||
'logo_image_url': authoring_organization['logo_image_url']
|
||||
}
|
||||
)
|
||||
|
||||
return transformed_authoring_organizations
|
||||
|
||||
|
||||
Reference in New Issue
Block a user