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
dc92457d
Commit
dc92457d
authored
Dec 22, 2015
by
Diana Huang
Committed by
Andy Armstrong
Jan 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update helpers to allow for kwargs.
parent
7f3acffc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
13 deletions
+18
-13
openassessment/xblock/openassessmentblock.py
+17
-12
openassessment/xblock/staff_assessment_mixin.py
+1
-1
No files found.
openassessment/xblock/openassessmentblock.py
View file @
dc92457d
...
...
@@ -866,7 +866,7 @@ class OpenAssessmentBlock(
if
assessment
[
"name"
]
==
mixin_name
:
return
assessment
def
publish_assessment_event
(
self
,
event_name
,
assessment
):
def
publish_assessment_event
(
self
,
event_name
,
assessment
,
**
kwargs
):
"""
Emit an analytics event for the peer assessment.
...
...
@@ -902,19 +902,24 @@ class OpenAssessmentBlock(
"feedback"
:
part
[
"feedback"
]
})
event_data
=
{
"feedback"
:
assessment
[
"feedback"
],
"rubric"
:
{
"content_hash"
:
assessment
[
"rubric"
][
"content_hash"
],
},
"scorer_id"
:
assessment
[
"scorer_id"
],
"score_type"
:
assessment
[
"score_type"
],
"scored_at"
:
assessment
[
"scored_at"
],
"submission_uuid"
:
assessment
[
"submission_uuid"
],
"parts"
:
parts_list
}
for
key
in
kwargs
:
event_data
[
key
]
=
kwargs
[
key
]
self
.
runtime
.
publish
(
self
,
event_name
,
{
"feedback"
:
assessment
[
"feedback"
],
"rubric"
:
{
"content_hash"
:
assessment
[
"rubric"
][
"content_hash"
],
},
"scorer_id"
:
assessment
[
"scorer_id"
],
"score_type"
:
assessment
[
"score_type"
],
"scored_at"
:
assessment
[
"scored_at"
],
"submission_uuid"
:
assessment
[
"submission_uuid"
],
"parts"
:
parts_list
}
event_data
)
def
_serialize_opaque_key
(
self
,
key
):
...
...
openassessment/xblock/staff_assessment_mixin.py
View file @
dc92457d
...
...
@@ -51,7 +51,7 @@ class StaffAssessmentMixin(object):
data
[
'overall_feedback'
],
create_rubric_dict
(
self
.
prompts
,
self
.
rubric_criteria_with_labels
)
)
self
.
publish_assessment_event
(
"openassessmentblock.staff_assess
ment"
,
assessment
)
self
.
publish_assessment_event
(
"openassessmentblock.staff_assess
"
,
assessment
,
type
=
'full-grade'
)
workflow_api
.
update_from_assessments
(
assessment
[
"submission_uuid"
],
None
)
except
StaffAssessmentRequestError
:
...
...
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