Skip to content

Commit

Permalink
Merge pull request #20126 from edx/depr/mobile-video-outline-api
Browse files Browse the repository at this point in the history
DEPR-4: Remove Mobile Video Outlines API
  • Loading branch information
nasthagiri authored Apr 12, 2019
2 parents fabaf9e + 3d8b8a0 commit aaa7b20
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 1,457 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ def test_number_mongo_calls(self, store_builder, depth, lazy, access_all_block_f
with store_builder.build(request_cache=request_cache) as (content_store, modulestore):
course_key = self._import_course(content_store, modulestore)

# Course traversal modeled after the traversal done here:
# lms/djangoapps/mobile_api/video_outlines/serializers.py:BlockOutline
# Starting at the root course block, do a breadth-first traversal using
# get_children() to retrieve each block's children.
with check_mongo_calls(num_mongo_calls):
Expand Down
1 change: 0 additions & 1 deletion lms/djangoapps/mobile_api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
urlpatterns = [
url(r'^users/', include('mobile_api.users.urls')),
url(r'^my_user_info', my_user_info, name='user-info'),
url(r'^video_outlines/', include('mobile_api.video_outlines.urls')),
url(r'^course_info/', include('mobile_api.course_info.urls')),
]
9 changes: 4 additions & 5 deletions lms/djangoapps/mobile_api/users/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,10 @@ def to_representation(self, course_overview):
request=request,
) if course_overview.is_discussion_tab_enabled() else None,

'video_outline': reverse(
'video-summary-list',
kwargs={'api_version': api_version, 'course_id': course_id},
request=request,
),
# This is an old API that was removed as part of DEPR-4. We keep the
# field present in case API parsers expect it, but this API is now
# removed.
'video_outline': None,
}


Expand Down
1 change: 0 additions & 1 deletion lms/djangoapps/mobile_api/users/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ def verify_success(self, response):
self.assertIn('courses/{}/about'.format(self.course.id), found_course['course_about'])
self.assertIn('course_info/{}/updates'.format(self.course.id), found_course['course_updates'])
self.assertIn('course_info/{}/handouts'.format(self.course.id), found_course['course_handouts'])
self.assertIn('video_outlines/courses/{}'.format(self.course.id), found_course['video_outline'])
self.assertEqual(found_course['id'], unicode(self.course.id))
self.assertEqual(courses[0]['mode'], CourseMode.DEFAULT_MODE_SLUG)
self.assertEqual(courses[0]['course']['subscription_id'], self.course.clean_id(padding_char='_'))
Expand Down
3 changes: 0 additions & 3 deletions lms/djangoapps/mobile_api/video_outlines/__init__.py

This file was deleted.

3 changes: 0 additions & 3 deletions lms/djangoapps/mobile_api/video_outlines/models.py

This file was deleted.

253 changes: 0 additions & 253 deletions lms/djangoapps/mobile_api/video_outlines/serializers.py

This file was deleted.

Loading

0 comments on commit aaa7b20

Please sign in to comment.