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
8a5edabf
Commit
8a5edabf
authored
Jun 07, 2017
by
Eric Fischer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand course_id column
parent
c8ea15a9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
5 deletions
+49
-5
openassessment/assessment/migrations/0003_expand_course_id.py
+44
-0
openassessment/assessment/models/ai.py
+2
-2
openassessment/assessment/models/peer.py
+1
-1
openassessment/assessment/models/staff.py
+1
-1
openassessment/assessment/models/student_training.py
+1
-1
No files found.
openassessment/assessment/migrations/0003_expand_course_id.py
0 → 100644
View file @
8a5edabf
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'assessment'
,
'0002_staffworkflow'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'aiclassifierset'
,
name
=
'course_id'
,
field
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
),
),
migrations
.
AlterField
(
model_name
=
'aigradingworkflow'
,
name
=
'course_id'
,
field
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
),
),
migrations
.
AlterField
(
model_name
=
'aitrainingworkflow'
,
name
=
'course_id'
,
field
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
),
),
migrations
.
AlterField
(
model_name
=
'peerworkflow'
,
name
=
'course_id'
,
field
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
),
),
migrations
.
AlterField
(
model_name
=
'staffworkflow'
,
name
=
'course_id'
,
field
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
),
),
migrations
.
AlterField
(
model_name
=
'studenttrainingworkflow'
,
name
=
'course_id'
,
field
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
),
),
]
openassessment/assessment/models/ai.py
View file @
8a5edabf
...
@@ -152,7 +152,7 @@ class AIClassifierSet(models.Model):
...
@@ -152,7 +152,7 @@ class AIClassifierSet(models.Model):
# Though these items are duplicated in the database tables for the AITrainingWorkflow,
# Though these items are duplicated in the database tables for the AITrainingWorkflow,
# this is okay because it will drastically speed up the operation of assigning classifiers
# this is okay because it will drastically speed up the operation of assigning classifiers
# to AIGradingWorkflows
# to AIGradingWorkflows
course_id
=
models
.
CharField
(
max_length
=
40
,
db_index
=
True
)
course_id
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
)
item_id
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
)
item_id
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
)
@classmethod
@classmethod
...
@@ -505,7 +505,7 @@ class AIWorkflow(models.Model):
...
@@ -505,7 +505,7 @@ class AIWorkflow(models.Model):
# Though these items are duplicated in the database tables for the submissions app,
# Though these items are duplicated in the database tables for the submissions app,
# and every workflow has a reference to a submission entry, this is okay because
# and every workflow has a reference to a submission entry, this is okay because
# submissions are immutable.
# submissions are immutable.
course_id
=
models
.
CharField
(
max_length
=
40
,
db_index
=
True
)
course_id
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
)
item_id
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
)
item_id
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
)
# Timestamps
# Timestamps
...
...
openassessment/assessment/models/peer.py
View file @
8a5edabf
...
@@ -109,7 +109,7 @@ class PeerWorkflow(models.Model):
...
@@ -109,7 +109,7 @@ class PeerWorkflow(models.Model):
student_id
=
models
.
CharField
(
max_length
=
40
,
db_index
=
True
)
student_id
=
models
.
CharField
(
max_length
=
40
,
db_index
=
True
)
item_id
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
)
item_id
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
)
course_id
=
models
.
CharField
(
max_length
=
40
,
db_index
=
True
)
course_id
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
)
submission_uuid
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
,
unique
=
True
)
submission_uuid
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
,
unique
=
True
)
created_at
=
models
.
DateTimeField
(
default
=
now
,
db_index
=
True
)
created_at
=
models
.
DateTimeField
(
default
=
now
,
db_index
=
True
)
completed_at
=
models
.
DateTimeField
(
null
=
True
,
db_index
=
True
)
completed_at
=
models
.
DateTimeField
(
null
=
True
,
db_index
=
True
)
...
...
openassessment/assessment/models/staff.py
View file @
8a5edabf
...
@@ -27,7 +27,7 @@ class StaffWorkflow(models.Model):
...
@@ -27,7 +27,7 @@ class StaffWorkflow(models.Model):
TIME_LIMIT
=
timedelta
(
hours
=
8
)
TIME_LIMIT
=
timedelta
(
hours
=
8
)
scorer_id
=
models
.
CharField
(
max_length
=
40
,
db_index
=
True
)
scorer_id
=
models
.
CharField
(
max_length
=
40
,
db_index
=
True
)
course_id
=
models
.
CharField
(
max_length
=
40
,
db_index
=
True
)
course_id
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
)
item_id
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
)
item_id
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
)
submission_uuid
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
,
unique
=
True
)
submission_uuid
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
,
unique
=
True
)
created_at
=
models
.
DateTimeField
(
default
=
now
,
db_index
=
True
)
created_at
=
models
.
DateTimeField
(
default
=
now
,
db_index
=
True
)
...
...
openassessment/assessment/models/student_training.py
View file @
8a5edabf
...
@@ -21,7 +21,7 @@ class StudentTrainingWorkflow(models.Model):
...
@@ -21,7 +21,7 @@ class StudentTrainingWorkflow(models.Model):
# jeopardizing data integrity.
# jeopardizing data integrity.
student_id
=
models
.
CharField
(
max_length
=
40
,
db_index
=
True
)
student_id
=
models
.
CharField
(
max_length
=
40
,
db_index
=
True
)
item_id
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
)
item_id
=
models
.
CharField
(
max_length
=
128
,
db_index
=
True
)
course_id
=
models
.
CharField
(
max_length
=
40
,
db_index
=
True
)
course_id
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
)
class
Meta
:
class
Meta
:
app_label
=
"assessment"
app_label
=
"assessment"
...
...
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