Skip to content
Snippets Groups Projects
Commit 07f0187d authored by Renzo Frigato's avatar Renzo Frigato
Browse files

remove group from the engine metadata schema

parent ed9fb63d
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,6 @@ def create_container_hierarchy(metadata):
return TargetAcquisition(acquisition_obj, file_)
def update_container_hierarchy(metadata):
group = metadata.get('group')
project = metadata.get('project')
session = metadata.get('session')
acquisition = metadata.get('acquisition')
......@@ -192,9 +191,6 @@ def update_container_hierarchy(metadata):
if project:
project['modified'] = now
_update_container({'_id': project['_id']}, project, 'projects')
if group:
group['modified'] = now
_update_container({'_id': group['_id']}, group, 'groups')
return acquisition_obj
def _update_container(query, update, cont_name):
......
......@@ -3,26 +3,6 @@
"title": "EngineMetadata",
"type": "object",
"properties": {
"group": {
"type": "object",
"properties": {
"_id": {
"maxLength": 32,
"minLength": 2,
"pattern": "^[0-9a-z][0-9a-z.@_-]{0,30}[0-9a-z]$",
"title": "ID",
"type": "string"
},
"name": {
"maxLength": 32,
"minLength": 2,
"pattern": "^[0-9A-Za-z][0-9A-Za-z .@_-]{0,30}[0-9A-Za-z]$",
"title": "Name",
"type": "string"
}
},
"additionalProperties": false
},
"project": {
"type": "object",
"allOf": [{"$ref": "container.json"}],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment