Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
f71893fd
Commit
f71893fd
authored
Apr 07, 2016
by
Eric Fischer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #901 from edx/efischer/show_ungraded_feedback
TNL-4351 Fix bug with no-option reponses
parents
0f254729
d6738357
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
72 additions
and
6 deletions
+72
-6
openassessment/templates/openassessmentblock/staff_area/oa_student_info.html
+5
-1
openassessment/templates/openassessmentblock/staff_area/oa_student_info_assessment_detail.html
+11
-3
openassessment/xblock/test/data/feedback_only_criterion_staff.xml
+20
-0
openassessment/xblock/test/test_staff_area.py
+35
-1
setup.py
+1
-1
No files found.
openassessment/templates/openassessmentblock/staff_area/oa_student_info.html
View file @
f71893fd
...
...
@@ -124,7 +124,11 @@
<div>
{{ individual_assessment.title }} - {{ individual_assessment.option.label}}
</div>
{% endfor %}
{% elif assessment.points == None %}
<div>
{{ assessment.option.label }}
</div>
{% if assessment.option != None %}
<div>
{{ assessment.option.label }}
</div>
{% else %}
<div>
{% trans 'Feedback Recorded' %}
</div>
{% endif %}
{% endif %}
</td>
{% endfor %}
...
...
openassessment/templates/openassessmentblock/staff_area/oa_student_info_assessment_detail.html
View file @
f71893fd
...
...
@@ -31,12 +31,20 @@
<tbody>
{% for criterion in rubric_criteria %}
{% for part in assessment.parts %}
{% if part.
option.
criterion.name == criterion.name %}
{% if part.criterion.name == criterion.name %}
<tr>
<td
class=
"label"
>
{{ criterion.label }}
</td>
<td
class=
"value"
>
{{ part.option.label }}
</td>
{% if part.option != None %}
<td
class=
"value"
>
{{ part.option.label }}
</td>
{% else %}
<td
class=
"value"
></td>
{% endif %}
<td
class=
"value"
>
{{ part.feedback }}
</td>
<td
class=
"value"
>
{{ part.option.points }}
</td>
{% if part.option != None %}
<td
class=
"value"
>
{{ part.option.points }}
</td>
{% else %}
<td
class=
"value"
></td>
{% endif %}
<td
class=
"value"
>
{{ criterion.total_value }}
</td>
</tr>
{% endif %}
...
...
openassessment/xblock/test/data/feedback_only_criterion_staff.xml
0 → 100644
View file @
f71893fd
<openassessment>
<title>
Feedback only criterion
</title>
<prompts>
<prompt>
<description>
Given the state of the world today, what do you think should be done to combat poverty?
</description>
</prompt>
<prompt>
<description>
Given the state of the world today, what do you think should be done to combat pollution?
</description>
</prompt>
</prompts>
<rubric>
<criterion
feedback=
"required"
>
<name>
vocabulary
</name>
<prompt>
This criterion accepts only written feedback, so it has no options
</prompt>
</criterion>
</rubric>
<assessments>
<assessment
name=
"staff-assessment"
required=
"true"
/>
</assessments>
</openassessment>
openassessment/xblock/test/test_staff_area.py
View file @
f71893fd
...
...
@@ -247,6 +247,40 @@ class TestCourseStaff(XBlockHandlerTestCase):
self
.
assertEquals
(
1
,
len
(
grade_details
[
'criteria'
][
0
][
'assessments'
]))
self
.
assertEquals
(
'Self Assessment Grade'
,
grade_details
[
'criteria'
][
0
][
'assessments'
][
0
][
'title'
])
@scenario
(
'data/feedback_only_criterion_staff.xml'
,
user_id
=
'Bob'
)
def
test_staff_area_student_info_staff_only_no_options
(
self
,
xblock
):
# Simulate that we are course staff
xblock
.
xmodule_runtime
=
self
.
_create_mock_runtime
(
xblock
.
scope_ids
.
usage_id
,
True
,
False
,
"Bob"
)
xblock
.
runtime
.
_services
[
'user'
]
=
NullUserService
()
bob_item
=
STUDENT_ITEM
.
copy
()
bob_item
[
"item_id"
]
=
xblock
.
scope_ids
.
usage_id
# Create a submission for Bob, and corresponding workflow.
submission
=
self
.
_create_submission
(
bob_item
,
prepare_submission_for_serialization
((
"Bob Answer 1"
,
"Bob Answer 2"
)),
[
'staff'
]
)
# Bob assesses himself as staff.
staff_api
.
create_assessment
(
submission
[
'uuid'
],
STUDENT_ITEM
[
"student_id"
],
{},
# no options available
{
"vocabulary"
:
"Good use of vocabulary!"
},
ASSESSMENT_DICT
[
'overall_feedback'
],
{
'criteria'
:
xblock
.
rubric_criteria
},
)
_
,
context
=
xblock
.
get_student_info_path_and_context
(
"Bob"
)
self
.
assertIn
(
"Good use of vocabulary!"
,
self
.
request
(
xblock
,
"render_student_info"
,
urllib
.
urlencode
({
"student_username"
:
"Bob"
})
)
)
@scenario
(
'data/staff_grade_scenario.xml'
,
user_id
=
'Bob'
)
def
test_staff_area_student_info_staff_only
(
self
,
xblock
):
# Simulate that we are course staff
...
...
@@ -494,7 +528,7 @@ class TestCourseStaff(XBlockHandlerTestCase):
# Schedule training
response
=
self
.
request
(
xblock
,
'schedule_training'
,
json
.
dumps
({}),
response_format
=
'json'
)
self
.
assertTrue
(
response
[
'success'
],
msg
=
response
.
get
(
'msg'
))
self
.
assert
True
(
'workflow_uuid'
in
response
)
self
.
assert
In
(
'workflow_uuid'
,
response
)
@scenario
(
'data/example_based_assessment.xml'
,
user_id
=
'Bob'
)
def
test_not_displaying_schedule_training
(
self
,
xblock
):
...
...
setup.py
View file @
f71893fd
...
...
@@ -33,7 +33,7 @@ def load_requirements(*requirements_paths):
setup
(
name
=
'ora2'
,
version
=
'1.1.
2
'
,
version
=
'1.1.
3
'
,
author
=
'edX'
,
url
=
'http://github.com/edx/edx-ora2'
,
description
=
'edx-ora2'
,
...
...
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