-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Upstream Sync with Content Library Blocks
- Loading branch information
1 parent
af69cbe
commit 1f7c5d5
Showing
21 changed files
with
1,371 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,31 @@ | ||
"""Contenstore API v2 URLs.""" | ||
|
||
from django.urls import path | ||
|
||
from cms.djangoapps.contentstore.rest_api.v2.views import HomePageCoursesViewV2 | ||
from django.conf import settings | ||
from django.urls import path, re_path | ||
|
||
from cms.djangoapps.contentstore.rest_api.v2.views import home, downstreams | ||
app_name = "v2" | ||
|
||
urlpatterns = [ | ||
path( | ||
"home/courses", | ||
HomePageCoursesViewV2.as_view(), | ||
home.HomePageCoursesViewV2.as_view(), | ||
name="courses", | ||
), | ||
# TODO: Potential future path. | ||
# re_path( | ||
# fr'^downstreams/$', | ||
# downstreams.DownstreamsListView.as_view(), | ||
# name="downstreams_list", | ||
# ), | ||
re_path( | ||
fr'^downstreams/{settings.USAGE_KEY_PATTERN}$', | ||
downstreams.DownstreamView.as_view(), | ||
name="downstream" | ||
), | ||
re_path( | ||
fr'^downstreams/{settings.USAGE_KEY_PATTERN}/sync$', | ||
downstreams.SyncFromUpstreamView.as_view(), | ||
name="sync_from_upstream" | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
"""Module for v2 views.""" | ||
|
||
from cms.djangoapps.contentstore.rest_api.v2.views.home import HomePageCoursesViewV2 | ||
Oops, something went wrong.