@budibase/worker 2.32.12 → 2.32.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/worker",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.32.
|
|
4
|
+
"version": "2.32.13",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"author": "Budibase",
|
|
38
38
|
"license": "GPL-3.0",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@budibase/backend-core": "2.32.
|
|
41
|
-
"@budibase/pro": "2.32.
|
|
42
|
-
"@budibase/string-templates": "2.32.
|
|
43
|
-
"@budibase/types": "2.32.
|
|
40
|
+
"@budibase/backend-core": "2.32.13",
|
|
41
|
+
"@budibase/pro": "2.32.13",
|
|
42
|
+
"@budibase/string-templates": "2.32.13",
|
|
43
|
+
"@budibase/types": "2.32.13",
|
|
44
44
|
"@koa/router": "8.0.8",
|
|
45
45
|
"@techpass/passport-openidconnect": "0.3.3",
|
|
46
46
|
"@types/global-agent": "2.1.1",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "0478570f8b4ec37b7593a8a1db9715e5e9d99839"
|
|
111
111
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mocks, structures } from "@budibase/backend-core/tests"
|
|
2
|
-
import { context, events,
|
|
2
|
+
import { context, events, features } from "@budibase/backend-core"
|
|
3
3
|
import { Event, IdentityType } from "@budibase/types"
|
|
4
4
|
import { TestConfiguration } from "../../../../tests"
|
|
5
5
|
|
|
@@ -17,11 +17,9 @@ describe.each(["lucene", "sql"])("/api/global/auditlogs (%s)", method => {
|
|
|
17
17
|
let envCleanup: (() => void) | undefined
|
|
18
18
|
|
|
19
19
|
beforeAll(async () => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
envCleanup = setCoreEnv({ TENANT_FEATURE_FLAGS: "*:SQS" })
|
|
24
|
-
}
|
|
20
|
+
envCleanup = features.testutils.setFeatureFlags("*", {
|
|
21
|
+
SQS: method === "sql",
|
|
22
|
+
})
|
|
25
23
|
await config.beforeAll()
|
|
26
24
|
})
|
|
27
25
|
|
|
@@ -741,6 +741,25 @@ describe("/api/global/users", () => {
|
|
|
741
741
|
it("should throw an error if public query performed", async () => {
|
|
742
742
|
await config.api.users.searchUsers({}, { status: 403, noHeaders: true })
|
|
743
743
|
})
|
|
744
|
+
|
|
745
|
+
it("should be able to search using logical conditions", async () => {
|
|
746
|
+
const user = await config.createUser()
|
|
747
|
+
const response = await config.api.users.searchUsers({
|
|
748
|
+
query: {
|
|
749
|
+
$and: {
|
|
750
|
+
conditions: [
|
|
751
|
+
{
|
|
752
|
+
$and: {
|
|
753
|
+
conditions: [{ string: { email: user.email } }],
|
|
754
|
+
},
|
|
755
|
+
},
|
|
756
|
+
],
|
|
757
|
+
},
|
|
758
|
+
},
|
|
759
|
+
})
|
|
760
|
+
expect(response.body.data.length).toBe(1)
|
|
761
|
+
expect(response.body.data[0].email).toBe(user.email)
|
|
762
|
+
})
|
|
744
763
|
})
|
|
745
764
|
|
|
746
765
|
describe("DELETE /api/global/users/:userId", () => {
|