Skip to content

Commit

Permalink
#1612 Use _in operator instead of _or
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani authored and To-om committed Nov 13, 2020
1 parent fc68d05 commit eca41c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
14 changes: 4 additions & 10 deletions frontend/app/scripts/controllers/MainPageCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@
self.view = {};

self.defaultFilter = {
_or: [
{
_field: 'status',
_value: 'Waiting'
},
{
_field: 'status',
_value: 'InProgress'
}
]
_in: {
_field: 'status',
_values: ['Waiting', 'InProgress']
}
};

self.queryOperations = view === 'mytasks' ? [
Expand Down
14 changes: 4 additions & 10 deletions frontend/app/scripts/controllers/RootCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,10 @@ angular.module('theHiveControllers').controller('RootCtrl',
{_name: 'currentUser'},
{_name: 'tasks'},
{_name: 'filter',
_or: [
{
_field: 'status',
_value: 'Waiting'
},
{
_field: 'status',
_value: 'InProgress'
}
]
_in: {
_field: 'status',
_values: ['Waiting', 'InProgress']
}
},
{_name: 'count'}
], {
Expand Down

0 comments on commit eca41c7

Please sign in to comment.