Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Sense: add min/max_children to has_child query/filter
Browse files Browse the repository at this point in the history
  • Loading branch information
bleskes committed Nov 18, 2014
1 parent e48b577 commit a815afa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sense/app/kb/api_1_0/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ define(function () {
},
type: '{type}',
query: {},
_scope: ''
_scope: '',
min_children: 1,
max_children: 10
};


Expand Down
4 changes: 3 additions & 1 deletion sense/app/kb/api_1_0/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ define(["_"], function (_) {
__one_of: ['none', 'max', 'sum', 'avg']
},
'_scope': '',
'query': {}
'query': {},
'min_children': 1,
'max_children': 10
},
has_parent: {
'parent_type': '{type}',
Expand Down

0 comments on commit a815afa

Please sign in to comment.