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
cbcb83bc
Commit
cbcb83bc
authored
Mar 31, 2014
by
David Ormsbee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #235 from edx/ormsbee/add_more_event_info
Add more info to manually created scoring analytics event.
parents
8f4afcfc
52e0ff04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
apps/openassessment/workflow/models.py
+14
-3
No files found.
apps/openassessment/workflow/models.py
View file @
cbcb83bc
...
...
@@ -9,6 +9,7 @@ need to then generate a matching migration for it using:
./manage.py schemamigration openassessment.workflow --auto
"""
from
datetime
import
datetime
import
logging
import
importlib
...
...
@@ -162,11 +163,21 @@ class AssessmentWorkflow(TimeStampedModel, StatusModel):
score
[
"points_earned"
],
score
[
"points_possible"
]
)
# This should be replaced by using the event tracking API, but
# that's not quite ready yet. So we're making this temp hack.
emit_event
({
"context"
:
{
"course_id"
:
self
.
course_id
},
"event"
:
{
"submission_uuid"
:
self
.
submission_uuid
,
"points_earned"
:
score
[
"points_earned"
],
"points_possible"
:
score
[
"points_possible"
],
},
"event_source"
:
"server"
,
"event_type"
:
"openassessment.workflow.score"
,
"submission_uuid"
:
self
.
submission_uuid
,
"points_earned"
:
score
[
"points_earned"
],
"points_possible"
:
score
[
"points_possible"
]
"time"
:
datetime
.
utcnow
(),
})
new_status
=
self
.
STATUS
.
done
...
...
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