Refactor of 'task' node type

This commit is contained in:
2016-09-07 10:02:10 +02:00
parent 168e59805e
commit 3f81873c7f

View File

@@ -9,60 +9,55 @@ node_type_task = {
'in_progress', 'in_progress',
'on_hold', 'on_hold',
'approved', 'approved',
'cbb', 'cbb', # Could Be Better
'final', 'final',
'review' 'review'
], ],
'required': True, 'required': True,
}, },
'filepath': {
'type': 'string', # Links to external systems (filenames, SVN repository URLs, SVN revisions, etc.)
'external_links': {
'svn_revisions': {
'type': 'list',
'schema': {
'type': 'dict',
}
},
}, },
# TODO: describe what this is.
'revision': { 'assigned_to': {
'type': 'integer',
},
'owners': {
'type': 'dict', 'type': 'dict',
'schema': { 'schema': {
'users': { 'users': {
'type': 'list', 'type': 'list',
'schema': { 'schema': {
'type': 'objectid', # TODO: refer to user collection
}
},
'groups': {
'type': 'list',
'schema': {
'type': 'objectid', 'type': 'objectid',
} }
} }
} }
}, },
# For Gantt charts and the like.
'time': { 'time': {
'type': 'dict', 'type': 'dict',
'schema': { 'schema': {
# TODO: include indication of _what_ start. 'planned_start': {
# At least make distinction between "planned" and "actual".
'start': {
'type': 'datetime' 'type': 'datetime'
}, },
# TODO: include units! 'planned_duration_hours': {
# TODO: include indication of _what_ duration.
# At least make distinction between "planned" and "actual".
'duration': {
'type': 'integer' 'type': 'integer'
}, },
'chunks': { 'chunks': {
'type': 'list', 'type': 'list',
'schema': { 'schema': {
'type': 'dict', 'type': 'dict',
# TODO: same notes as above
'schema': { 'schema': {
'start': { 'planned_start': {
'type': 'datetime', 'type': 'datetime',
}, },
'duration': { 'planned_duration_hours': {
'type': 'integer', 'type': 'integer',
} }
} }
@@ -70,45 +65,12 @@ node_type_task = {
}, },
} }
}, },
'is_conflicting' : { },
'type': 'boolean'
},
'is_processing' : {
'type': 'boolean'
},
'is_open' : {
'type': 'boolean'
}
},
'form_schema': { 'form_schema': {
'status': {}, 'time': {'visible': False},
'filepath': {},
'revision': {},
'owners': {
'schema': {
'users':{
'items': [('User', 'first_name')],
},
'groups': {}
}
},
'time': {
'schema': {
'start': {},
'duration': {},
'chunks': {
'visible': False,
'schema': {
'start': {},
'duration': {}
}
}
}
},
'is_conflicting': {},
'is_open': {},
'is_processing': {},
}, },
'parent': ['shot']
# TODO: is this None really needed? Check.
'parent': [None, 'task', 'shot']
} }