Parent issue
Part of #38056
Context
cms/djangoapps/contentstore/views/library.py (~352 lines) implements all V1 library views. With the listing already removed (#37454), the remaining views (create, edit, user-access, import, export) can be removed.
Files to modify
cms/djangoapps/contentstore/views/library.py — delete or gut the file
cms/djangoapps/contentstore/views/__init__.py — remove any imports
cms/djangoapps/contentstore/views/tests/test_library.py — delete
Approach
- Remove functions:
library_handler, manage_library_users, _create_library, _display_library, _list_libraries, library_blocks_view
- Keep any functions required by migration endpoints if still referenced
- Delete accompanying test file
- Run:
pytest cms/djangoapps/contentstore/ to confirm no regressions
Acceptance criteria
No library_handler or manage_library_users routes return anything; their URL patterns return 404 or are removed.
Parent issue
Part of #38056
Context
cms/djangoapps/contentstore/views/library.py(~352 lines) implements all V1 library views. With the listing already removed (#37454), the remaining views (create, edit, user-access, import, export) can be removed.Files to modify
cms/djangoapps/contentstore/views/library.py— delete or gut the filecms/djangoapps/contentstore/views/__init__.py— remove any importscms/djangoapps/contentstore/views/tests/test_library.py— deleteApproach
library_handler,manage_library_users,_create_library,_display_library,_list_libraries,library_blocks_viewpytest cms/djangoapps/contentstore/to confirm no regressionsAcceptance criteria
No
library_handlerormanage_library_usersroutes return anything; their URL patterns return 404 or are removed.