@budibase/worker 2.4.42-alpha.1 → 2.4.42-alpha.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.4.42-alpha.1",
4
+ "version": "2.4.42-alpha.3",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -36,10 +36,10 @@
36
36
  "author": "Budibase",
37
37
  "license": "GPL-3.0",
38
38
  "dependencies": {
39
- "@budibase/backend-core": "2.4.42-alpha.1",
40
- "@budibase/pro": "2.4.42-alpha.0",
41
- "@budibase/string-templates": "2.4.42-alpha.1",
42
- "@budibase/types": "2.4.42-alpha.1",
39
+ "@budibase/backend-core": "2.4.42-alpha.3",
40
+ "@budibase/pro": "2.4.42-alpha.2",
41
+ "@budibase/string-templates": "2.4.42-alpha.3",
42
+ "@budibase/types": "2.4.42-alpha.3",
43
43
  "@koa/router": "8.0.8",
44
44
  "@sentry/node": "6.17.7",
45
45
  "@techpass/passport-openidconnect": "0.3.2",
@@ -101,5 +101,5 @@
101
101
  "typescript": "4.7.3",
102
102
  "update-dotenv": "1.1.1"
103
103
  },
104
- "gitHead": "7991f321a1339c06893c340f960b510321bf2554"
104
+ "gitHead": "5006a702b8e93afa9b5b11084cec28da6bdc22f8"
105
105
  }
@@ -332,6 +332,8 @@ export async function publicSettings(
332
332
 
333
333
  // google
334
334
  const googleConfig = await configs.getGoogleConfig()
335
+ const googleDatasourceConfigured =
336
+ !!(await configs.getGoogleDatasourceConfig())
335
337
  const preActivated = googleConfig && googleConfig.activated == null
336
338
  const google = preActivated || !!googleConfig?.activated
337
339
  const _googleCallbackUrl = await googleCallbackUrl(googleConfig)
@@ -352,6 +354,7 @@ export async function publicSettings(
352
354
  ...config,
353
355
  ...branding,
354
356
  google,
357
+ googleDatasourceConfigured,
355
358
  oidc,
356
359
  isSSOEnforced,
357
360
  oidcCallbackUrl: _oidcCallbackUrl,
@@ -7,6 +7,7 @@ export const fetch = async (ctx: BBContext) => {
7
7
  cloud: !env.SELF_HOSTED,
8
8
  accountPortalUrl: env.ACCOUNT_PORTAL_URL,
9
9
  disableAccountPortal: env.DISABLE_ACCOUNT_PORTAL,
10
+ baseUrl: env.PLATFORM_URL,
10
11
  // in test need to pretend its in production for the UI (Cypress)
11
12
  isDev: env.isDev() && !env.isTest(),
12
13
  }
@@ -290,6 +290,7 @@ describe("configs", () => {
290
290
  logoUrl: "",
291
291
  analyticsEnabled: false,
292
292
  google: false,
293
+ googleDatasourceConfigured: false,
293
294
  googleCallbackUrl: `http://localhost:10000/api/global/auth/${config.tenantId}/google/callback`,
294
295
  isSSOEnforced: false,
295
296
  oidc: false,
@@ -10,6 +10,4 @@ router.delete(
10
10
  controller.destroy
11
11
  )
12
12
 
13
- router.get("/api/system/tenants/:tenantId/info", controller.info)
14
-
15
13
  export default router
@@ -23,6 +23,7 @@ describe("/api/system/environment", () => {
23
23
  disableAccountPortal: 0,
24
24
  isDev: false,
25
25
  multiTenancy: true,
26
+ baseUrl: "http://localhost:10000",
26
27
  })
27
28
  })
28
29
  })
@@ -58,17 +58,4 @@ describe("/api/global/tenants", () => {
58
58
  expect(res.body).toEqual(config.adminOnlyResponse())
59
59
  })
60
60
  })
61
-
62
- describe("GET /api/system/tenants/:tenantId/info", () => {
63
- it("allows retrieving information about the tenant", async () => {
64
- const user1 = await config.createTenant()
65
- const res = await config.api.tenants.info(user1.tenantId)
66
- expect(res.body.exists).toEqual(true)
67
- })
68
-
69
- it("check a tenant that doesn't exist", async () => {
70
- const res = await config.api.tenants.info("cannot-exist-tenantid")
71
- expect(res.body.exists).toEqual(false)
72
- })
73
- })
74
61
  })
@@ -14,11 +14,4 @@ export class TenantAPI extends TestAPI {
14
14
  .set(opts?.headers)
15
15
  .expect(opts?.status ? opts.status : 204)
16
16
  }
17
-
18
- info = (tenantId: string) => {
19
- return this.request
20
- .get(`/api/system/tenants/${tenantId}/info`)
21
- .set(this.config.defaultHeaders())
22
- .expect(200)
23
- }
24
17
  }