Skip to content

Commit

Permalink
temp: save
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
  • Loading branch information
SuZhou-Joe committed Apr 17, 2024
1 parent 32fab61 commit c50c418
Showing 1 changed file with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,23 +309,31 @@ export function getQueryParams({
},
});
}
} else {
// If not workspaces passed, find all the objects without workspaces field
bool.filter.push({
bool: {
must_not: [
{
exists: {
field: 'workspaces',
},
},
],
},
});
}

if (ACLSearchParamsShouldClause.length) {
bool.filter.push({
bool: {
should: [
/**
* Return those objects without workspaces field and permissions field to keep find API backward compatible
* Return those objects without permissions field to keep find API backward compatible
*/
{
bool: {
must_not: [
{
exists: {
field: 'workspaces',
},
},
{
exists: {
field: 'permissions',
Expand Down

0 comments on commit c50c418

Please sign in to comment.