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
c485f895
Verified
Commit
c485f895
authored
Mar 18, 2019
by
Peter Stanko
Browse files
Get project state
parent
09f640e4
Pipeline
#30101
passed with stage
in 3 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
portal/rest/schemas.py
View file @
c485f895
...
...
@@ -13,7 +13,7 @@ class NestedCollection:
ENTITIES
=
{
'Role'
:
(
'id'
,
'codename'
,
'course.id'
,
'course.codename'
),
'Group'
:
(
'id'
,
'codename'
,
'course.id'
,
'course.codename'
),
'Project'
:
(
'id'
,
'codename'
,
'course.id'
),
'Project'
:
(
'id'
,
'codename'
,
'course.id'
,
'state'
),
'Course'
:
(
'id'
,
'codename'
),
'User'
:
(
'id'
,
'username'
,
'uco'
,
'codename'
,
'name'
),
'Worker'
:
(
'id'
,
'codename'
,
'name'
),
...
...
@@ -412,7 +412,7 @@ class Schemas:
'submission_state'
:
(
*
ALWAYS_ALLOWED
,
'state'
,
'parameters'
,
'scheduled_for'
),
'roles'
:
ENT_W_COURSE
,
'groups'
:
ENT_W_COURSE
,
'projects'
:
ENT_W_COURSE
,
'projects'
:
(
*
ENT_W_COURSE
,
'state'
),
'course_reduced'
:
(
*
CODENAME_W_DESC
,),
'courses'
:
(
*
CODENAME_W_DESC
,),
'config_reduced'
:
(
*
ALWAYS_ALLOWED
,
'project'
,
'submissions_allowed_from'
,
...
...
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