@budibase/worker 3.35.1 → 3.35.2
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/Dockerfile
CHANGED
|
@@ -64,6 +64,7 @@ ARG BUDIBASE_VERSION
|
|
|
64
64
|
ARG GIT_COMMIT_SHA
|
|
65
65
|
# Ensuring the version argument is sent
|
|
66
66
|
RUN test -n "$BUDIBASE_VERSION"
|
|
67
|
+
RUN jq --arg v "$BUDIBASE_VERSION" '.version = $v' package.json > tmp.json && mv tmp.json package.json
|
|
67
68
|
ENV BUDIBASE_VERSION=$BUDIBASE_VERSION
|
|
68
69
|
ENV DD_GIT_REPOSITORY_URL=https://github.com/budibase/budibase
|
|
69
70
|
ENV DD_GIT_COMMIT_SHA=$GIT_COMMIT_SHA
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/worker",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "3.35.
|
|
4
|
+
"version": "3.35.2",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"supertest": "6.3.3",
|
|
80
80
|
"timekeeper": "2.2.0"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "703bb93d48608fb224de516a55db3937dfb88257"
|
|
83
83
|
}
|
|
@@ -19,6 +19,7 @@ function buildGroupSaveValidation() {
|
|
|
19
19
|
users: Joi.array().optional(),
|
|
20
20
|
apps: Joi.array().optional(),
|
|
21
21
|
roles: Joi.object().optional(),
|
|
22
|
+
isDefault: Joi.boolean().optional(),
|
|
22
23
|
builder: Joi.object({
|
|
23
24
|
apps: Joi.array().items(Joi.string()).optional(),
|
|
24
25
|
}).optional(),
|
|
@@ -62,6 +62,13 @@ describe("/api/global/groups", () => {
|
|
|
62
62
|
)
|
|
63
63
|
})
|
|
64
64
|
|
|
65
|
+
it("should allow setting isDefault when creating a group", async () => {
|
|
66
|
+
const group = { ...structures.groups.UserGroup(), isDefault: true }
|
|
67
|
+
const response = await config.api.groups.saveGroup(group, { expect: 200 })
|
|
68
|
+
const savedGroup = await config.api.groups.find(response.body._id)
|
|
69
|
+
expect(savedGroup.body.isDefault).toBe(true)
|
|
70
|
+
})
|
|
71
|
+
|
|
65
72
|
describe("name max length", () => {
|
|
66
73
|
const maxLength = 50
|
|
67
74
|
|