Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kontr 2.0
Portal API Backend
Commits
0549e9d8
Verified
Commit
0549e9d8
authored
Mar 31, 2019
by
Kristyna Pekarkova
Committed by
Peter Stanko
Apr 13, 2019
Browse files
Fix schema, added version_id to review item
parent
6550027f
Changes
2
Hide whitespace changes
Inline
Side-by-side
migrations/versions/949bc914e571_.py
View file @
0549e9d8
...
...
@@ -11,7 +11,7 @@ import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision
=
'949bc914e571'
down_revision
=
'
6347503cdaef
'
down_revision
=
'
f21d6efeef88
'
branch_labels
=
None
depends_on
=
None
...
...
portal/rest/schemas.py
View file @
0549e9d8
...
...
@@ -28,7 +28,7 @@ class NestedCollection:
'Submission'
:
(
'id'
,
'state'
,
'created_at'
,
'updated_at'
,
'result'
,
'points'
,
*
_in
(
'user'
,
[
'username'
,
'codename'
,
'name'
,
'uco'
,
'id'
]),
*
_in
(
'project'
,
DEFAULTS
),
*
_in
(
'course'
,
DEFAULTS
)),
'ReviewItem'
:
(
'id'
,
'review.id'
,
'line'
,
'content'
,
'file'
,
'ReviewItem'
:
(
'id'
,
'review.id'
,
'line'
,
'content'
,
'file'
,
'version_id'
,
*
_in
(
'user'
,
[
'id'
,
'username'
,
'uco'
,
'name'
])),
'Secret'
:
(
'id'
,
'name'
,
'expires_at'
)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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