Introducing sorting for assets and groups
By adding the order property, it is now possible to query assets and groups sorted by arbitrary order.
This commit is contained in:
@@ -18,6 +18,10 @@ node_type_asset = {
|
|||||||
'deleted'
|
'deleted'
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
# Used for sorting within the context of a group
|
||||||
|
'order': {
|
||||||
|
'type': 'integer'
|
||||||
|
},
|
||||||
# We expose the type of asset we point to. Usually image, video,
|
# We expose the type of asset we point to. Usually image, video,
|
||||||
# zipfile, ect.
|
# zipfile, ect.
|
||||||
'content_type': {
|
'content_type': {
|
||||||
@@ -52,6 +56,7 @@ node_type_asset = {
|
|||||||
'content_type': {'visible': False},
|
'content_type': {'visible': False},
|
||||||
'file': {'visible': False},
|
'file': {'visible': False},
|
||||||
'attachments': {'visible': False},
|
'attachments': {'visible': False},
|
||||||
|
'order': {}
|
||||||
},
|
},
|
||||||
'permissions': {
|
'permissions': {
|
||||||
# 'groups': [{
|
# 'groups': [{
|
||||||
|
@@ -5,6 +5,10 @@ node_type_group = {
|
|||||||
'node_types': ['group', 'project']
|
'node_types': ['group', 'project']
|
||||||
},
|
},
|
||||||
'dyn_schema': {
|
'dyn_schema': {
|
||||||
|
# Used for sorting within the context of a group
|
||||||
|
'order': {
|
||||||
|
'type': 'integer'
|
||||||
|
},
|
||||||
'url': {
|
'url': {
|
||||||
'type': 'string',
|
'type': 'string',
|
||||||
},
|
},
|
||||||
@@ -25,6 +29,7 @@ node_type_group = {
|
|||||||
'url': {},
|
'url': {},
|
||||||
'status': {},
|
'status': {},
|
||||||
'notes': {},
|
'notes': {},
|
||||||
|
'order': {}
|
||||||
},
|
},
|
||||||
'permissions': {
|
'permissions': {
|
||||||
# 'groups': [{
|
# 'groups': [{
|
||||||
|
Reference in New Issue
Block a user