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
2799e38b
Commit
2799e38b
authored
Feb 03, 2014
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some expansion of the Submissions Models docs.
parent
52a5ef00
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
29 deletions
+13
-29
apps/submissions/models.py
+8
-17
doc/source/api.rst
+3
-2
doc/source/dev/conventions.rst
+0
-5
doc/source/index.rst
+2
-5
No files found.
apps/submissions/models.py
View file @
2799e38b
"""
"""
This holds generic submissions and scores information. Is is ignorant of
Submission models hold student responses to problems, scores, and a history of
workflows, ORA, etc. So the flow is this:
those scores. It is intended to be a general purpose store that is usable by
different problem types, and is therefore ignorant of ORA workflow.
Student submission:
* XBlock creates a Submission
* submissions app sends a general notification that a submission has happened
* openassessment can listen for that signal if it wants, or query itself on demand
* when openassessment is satisfied that it has collected enough information to
score the student, it will push that score information back to this app.
* when the LMS wants to know what raw scores a student has, it calls this app.
Things to consider probably aren't worth the extra effort/complexity in the MVP:
* Many to Many relations for students-submissions, evaluations-submissions
* Version ID (this doesn't work until split-mongostore comes into being)
"""
"""
from
django.db
import
models
from
django.db
import
models
from
django.utils.timezone
import
now
from
django.utils.timezone
import
now
...
@@ -58,7 +45,11 @@ class StudentItem(models.Model):
...
@@ -58,7 +45,11 @@ class StudentItem(models.Model):
class
Submission
(
models
.
Model
):
class
Submission
(
models
.
Model
):
"""A single response by a student for a given problem in a given course.
"""A single response by a student for a given problem in a given course.
A student may have multiple submissions for the same problem.
A student may have multiple submissions for the same problem. Submissions
should never be mutated. If the student makes another Submission, or if we
have to make corrective Submissions to fix bugs, those should be new
objects. We want to keep Submissions immutable both for audit purposes, and
because it makes caching trivial.
"""
"""
student_item
=
models
.
ForeignKey
(
StudentItem
)
student_item
=
models
.
ForeignKey
(
StudentItem
)
...
...
doc/source/api.rst
View file @
2799e38b
...
@@ -24,8 +24,9 @@ Submissions
...
@@ -24,8 +24,9 @@ Submissions
Peer Assessment
Peer Assessment
***************
***************
Apps
----
Django Apps
-----------
Submissions
Submissions
***********
***********
...
...
doc/source/dev/conventions.rst
deleted
100644 → 0
View file @
52a5ef00
Public Interface
----------------
doc/source/index.rst
View file @
2799e38b
...
@@ -10,9 +10,10 @@ not ready for general use.
...
@@ -10,9 +10,10 @@ not ready for general use.
Setup
Setup
-----
-----
::
pip install -r requirements/dev.txt
pip install -r requirements/dev.txt
pip install -e .
python manage.py runserver
python manage.py runserver
User Guide
User Guide
...
@@ -26,10 +27,6 @@ Author Guide
...
@@ -26,10 +27,6 @@ Author Guide
Developer Guide
Developer Guide
---------------
---------------
.. toctree::
:maxdepth: 2
dev/conventions
API Documentation
API Documentation
-----------------
-----------------
...
...
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