Commit 6662b884 by Michael Terry Committed by Michael Terry

Publish to ecommerce after discovery

Ecommerce wants to talk to discovery to confirm details of course
like UUID. So let's publish to it after we publish to discovery.
parent 130654ab
......@@ -42,8 +42,9 @@ class CourseRunViewSet(viewsets.GenericViewSet):
try:
publication_status['studio'] = self.publish_to_studio(partner, course_run)
publication_status['ecommerce'] = self.publish_to_ecommerce(partner, course_run)
publication_status['discovery'] = self.publish_to_discovery(partner, course_run)
# ecommerce is going to want to ask discovery about the course's UUID, so we do this last
publication_status['ecommerce'] = self.publish_to_ecommerce(partner, course_run)
except SlumberBaseException as ex:
logger.exception('Failed to publish course run [%s]!', pk)
content = getattr(ex, 'content', None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment