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
a59deaca
Commit
a59deaca
authored
Feb 23, 2017
by
Eric Fischer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Criterion Names are poorly defined
parent
33eaf4ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
42 deletions
+0
-42
openassessment/xblock/test/data/invalid_rubrics.json
+0
-34
openassessment/xblock/validation.py
+0
-8
No files found.
openassessment/xblock/test/data/invalid_rubrics.json
View file @
a59deaca
...
...
@@ -27,40 +27,6 @@
}
},
"duplicate_criteria_names"
:
{
"rubric"
:
{
"prompts"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}],
"criteria"
:
[
{
"order_num"
:
0
,
"name"
:
"Test criterion"
,
"prompt"
:
"Test criterion prompt"
,
"options"
:
[
{
"order_num"
:
0
,
"points"
:
1
,
"name"
:
"No"
,
"explanation"
:
"No explanation"
}
]
},
{
"order_num"
:
0
,
"name"
:
"Test criterion"
,
"prompt"
:
"Test criterion prompt"
,
"options"
:
[
{
"order_num"
:
0
,
"points"
:
1
,
"name"
:
"Yes"
,
"explanation"
:
"Yes explanation"
}
]
}
]
}
},
"duplicate_option_names"
:
{
"rubric"
:
{
"prompts"
:
[{
"description"
:
"Test Prompt 1."
},
{
"description"
:
"Test Prompt 2."
}],
...
...
openassessment/xblock/validation.py
View file @
a59deaca
...
...
@@ -199,14 +199,6 @@ def validate_rubric(rubric_dict, current_rubric, is_released, is_example_based,
except
InvalidRubric
:
return
False
,
_
(
u'This rubric definition is not valid.'
)
# No duplicate criteria names
duplicates
=
_duplicates
([
criterion
[
'name'
]
for
criterion
in
rubric_dict
[
'criteria'
]])
if
len
(
duplicates
)
>
0
:
msg
=
_
(
u"Criteria duplicate name(s): {duplicates}"
)
.
format
(
duplicates
=
", "
.
join
(
duplicates
)
)
return
False
,
msg
for
criterion
in
rubric_dict
[
'criteria'
]:
# No duplicate option names within a criterion
duplicates
=
_duplicates
([
option
[
'name'
]
for
option
in
criterion
[
'options'
]])
...
...
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