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
1680336d
Commit
1680336d
authored
Jan 14, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some minor bugs in the staff grading interface
parent
a0c0005e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
common/lib/capa/capa/templates/rubricinput.html
+1
-1
lms/djangoapps/open_ended_grading/staff_grading_service.py
+5
-3
lms/static/coffee/src/staff_grading/staff_grading.coffee
+1
-0
No files found.
common/lib/capa/capa/templates/rubricinput.html
View file @
1680336d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<h3>
Rubric
</h3>
<h3>
Rubric
</h3>
% if view_only:
% if view_only:
<p>
Select the criteria you feel best represents this submission in each category.
</p>
<p>
Select the criteria you feel best represents this submission in each category.
</p>
% else
% else
:
<p>
The highlighted selection best matches how the student feels you performed in each category.
</p>
<p>
The highlighted selection best matches how the student feels you performed in each category.
</p>
% endif
% endif
<table
class=
"rubric"
>
<table
class=
"rubric"
>
...
...
lms/djangoapps/open_ended_grading/staff_grading_service.py
View file @
1680336d
...
@@ -133,7 +133,8 @@ class StaffGradingService(GradingService):
...
@@ -133,7 +133,8 @@ class StaffGradingService(GradingService):
'feedback'
:
feedback
,
'feedback'
:
feedback
,
'grader_id'
:
grader_id
,
'grader_id'
:
grader_id
,
'skipped'
:
skipped
,
'skipped'
:
skipped
,
'rubric_scores'
:
rubric_scores
}
'rubric_scores'
:
rubric_scores
,
'rubric_scores_complete'
:
True
}
return
self
.
post
(
self
.
save_grade_url
,
data
=
data
)
return
self
.
post
(
self
.
save_grade_url
,
data
=
data
)
...
@@ -298,7 +299,7 @@ def save_grade(request, course_id):
...
@@ -298,7 +299,7 @@ def save_grade(request, course_id):
if
request
.
method
!=
'POST'
:
if
request
.
method
!=
'POST'
:
raise
Http404
raise
Http404
required
=
set
([
'score'
,
'feedback'
,
'submission_id'
,
'location'
,
'rubric_scores'
])
required
=
set
([
'score'
,
'feedback'
,
'submission_id'
,
'location'
,
'rubric_scores
[]
'
])
actual
=
set
(
request
.
POST
.
keys
())
actual
=
set
(
request
.
POST
.
keys
())
missing
=
required
-
actual
missing
=
required
-
actual
if
len
(
missing
)
>
0
:
if
len
(
missing
)
>
0
:
...
@@ -311,6 +312,7 @@ def save_grade(request, course_id):
...
@@ -311,6 +312,7 @@ def save_grade(request, course_id):
location
=
p
[
'location'
]
location
=
p
[
'location'
]
skipped
=
'skipped'
in
p
skipped
=
'skipped'
in
p
try
:
try
:
result_json
=
staff_grading_service
()
.
save_grade
(
course_id
,
result_json
=
staff_grading_service
()
.
save_grade
(
course_id
,
grader_id
,
grader_id
,
...
@@ -318,7 +320,7 @@ def save_grade(request, course_id):
...
@@ -318,7 +320,7 @@ def save_grade(request, course_id):
p
[
'score'
],
p
[
'score'
],
p
[
'feedback'
],
p
[
'feedback'
],
skipped
,
skipped
,
p
[
'rubric_scores'
]
)
p
.
getlist
(
'rubric_scores[]'
)
)
except
GradingServiceError
:
except
GradingServiceError
:
log
.
exception
(
"Error saving grade"
)
log
.
exception
(
"Error saving grade"
)
return
_err_response
(
'Could not connect to grading service'
)
return
_err_response
(
'Could not connect to grading service'
)
...
...
lms/static/coffee/src/staff_grading/staff_grading.coffee
View file @
1680336d
...
@@ -286,6 +286,7 @@ class StaffGrading
...
@@ -286,6 +286,7 @@ class StaffGrading
submit_and_get_next
:
()
->
submit_and_get_next
:
()
->
data
=
data
=
rubric_scores
:
@
get_score_list
()
rubric_scores
:
@
get_score_list
()
score
:
0
feedback
:
@
feedback_area
.
val
()
feedback
:
@
feedback_area
.
val
()
submission_id
:
@
submission_id
submission_id
:
@
submission_id
location
:
@
location
location
:
@
location
...
...
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