@budibase/worker 3.35.1 → 3.35.3

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.1",
4
+ "version": "3.35.3",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -52,7 +52,7 @@
52
52
  "koa-redis": "^4.0.1",
53
53
  "koa-session": "5.13.1",
54
54
  "koa-useragent": "^4.1.0",
55
- "lodash": "4.17.23",
55
+ "lodash": "4.18.1",
56
56
  "marked": "^15.0.11",
57
57
  "node-fetch": "2.6.7",
58
58
  "nodemailer": "8.0.4",
@@ -79,5 +79,5 @@
79
79
  "supertest": "6.3.3",
80
80
  "timekeeper": "2.2.0"
81
81
  },
82
- "gitHead": "456c750d6bbffa0660dbf58bfbfe3ee7b56b2184"
82
+ "gitHead": "d5b05b266b9b7726bdcd7a9e7affb3330129805c"
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