Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
a727959d
Commit
a727959d
authored
Jul 01, 2013
by
Miles Steele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add feature switch for beta dashboard
parent
a4608df8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
31 deletions
+43
-31
lms/djangoapps/instructor/views/legacy.py
+3
-1
lms/envs/common.py
+4
-1
lms/envs/dev.py
+1
-0
lms/templates/courseware/instructor_dashboard.html
+3
-1
lms/urls.py
+32
-28
No files found.
lms/djangoapps/instructor/views/legacy.py
View file @
a727959d
...
...
@@ -771,11 +771,13 @@ def instructor_dashboard(request, course_id):
'instructor_tasks'
:
instructor_tasks
,
'offline_grade_log'
:
offline_grades_available
(
course_id
),
'cohorts_ajax_url'
:
reverse
(
'cohorts'
,
kwargs
=
{
'course_id'
:
course_id
}),
'beta_dashboard_url'
:
reverse
(
'instructor_dashboard_2'
,
kwargs
=
{
'course_id'
:
course_id
}),
'analytics_results'
:
analytics_results
,
}
if
settings
.
MITX_FEATURES
.
get
(
'ENABLE_INSTRUCTOR_BETA_DASHBOARD'
):
context
[
'beta_dashboard_url'
]
=
reverse
(
'instructor_dashboard_2'
,
kwargs
=
{
'course_id'
:
course_id
})
return
render_to_response
(
'courseware/instructor_dashboard.html'
,
context
)
...
...
lms/envs/common.py
View file @
a727959d
...
...
@@ -152,7 +152,10 @@ MITX_FEATURES = {
# Toggle to enable chat availability (configured on a per-course
# basis in Studio)
'ENABLE_CHAT'
:
False
'ENABLE_CHAT'
:
False
,
# Enable instructor dash to submit background tasks
'ENABLE_INSTRUCTOR_BETA_DASHBOARD'
:
False
,
}
# Used for A/B testing
...
...
lms/envs/dev.py
View file @
a727959d
...
...
@@ -29,6 +29,7 @@ MITX_FEATURES['ENABLE_PSYCHOMETRICS'] = False # real-time psychometrics (eg i
MITX_FEATURES
[
'ENABLE_INSTRUCTOR_ANALYTICS'
]
=
True
MITX_FEATURES
[
'ENABLE_SERVICE_STATUS'
]
=
True
MITX_FEATURES
[
'ENABLE_HINTER_INSTRUCTOR_VIEW'
]
=
True
MITX_FEATURES
[
'ENABLE_INSTRUCTOR_BETA_DASHBOARD'
]
=
False
WIKI_ENABLED
=
True
...
...
lms/templates/courseware/instructor_dashboard.html
View file @
a727959d
...
...
@@ -102,7 +102,9 @@ function goto( mode)
<section
class=
"container"
>
<div
class=
"instructor-dashboard-wrapper"
>
<div
class=
"beta-button-wrapper"
><a
href=
"${ beta_dashboard_url }"
>
Try New Beta Dashboard
</a></div>
%if settings.MITX_FEATURES.get('ENABLE_INSTRUCTOR_BETA_DASHBOARD'):
<div
class=
"beta-button-wrapper"
><a
href=
"${ beta_dashboard_url }"
>
Try New Beta Dashboard
</a></div>
%endif
<section
class=
"instructor-dashboard-content"
>
<h1>
${_("Instructor Dashboard")}
</h1>
...
...
lms/urls.py
View file @
a727959d
...
...
@@ -251,34 +251,7 @@ if settings.COURSEWARE_ENABLED:
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor$'
,
'instructor.views.legacy.instructor_dashboard'
,
name
=
"instructor_dashboard"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard$'
,
'instructor.views.instructor_dashboard.instructor_dashboard_2'
,
name
=
"instructor_dashboard_2"
),
# api endpoints for instructor
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/students_update_enrollment_email$'
,
'instructor.views.api.students_update_enrollment_email'
,
name
=
"students_update_enrollment_email"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/list_course_role_members$'
,
'instructor.views.api.list_course_role_members'
,
name
=
"list_course_role_members"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/access_allow_revoke$'
,
'instructor.views.api.access_allow_revoke'
,
name
=
"access_allow_revoke"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/grading_config$'
,
'instructor.views.api.grading_config'
,
name
=
"grading_config"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/enrolled_students_profiles(?P<csv>/csv)?$'
,
'instructor.views.api.enrolled_students_profiles'
,
name
=
"enrolled_students_profiles"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/profile_distribution$'
,
'instructor.views.api.profile_distribution'
,
name
=
"profile_distribution"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/get_student_progress_url$'
,
'instructor.views.api.get_student_progress_url'
,
name
=
"get_student_progress_url"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/reset_student_attempts$'
,
'instructor.views.api.reset_student_attempts'
,
name
=
"reset_student_attempts"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/rescore_problem$'
,
'instructor.views.api.rescore_problem'
,
name
=
"rescore_problem"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/list_instructor_tasks$'
,
'instructor.views.api.list_instructor_tasks'
,
name
=
"list_instructor_tasks"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/list_forum_members$'
,
'instructor.views.api.list_forum_members'
,
name
=
"list_forum_members"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/update_forum_role_membership$'
,
'instructor.views.api.update_forum_role_membership'
,
name
=
"update_forum_role_membership"
),
# see ENABLE_INSTRUCTOR_BETA_DASHBOARD section for more urls
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/gradebook$'
,
'instructor.views.legacy.gradebook'
,
name
=
'gradebook'
),
...
...
@@ -367,6 +340,37 @@ if settings.COURSEWARE_ENABLED:
name
=
'submission_history'
),
)
if
settings
.
COURSEWARE_ENABLED
and
settings
.
MITX_FEATURES
.
get
(
'ENABLE_INSTRUCTOR_BETA_DASHBOARD'
):
urlpatterns
+=
(
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard$'
,
'instructor.views.instructor_dashboard.instructor_dashboard_2'
,
name
=
"instructor_dashboard_2"
),
# api endpoints for instructo_
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/students_update_enrollment_email$'
,
'instructor.views.api.students_update_enrollment_email'
,
name
=
"students_update_enrollment_email"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/list_course_role_members$'
,
'instructor.views.api.list_course_role_members'
,
name
=
"list_course_role_members"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/access_allow_revoke$'
,
'instructor.views.api.access_allow_revoke'
,
name
=
"access_allow_revoke"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/grading_config$'
,
'instructor.views.api.grading_config'
,
name
=
"grading_config"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/enrolled_students_profiles(?P<csv>/csv)?$'
,
'instructor.views.api.enrolled_students_profiles'
,
name
=
"enrolled_students_profiles"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/profile_distribution$'
,
'instructor.views.api.profile_distribution'
,
name
=
"profile_distribution"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/get_student_progress_url$'
,
'instructor.views.api.get_student_progress_url'
,
name
=
"get_student_progress_url"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/reset_student_attempts$'
,
'instructor.views.api.reset_student_attempts'
,
name
=
"reset_student_attempts"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/rescore_problem$'
,
'instructor.views.api.rescore_problem'
,
name
=
"rescore_problem"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/list_instructor_tasks$'
,
'instructor.views.api.list_instructor_tasks'
,
name
=
"list_instructor_tasks"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/list_forum_members$'
,
'instructor.views.api.list_forum_members'
,
name
=
"list_forum_members"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/update_forum_role_membership$'
,
'instructor.views.api.update_forum_role_membership'
,
name
=
"update_forum_role_membership"
),
)
if
settings
.
ENABLE_JASMINE
:
urlpatterns
+=
(
url
(
r'^_jasmine/'
,
include
(
'django_jasmine.urls'
)),)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment