Skip to content

Commit

Permalink
feat: modify query DSL
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Aug 9, 2023
1 parent f0a93c3 commit 19f1313
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export class WorkspaceSavedObjectsClientWrapper {
* Select all the docs that
* 1. ACL matches right or write permission OR
* 2. workspaces matches library_read or library_write or management OR
* 3. Records without workspaces field (Advances settings)
* 3. Advances settings
*/
options.queryDSL = {
query: {
Expand All @@ -241,9 +241,9 @@ export class WorkspaceSavedObjectsClientWrapper {
should: [
{
bool: {
must_not: {
exists: {
field: 'workspaces',
must: {
term: {
type: 'config',
},
},
},
Expand Down

0 comments on commit 19f1313

Please sign in to comment.