From 85d7a23867c2305003bc5fbfcc7cbf1b64e9f134 Mon Sep 17 00:00:00 2001 From: MihailHadzhiev2022 Date: Wed, 18 May 2022 16:29:22 +0300 Subject: [PATCH 01/11] adding locators for AddRadioButtons test --- .../cypress/integration/addRadioButtons.spec.js | 11 ++++++----- packages/builder/cypress/support/interact.js | 5 +++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/builder/cypress/integration/addRadioButtons.spec.js b/packages/builder/cypress/integration/addRadioButtons.spec.js index 9888b56086..8f5b1a527b 100644 --- a/packages/builder/cypress/integration/addRadioButtons.spec.js +++ b/packages/builder/cypress/integration/addRadioButtons.spec.js @@ -1,4 +1,5 @@ import filterTests from "../support/filterTests" +const interact = require('../support/interact') filterTests(['all'], () => { context("Add Radio Buttons", () => { @@ -12,10 +13,10 @@ filterTests(['all'], () => { cy.addComponent("Form", "Form") cy.addComponent("Form", "Options Picker").then((componentId) => { // Provide field setting - cy.get(`[data-cy="field-prop-control"]`).type("1") + cy.get(interact.DATASOURCE_FIELD_CONTROL).type("1") // Open dropdown and select Radio buttons - cy.get(`[data-cy="optionsType-prop-control"]`).click().then(() => { - cy.get('.spectrum-Popover').contains('Radio buttons') + cy.get(interact.OPTION_TYPE_PROP_CONTROL).click().then(() => { + cy.get(interact.SPECTRUM_POPOVER).contains('Radio buttons') .wait(500) .click() }) @@ -28,8 +29,8 @@ filterTests(['all'], () => { }) const addRadioButtonData = (totalRadioButtons) => { - cy.get(`[data-cy="optionsSource-prop-control"]`).click().then(() => { - cy.get('.spectrum-Popover').contains('Custom') + cy.get(interact.OPTION_SOURCE_PROP_CONROL).click().then(() => { + cy.get(interact.SPECTRUM_POPOVER).contains('Custom') .wait(500) .click() }) diff --git a/packages/builder/cypress/support/interact.js b/packages/builder/cypress/support/interact.js index cff16325da..11794d940d 100644 --- a/packages/builder/cypress/support/interact.js +++ b/packages/builder/cypress/support/interact.js @@ -19,3 +19,8 @@ export const DATASOURCE_PROP_CONTROL = '[data-cy="dataSource-prop-control"]' export const DROPDOWN = ".dropdown" export const SPECTRUM_Picker_LABEL = ".spectrum-Picker-label" export const DATASOURCE_FIELD_CONTROL = '[data-cy="field-prop-control"]' +export const OPTION_TYPE_PROP_CONTROL = '[data-cy="optionsType-prop-control' + +//AddRadioButtons +export const SPECTRUM_POPOVER = ".spectrum-Popover" +export const OPTION_SOURCE_PROP_CONROL = '[data-cy="optionsSource-prop-control' From 4c3c84eabdc0bf0f967c2e002c7793d6bfc5ec00 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Wed, 18 May 2022 16:21:17 +0100 Subject: [PATCH 02/11] Return QA templates when TEST_ENV environmentvariable is set --- packages/frontend-core/src/api/templates.js | 2 +- packages/server/src/api/controllers/templates.js | 3 ++- packages/server/src/environment.js | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/frontend-core/src/api/templates.js b/packages/frontend-core/src/api/templates.js index 3c474dabc6..660a85d745 100644 --- a/packages/frontend-core/src/api/templates.js +++ b/packages/frontend-core/src/api/templates.js @@ -29,7 +29,7 @@ export const buildTemplateEndpoints = API => ({ */ getAppTemplates: async () => { return await API.get({ - url: "/api/templates?type=app", + url: "/api/templates", }) }, }) diff --git a/packages/server/src/api/controllers/templates.js b/packages/server/src/api/controllers/templates.js index 03dbbd2ee2..e18da3b9d3 100644 --- a/packages/server/src/api/controllers/templates.js +++ b/packages/server/src/api/controllers/templates.js @@ -1,12 +1,13 @@ const fetch = require("node-fetch") const { downloadTemplate } = require("../../utilities/fileSystem") +const env = require("../../environment") // development flag, can be used to test against templates exported locally const DEFAULT_TEMPLATES_BUCKET = "prod-budi-templates.s3-eu-west-1.amazonaws.com" exports.fetch = async function (ctx) { - const { type = "app" } = ctx.query + let type = env.TEST_ENV ? "qa" : "app" let response, error = false try { diff --git a/packages/server/src/environment.js b/packages/server/src/environment.js index ff1061dbaf..d9fa28ecff 100644 --- a/packages/server/src/environment.js +++ b/packages/server/src/environment.js @@ -78,6 +78,7 @@ module.exports = { ALLOW_DEV_AUTOMATIONS: process.env.ALLOW_DEV_AUTOMATIONS, DISABLE_THREADING: process.env.DISABLE_THREADING, SQL_MAX_ROWS: process.env.SQL_MAX_ROWS, + TEST_ENV: true, _set(key, value) { process.env[key] = value module.exports[key] = value From e46d6fc8de6b5127edd2726484b1558024f996c5 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Wed, 18 May 2022 16:30:05 +0100 Subject: [PATCH 03/11] remove test boolean --- packages/server/src/environment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/environment.js b/packages/server/src/environment.js index d9fa28ecff..f06c369cd0 100644 --- a/packages/server/src/environment.js +++ b/packages/server/src/environment.js @@ -78,7 +78,7 @@ module.exports = { ALLOW_DEV_AUTOMATIONS: process.env.ALLOW_DEV_AUTOMATIONS, DISABLE_THREADING: process.env.DISABLE_THREADING, SQL_MAX_ROWS: process.env.SQL_MAX_ROWS, - TEST_ENV: true, + TEST_ENV: process.env.TEST_ENV, _set(key, value) { process.env[key] = value module.exports[key] = value From d794d55539903e712fd5e8db01d85e94049aad72 Mon Sep 17 00:00:00 2001 From: Budibase Staging Release Bot <> Date: Wed, 18 May 2022 17:25:12 +0000 Subject: [PATCH 04/11] v1.0.167-alpha.2 --- lerna.json | 2 +- packages/backend-core/package.json | 2 +- packages/bbui/package.json | 4 ++-- packages/builder/package.json | 10 +++++----- packages/cli/package.json | 2 +- packages/client/package.json | 8 ++++---- packages/frontend-core/package.json | 4 ++-- packages/server/package.json | 8 ++++---- packages/string-templates/package.json | 2 +- packages/worker/package.json | 6 +++--- 10 files changed, 24 insertions(+), 24 deletions(-) diff --git a/lerna.json b/lerna.json index 7168f2ef15..69158e38c8 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "1.0.167-alpha.1", + "version": "1.0.167-alpha.2", "npmClient": "yarn", "packages": [ "packages/*" diff --git a/packages/backend-core/package.json b/packages/backend-core/package.json index fad4933f42..25a0509f0c 100644 --- a/packages/backend-core/package.json +++ b/packages/backend-core/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/backend-core", - "version": "1.0.167-alpha.1", + "version": "1.0.167-alpha.2", "description": "Budibase backend core libraries used in server and worker", "main": "src/index.js", "author": "Budibase", diff --git a/packages/bbui/package.json b/packages/bbui/package.json index 55ad1b6845..f6848b134a 100644 --- a/packages/bbui/package.json +++ b/packages/bbui/package.json @@ -1,7 +1,7 @@ { "name": "@budibase/bbui", "description": "A UI solution used in the different Budibase projects.", - "version": "1.0.167-alpha.1", + "version": "1.0.167-alpha.2", "license": "MPL-2.0", "svelte": "src/index.js", "module": "dist/bbui.es.js", @@ -38,7 +38,7 @@ ], "dependencies": { "@adobe/spectrum-css-workflow-icons": "^1.2.1", - "@budibase/string-templates": "^1.0.167-alpha.1", + "@budibase/string-templates": "^1.0.167-alpha.2", "@spectrum-css/actionbutton": "^1.0.1", "@spectrum-css/actiongroup": "^1.0.1", "@spectrum-css/avatar": "^3.0.2", diff --git a/packages/builder/package.json b/packages/builder/package.json index 042b74fa95..5c3b5dbf38 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/builder", - "version": "1.0.167-alpha.1", + "version": "1.0.167-alpha.2", "license": "GPL-3.0", "private": true, "scripts": { @@ -67,10 +67,10 @@ } }, "dependencies": { - "@budibase/bbui": "^1.0.167-alpha.1", - "@budibase/client": "^1.0.167-alpha.1", - "@budibase/frontend-core": "^1.0.167-alpha.1", - "@budibase/string-templates": "^1.0.167-alpha.1", + "@budibase/bbui": "^1.0.167-alpha.2", + "@budibase/client": "^1.0.167-alpha.2", + "@budibase/frontend-core": "^1.0.167-alpha.2", + "@budibase/string-templates": "^1.0.167-alpha.2", "@sentry/browser": "5.19.1", "@spectrum-css/page": "^3.0.1", "@spectrum-css/vars": "^3.0.1", diff --git a/packages/cli/package.json b/packages/cli/package.json index dc075dfd6f..9a449ebb54 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/cli", - "version": "1.0.167-alpha.1", + "version": "1.0.167-alpha.2", "description": "Budibase CLI, for developers, self hosting and migrations.", "main": "src/index.js", "bin": { diff --git a/packages/client/package.json b/packages/client/package.json index 350ce746c8..c601ae2219 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/client", - "version": "1.0.167-alpha.1", + "version": "1.0.167-alpha.2", "license": "MPL-2.0", "module": "dist/budibase-client.js", "main": "dist/budibase-client.js", @@ -19,9 +19,9 @@ "dev:builder": "rollup -cw" }, "dependencies": { - "@budibase/bbui": "^1.0.167-alpha.1", - "@budibase/frontend-core": "^1.0.167-alpha.1", - "@budibase/string-templates": "^1.0.167-alpha.1", + "@budibase/bbui": "^1.0.167-alpha.2", + "@budibase/frontend-core": "^1.0.167-alpha.2", + "@budibase/string-templates": "^1.0.167-alpha.2", "@spectrum-css/button": "^3.0.3", "@spectrum-css/card": "^3.0.3", "@spectrum-css/divider": "^1.0.3", diff --git a/packages/frontend-core/package.json b/packages/frontend-core/package.json index 2bac9726ac..72fa2e763a 100644 --- a/packages/frontend-core/package.json +++ b/packages/frontend-core/package.json @@ -1,12 +1,12 @@ { "name": "@budibase/frontend-core", - "version": "1.0.167-alpha.1", + "version": "1.0.167-alpha.2", "description": "Budibase frontend core libraries used in builder and client", "author": "Budibase", "license": "MPL-2.0", "svelte": "src/index.js", "dependencies": { - "@budibase/bbui": "^1.0.167-alpha.1", + "@budibase/bbui": "^1.0.167-alpha.2", "lodash": "^4.17.21", "svelte": "^3.46.2" } diff --git a/packages/server/package.json b/packages/server/package.json index 91f913c613..3cc2c58b22 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,7 +1,7 @@ { "name": "@budibase/server", "email": "hi@budibase.com", - "version": "1.0.167-alpha.1", + "version": "1.0.167-alpha.2", "description": "Budibase Web Server", "main": "src/index.ts", "repository": { @@ -69,10 +69,10 @@ "license": "GPL-3.0", "dependencies": { "@apidevtools/swagger-parser": "^10.0.3", - "@budibase/backend-core": "^1.0.167-alpha.1", - "@budibase/client": "^1.0.167-alpha.1", + "@budibase/backend-core": "^1.0.167-alpha.2", + "@budibase/client": "^1.0.167-alpha.2", "@budibase/pro": "1.0.167-alpha.1", - "@budibase/string-templates": "^1.0.167-alpha.1", + "@budibase/string-templates": "^1.0.167-alpha.2", "@bull-board/api": "^3.7.0", "@bull-board/koa": "^3.7.0", "@elastic/elasticsearch": "7.10.0", diff --git a/packages/string-templates/package.json b/packages/string-templates/package.json index b60e48e233..b84cef777d 100644 --- a/packages/string-templates/package.json +++ b/packages/string-templates/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/string-templates", - "version": "1.0.167-alpha.1", + "version": "1.0.167-alpha.2", "description": "Handlebars wrapper for Budibase templating.", "main": "src/index.cjs", "module": "dist/bundle.mjs", diff --git a/packages/worker/package.json b/packages/worker/package.json index 262cd8a4b0..902b7a3597 100644 --- a/packages/worker/package.json +++ b/packages/worker/package.json @@ -1,7 +1,7 @@ { "name": "@budibase/worker", "email": "hi@budibase.com", - "version": "1.0.167-alpha.1", + "version": "1.0.167-alpha.2", "description": "Budibase background service", "main": "src/index.ts", "repository": { @@ -31,9 +31,9 @@ "author": "Budibase", "license": "GPL-3.0", "dependencies": { - "@budibase/backend-core": "^1.0.167-alpha.1", + "@budibase/backend-core": "^1.0.167-alpha.2", "@budibase/pro": "1.0.167-alpha.1", - "@budibase/string-templates": "^1.0.167-alpha.1", + "@budibase/string-templates": "^1.0.167-alpha.2", "@koa/router": "^8.0.0", "@sentry/node": "6.17.7", "@techpass/passport-openidconnect": "^0.3.0", From 430a9b71a5a5718164c54dae9d8a243a0f9ff345 Mon Sep 17 00:00:00 2001 From: Budibase Staging Release Bot <> Date: Wed, 18 May 2022 17:26:33 +0000 Subject: [PATCH 05/11] Update pro version to 1.0.167-alpha.2 --- packages/server/package.json | 2 +- packages/worker/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/package.json b/packages/server/package.json index 3cc2c58b22..e7ec9d4d5b 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -71,7 +71,7 @@ "@apidevtools/swagger-parser": "^10.0.3", "@budibase/backend-core": "^1.0.167-alpha.2", "@budibase/client": "^1.0.167-alpha.2", - "@budibase/pro": "1.0.167-alpha.1", + "@budibase/pro": "1.0.167-alpha.2", "@budibase/string-templates": "^1.0.167-alpha.2", "@bull-board/api": "^3.7.0", "@bull-board/koa": "^3.7.0", diff --git a/packages/worker/package.json b/packages/worker/package.json index 902b7a3597..b2e7773161 100644 --- a/packages/worker/package.json +++ b/packages/worker/package.json @@ -32,7 +32,7 @@ "license": "GPL-3.0", "dependencies": { "@budibase/backend-core": "^1.0.167-alpha.2", - "@budibase/pro": "1.0.167-alpha.1", + "@budibase/pro": "1.0.167-alpha.2", "@budibase/string-templates": "^1.0.167-alpha.2", "@koa/router": "^8.0.0", "@sentry/node": "6.17.7", From bd91e65237326cb0b53c5d6d88c778dfd3591c52 Mon Sep 17 00:00:00 2001 From: Budibase Staging Release Bot <> Date: Thu, 19 May 2022 09:10:53 +0000 Subject: [PATCH 06/11] v1.0.167-alpha.3 --- lerna.json | 2 +- packages/backend-core/package.json | 2 +- packages/bbui/package.json | 4 ++-- packages/builder/package.json | 10 +++++----- packages/cli/package.json | 2 +- packages/client/package.json | 8 ++++---- packages/frontend-core/package.json | 4 ++-- packages/server/package.json | 8 ++++---- packages/string-templates/package.json | 2 +- packages/worker/package.json | 6 +++--- 10 files changed, 24 insertions(+), 24 deletions(-) diff --git a/lerna.json b/lerna.json index 69158e38c8..75c6bf2f90 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "1.0.167-alpha.2", + "version": "1.0.167-alpha.3", "npmClient": "yarn", "packages": [ "packages/*" diff --git a/packages/backend-core/package.json b/packages/backend-core/package.json index 25a0509f0c..f95d8736ea 100644 --- a/packages/backend-core/package.json +++ b/packages/backend-core/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/backend-core", - "version": "1.0.167-alpha.2", + "version": "1.0.167-alpha.3", "description": "Budibase backend core libraries used in server and worker", "main": "src/index.js", "author": "Budibase", diff --git a/packages/bbui/package.json b/packages/bbui/package.json index f6848b134a..bbf5ac6a78 100644 --- a/packages/bbui/package.json +++ b/packages/bbui/package.json @@ -1,7 +1,7 @@ { "name": "@budibase/bbui", "description": "A UI solution used in the different Budibase projects.", - "version": "1.0.167-alpha.2", + "version": "1.0.167-alpha.3", "license": "MPL-2.0", "svelte": "src/index.js", "module": "dist/bbui.es.js", @@ -38,7 +38,7 @@ ], "dependencies": { "@adobe/spectrum-css-workflow-icons": "^1.2.1", - "@budibase/string-templates": "^1.0.167-alpha.2", + "@budibase/string-templates": "^1.0.167-alpha.3", "@spectrum-css/actionbutton": "^1.0.1", "@spectrum-css/actiongroup": "^1.0.1", "@spectrum-css/avatar": "^3.0.2", diff --git a/packages/builder/package.json b/packages/builder/package.json index 5c3b5dbf38..fed7e0382a 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/builder", - "version": "1.0.167-alpha.2", + "version": "1.0.167-alpha.3", "license": "GPL-3.0", "private": true, "scripts": { @@ -67,10 +67,10 @@ } }, "dependencies": { - "@budibase/bbui": "^1.0.167-alpha.2", - "@budibase/client": "^1.0.167-alpha.2", - "@budibase/frontend-core": "^1.0.167-alpha.2", - "@budibase/string-templates": "^1.0.167-alpha.2", + "@budibase/bbui": "^1.0.167-alpha.3", + "@budibase/client": "^1.0.167-alpha.3", + "@budibase/frontend-core": "^1.0.167-alpha.3", + "@budibase/string-templates": "^1.0.167-alpha.3", "@sentry/browser": "5.19.1", "@spectrum-css/page": "^3.0.1", "@spectrum-css/vars": "^3.0.1", diff --git a/packages/cli/package.json b/packages/cli/package.json index 9a449ebb54..d4302d28ab 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/cli", - "version": "1.0.167-alpha.2", + "version": "1.0.167-alpha.3", "description": "Budibase CLI, for developers, self hosting and migrations.", "main": "src/index.js", "bin": { diff --git a/packages/client/package.json b/packages/client/package.json index c601ae2219..6aa9c6a34a 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/client", - "version": "1.0.167-alpha.2", + "version": "1.0.167-alpha.3", "license": "MPL-2.0", "module": "dist/budibase-client.js", "main": "dist/budibase-client.js", @@ -19,9 +19,9 @@ "dev:builder": "rollup -cw" }, "dependencies": { - "@budibase/bbui": "^1.0.167-alpha.2", - "@budibase/frontend-core": "^1.0.167-alpha.2", - "@budibase/string-templates": "^1.0.167-alpha.2", + "@budibase/bbui": "^1.0.167-alpha.3", + "@budibase/frontend-core": "^1.0.167-alpha.3", + "@budibase/string-templates": "^1.0.167-alpha.3", "@spectrum-css/button": "^3.0.3", "@spectrum-css/card": "^3.0.3", "@spectrum-css/divider": "^1.0.3", diff --git a/packages/frontend-core/package.json b/packages/frontend-core/package.json index 72fa2e763a..7cd15de482 100644 --- a/packages/frontend-core/package.json +++ b/packages/frontend-core/package.json @@ -1,12 +1,12 @@ { "name": "@budibase/frontend-core", - "version": "1.0.167-alpha.2", + "version": "1.0.167-alpha.3", "description": "Budibase frontend core libraries used in builder and client", "author": "Budibase", "license": "MPL-2.0", "svelte": "src/index.js", "dependencies": { - "@budibase/bbui": "^1.0.167-alpha.2", + "@budibase/bbui": "^1.0.167-alpha.3", "lodash": "^4.17.21", "svelte": "^3.46.2" } diff --git a/packages/server/package.json b/packages/server/package.json index e7ec9d4d5b..23130b3724 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,7 +1,7 @@ { "name": "@budibase/server", "email": "hi@budibase.com", - "version": "1.0.167-alpha.2", + "version": "1.0.167-alpha.3", "description": "Budibase Web Server", "main": "src/index.ts", "repository": { @@ -69,10 +69,10 @@ "license": "GPL-3.0", "dependencies": { "@apidevtools/swagger-parser": "^10.0.3", - "@budibase/backend-core": "^1.0.167-alpha.2", - "@budibase/client": "^1.0.167-alpha.2", + "@budibase/backend-core": "^1.0.167-alpha.3", + "@budibase/client": "^1.0.167-alpha.3", "@budibase/pro": "1.0.167-alpha.2", - "@budibase/string-templates": "^1.0.167-alpha.2", + "@budibase/string-templates": "^1.0.167-alpha.3", "@bull-board/api": "^3.7.0", "@bull-board/koa": "^3.7.0", "@elastic/elasticsearch": "7.10.0", diff --git a/packages/string-templates/package.json b/packages/string-templates/package.json index b84cef777d..823d2401d0 100644 --- a/packages/string-templates/package.json +++ b/packages/string-templates/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/string-templates", - "version": "1.0.167-alpha.2", + "version": "1.0.167-alpha.3", "description": "Handlebars wrapper for Budibase templating.", "main": "src/index.cjs", "module": "dist/bundle.mjs", diff --git a/packages/worker/package.json b/packages/worker/package.json index b2e7773161..16ed71318b 100644 --- a/packages/worker/package.json +++ b/packages/worker/package.json @@ -1,7 +1,7 @@ { "name": "@budibase/worker", "email": "hi@budibase.com", - "version": "1.0.167-alpha.2", + "version": "1.0.167-alpha.3", "description": "Budibase background service", "main": "src/index.ts", "repository": { @@ -31,9 +31,9 @@ "author": "Budibase", "license": "GPL-3.0", "dependencies": { - "@budibase/backend-core": "^1.0.167-alpha.2", + "@budibase/backend-core": "^1.0.167-alpha.3", "@budibase/pro": "1.0.167-alpha.2", - "@budibase/string-templates": "^1.0.167-alpha.2", + "@budibase/string-templates": "^1.0.167-alpha.3", "@koa/router": "^8.0.0", "@sentry/node": "6.17.7", "@techpass/passport-openidconnect": "^0.3.0", From 0d288143a4696be178002e7c8d5ccbb6f48c00b8 Mon Sep 17 00:00:00 2001 From: Budibase Staging Release Bot <> Date: Thu, 19 May 2022 09:12:12 +0000 Subject: [PATCH 07/11] Update pro version to 1.0.167-alpha.3 --- packages/server/package.json | 2 +- packages/worker/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/package.json b/packages/server/package.json index 23130b3724..fc61c91006 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -71,7 +71,7 @@ "@apidevtools/swagger-parser": "^10.0.3", "@budibase/backend-core": "^1.0.167-alpha.3", "@budibase/client": "^1.0.167-alpha.3", - "@budibase/pro": "1.0.167-alpha.2", + "@budibase/pro": "1.0.167-alpha.3", "@budibase/string-templates": "^1.0.167-alpha.3", "@bull-board/api": "^3.7.0", "@bull-board/koa": "^3.7.0", diff --git a/packages/worker/package.json b/packages/worker/package.json index 16ed71318b..8c57f233d3 100644 --- a/packages/worker/package.json +++ b/packages/worker/package.json @@ -32,7 +32,7 @@ "license": "GPL-3.0", "dependencies": { "@budibase/backend-core": "^1.0.167-alpha.3", - "@budibase/pro": "1.0.167-alpha.2", + "@budibase/pro": "1.0.167-alpha.3", "@budibase/string-templates": "^1.0.167-alpha.3", "@koa/router": "^8.0.0", "@sentry/node": "6.17.7", From feb9973d2208cb01be60fc5e7436c89fc7a5a42c Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Thu, 19 May 2022 10:24:19 +0100 Subject: [PATCH 08/11] use env variable as the folder setting --- packages/server/src/api/controllers/templates.js | 2 +- packages/server/src/environment.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/api/controllers/templates.js b/packages/server/src/api/controllers/templates.js index e18da3b9d3..57a175d4ff 100644 --- a/packages/server/src/api/controllers/templates.js +++ b/packages/server/src/api/controllers/templates.js @@ -7,7 +7,7 @@ const DEFAULT_TEMPLATES_BUCKET = "prod-budi-templates.s3-eu-west-1.amazonaws.com" exports.fetch = async function (ctx) { - let type = env.TEST_ENV ? "qa" : "app" + let type = env.TEMPLATE_REPOSITORY || "app" let response, error = false try { diff --git a/packages/server/src/environment.js b/packages/server/src/environment.js index f06c369cd0..fd28e4c369 100644 --- a/packages/server/src/environment.js +++ b/packages/server/src/environment.js @@ -78,7 +78,7 @@ module.exports = { ALLOW_DEV_AUTOMATIONS: process.env.ALLOW_DEV_AUTOMATIONS, DISABLE_THREADING: process.env.DISABLE_THREADING, SQL_MAX_ROWS: process.env.SQL_MAX_ROWS, - TEST_ENV: process.env.TEST_ENV, + TEMPLATE_REPOSITORY: process.env.TEMPLATE_REPOSITORY, _set(key, value) { process.env[key] = value module.exports[key] = value From 8c95429b085638be0f90a9850c19365c02dcac95 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Thu, 19 May 2022 10:56:51 +0100 Subject: [PATCH 09/11] default value for env variable --- packages/server/src/api/controllers/templates.js | 2 +- packages/server/src/environment.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/api/controllers/templates.js b/packages/server/src/api/controllers/templates.js index 57a175d4ff..3a1cafdf5a 100644 --- a/packages/server/src/api/controllers/templates.js +++ b/packages/server/src/api/controllers/templates.js @@ -7,7 +7,7 @@ const DEFAULT_TEMPLATES_BUCKET = "prod-budi-templates.s3-eu-west-1.amazonaws.com" exports.fetch = async function (ctx) { - let type = env.TEMPLATE_REPOSITORY || "app" + let type = env.TEMPLATE_REPOSITORY let response, error = false try { diff --git a/packages/server/src/environment.js b/packages/server/src/environment.js index fd28e4c369..4807ef5493 100644 --- a/packages/server/src/environment.js +++ b/packages/server/src/environment.js @@ -78,7 +78,7 @@ module.exports = { ALLOW_DEV_AUTOMATIONS: process.env.ALLOW_DEV_AUTOMATIONS, DISABLE_THREADING: process.env.DISABLE_THREADING, SQL_MAX_ROWS: process.env.SQL_MAX_ROWS, - TEMPLATE_REPOSITORY: process.env.TEMPLATE_REPOSITORY, + TEMPLATE_REPOSITORY: process.env.TEMPLATE_REPOSITORY || "app", _set(key, value) { process.env[key] = value module.exports[key] = value From 0ed0af34bcfc730441f228ead822085404e1427b Mon Sep 17 00:00:00 2001 From: Budibase Staging Release Bot <> Date: Thu, 19 May 2022 14:17:02 +0000 Subject: [PATCH 10/11] v1.0.167-alpha.4 --- lerna.json | 2 +- packages/backend-core/package.json | 2 +- packages/bbui/package.json | 4 ++-- packages/builder/package.json | 10 +++++----- packages/cli/package.json | 2 +- packages/client/package.json | 8 ++++---- packages/frontend-core/package.json | 4 ++-- packages/server/package.json | 8 ++++---- packages/string-templates/package.json | 2 +- packages/worker/package.json | 6 +++--- 10 files changed, 24 insertions(+), 24 deletions(-) diff --git a/lerna.json b/lerna.json index 75c6bf2f90..ce7aa07df6 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "1.0.167-alpha.3", + "version": "1.0.167-alpha.4", "npmClient": "yarn", "packages": [ "packages/*" diff --git a/packages/backend-core/package.json b/packages/backend-core/package.json index f95d8736ea..2767bbc80d 100644 --- a/packages/backend-core/package.json +++ b/packages/backend-core/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/backend-core", - "version": "1.0.167-alpha.3", + "version": "1.0.167-alpha.4", "description": "Budibase backend core libraries used in server and worker", "main": "src/index.js", "author": "Budibase", diff --git a/packages/bbui/package.json b/packages/bbui/package.json index bbf5ac6a78..586a02e97c 100644 --- a/packages/bbui/package.json +++ b/packages/bbui/package.json @@ -1,7 +1,7 @@ { "name": "@budibase/bbui", "description": "A UI solution used in the different Budibase projects.", - "version": "1.0.167-alpha.3", + "version": "1.0.167-alpha.4", "license": "MPL-2.0", "svelte": "src/index.js", "module": "dist/bbui.es.js", @@ -38,7 +38,7 @@ ], "dependencies": { "@adobe/spectrum-css-workflow-icons": "^1.2.1", - "@budibase/string-templates": "^1.0.167-alpha.3", + "@budibase/string-templates": "^1.0.167-alpha.4", "@spectrum-css/actionbutton": "^1.0.1", "@spectrum-css/actiongroup": "^1.0.1", "@spectrum-css/avatar": "^3.0.2", diff --git a/packages/builder/package.json b/packages/builder/package.json index fed7e0382a..d9bb6f28d1 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/builder", - "version": "1.0.167-alpha.3", + "version": "1.0.167-alpha.4", "license": "GPL-3.0", "private": true, "scripts": { @@ -67,10 +67,10 @@ } }, "dependencies": { - "@budibase/bbui": "^1.0.167-alpha.3", - "@budibase/client": "^1.0.167-alpha.3", - "@budibase/frontend-core": "^1.0.167-alpha.3", - "@budibase/string-templates": "^1.0.167-alpha.3", + "@budibase/bbui": "^1.0.167-alpha.4", + "@budibase/client": "^1.0.167-alpha.4", + "@budibase/frontend-core": "^1.0.167-alpha.4", + "@budibase/string-templates": "^1.0.167-alpha.4", "@sentry/browser": "5.19.1", "@spectrum-css/page": "^3.0.1", "@spectrum-css/vars": "^3.0.1", diff --git a/packages/cli/package.json b/packages/cli/package.json index d4302d28ab..454aa63957 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/cli", - "version": "1.0.167-alpha.3", + "version": "1.0.167-alpha.4", "description": "Budibase CLI, for developers, self hosting and migrations.", "main": "src/index.js", "bin": { diff --git a/packages/client/package.json b/packages/client/package.json index 6aa9c6a34a..e7bee51e7f 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/client", - "version": "1.0.167-alpha.3", + "version": "1.0.167-alpha.4", "license": "MPL-2.0", "module": "dist/budibase-client.js", "main": "dist/budibase-client.js", @@ -19,9 +19,9 @@ "dev:builder": "rollup -cw" }, "dependencies": { - "@budibase/bbui": "^1.0.167-alpha.3", - "@budibase/frontend-core": "^1.0.167-alpha.3", - "@budibase/string-templates": "^1.0.167-alpha.3", + "@budibase/bbui": "^1.0.167-alpha.4", + "@budibase/frontend-core": "^1.0.167-alpha.4", + "@budibase/string-templates": "^1.0.167-alpha.4", "@spectrum-css/button": "^3.0.3", "@spectrum-css/card": "^3.0.3", "@spectrum-css/divider": "^1.0.3", diff --git a/packages/frontend-core/package.json b/packages/frontend-core/package.json index 7cd15de482..686d03fcf6 100644 --- a/packages/frontend-core/package.json +++ b/packages/frontend-core/package.json @@ -1,12 +1,12 @@ { "name": "@budibase/frontend-core", - "version": "1.0.167-alpha.3", + "version": "1.0.167-alpha.4", "description": "Budibase frontend core libraries used in builder and client", "author": "Budibase", "license": "MPL-2.0", "svelte": "src/index.js", "dependencies": { - "@budibase/bbui": "^1.0.167-alpha.3", + "@budibase/bbui": "^1.0.167-alpha.4", "lodash": "^4.17.21", "svelte": "^3.46.2" } diff --git a/packages/server/package.json b/packages/server/package.json index fc61c91006..4630044df2 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,7 +1,7 @@ { "name": "@budibase/server", "email": "hi@budibase.com", - "version": "1.0.167-alpha.3", + "version": "1.0.167-alpha.4", "description": "Budibase Web Server", "main": "src/index.ts", "repository": { @@ -69,10 +69,10 @@ "license": "GPL-3.0", "dependencies": { "@apidevtools/swagger-parser": "^10.0.3", - "@budibase/backend-core": "^1.0.167-alpha.3", - "@budibase/client": "^1.0.167-alpha.3", + "@budibase/backend-core": "^1.0.167-alpha.4", + "@budibase/client": "^1.0.167-alpha.4", "@budibase/pro": "1.0.167-alpha.3", - "@budibase/string-templates": "^1.0.167-alpha.3", + "@budibase/string-templates": "^1.0.167-alpha.4", "@bull-board/api": "^3.7.0", "@bull-board/koa": "^3.7.0", "@elastic/elasticsearch": "7.10.0", diff --git a/packages/string-templates/package.json b/packages/string-templates/package.json index 823d2401d0..65f3d567cf 100644 --- a/packages/string-templates/package.json +++ b/packages/string-templates/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/string-templates", - "version": "1.0.167-alpha.3", + "version": "1.0.167-alpha.4", "description": "Handlebars wrapper for Budibase templating.", "main": "src/index.cjs", "module": "dist/bundle.mjs", diff --git a/packages/worker/package.json b/packages/worker/package.json index 8c57f233d3..16e1cd538b 100644 --- a/packages/worker/package.json +++ b/packages/worker/package.json @@ -1,7 +1,7 @@ { "name": "@budibase/worker", "email": "hi@budibase.com", - "version": "1.0.167-alpha.3", + "version": "1.0.167-alpha.4", "description": "Budibase background service", "main": "src/index.ts", "repository": { @@ -31,9 +31,9 @@ "author": "Budibase", "license": "GPL-3.0", "dependencies": { - "@budibase/backend-core": "^1.0.167-alpha.3", + "@budibase/backend-core": "^1.0.167-alpha.4", "@budibase/pro": "1.0.167-alpha.3", - "@budibase/string-templates": "^1.0.167-alpha.3", + "@budibase/string-templates": "^1.0.167-alpha.4", "@koa/router": "^8.0.0", "@sentry/node": "6.17.7", "@techpass/passport-openidconnect": "^0.3.0", From cd2139673fdd233f1885a0756475ae757f0838e1 Mon Sep 17 00:00:00 2001 From: Budibase Staging Release Bot <> Date: Thu, 19 May 2022 14:18:34 +0000 Subject: [PATCH 11/11] Update pro version to 1.0.167-alpha.4 --- packages/server/package.json | 2 +- packages/worker/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/package.json b/packages/server/package.json index 4630044df2..9218fb43ed 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -71,7 +71,7 @@ "@apidevtools/swagger-parser": "^10.0.3", "@budibase/backend-core": "^1.0.167-alpha.4", "@budibase/client": "^1.0.167-alpha.4", - "@budibase/pro": "1.0.167-alpha.3", + "@budibase/pro": "1.0.167-alpha.4", "@budibase/string-templates": "^1.0.167-alpha.4", "@bull-board/api": "^3.7.0", "@bull-board/koa": "^3.7.0", diff --git a/packages/worker/package.json b/packages/worker/package.json index 16e1cd538b..1c36e80963 100644 --- a/packages/worker/package.json +++ b/packages/worker/package.json @@ -32,7 +32,7 @@ "license": "GPL-3.0", "dependencies": { "@budibase/backend-core": "^1.0.167-alpha.4", - "@budibase/pro": "1.0.167-alpha.3", + "@budibase/pro": "1.0.167-alpha.4", "@budibase/string-templates": "^1.0.167-alpha.4", "@koa/router": "^8.0.0", "@sentry/node": "6.17.7",