From a123e65e7864acf627702449b5a1fb838db35529 Mon Sep 17 00:00:00 2001 From: Dean Date: Mon, 21 Nov 2022 12:47:36 +0000 Subject: [PATCH] Import fixes for backend core constants. Minor name change for default data source from Test DB to Sample Data --- packages/backend-core/src/constants.js | 6 +++--- packages/backend-core/src/constants.ts | 1 + .../datasource/datasource_internal_bb_default/index.svelte | 2 +- packages/server/src/db/defaultData/datasource_bb_default.js | 2 +- packages/worker/src/api/routes/global/configs.js | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/backend-core/src/constants.js b/packages/backend-core/src/constants.js index 51c8dcffca..8d291a055c 100644 --- a/packages/backend-core/src/constants.js +++ b/packages/backend-core/src/constants.js @@ -3,7 +3,7 @@ exports.UserStatus = { INACTIVE: "inactive", } -exports.Cookies = { +exports.Cookie = { CurrentApp: "budibase:currentapp", Auth: "budibase:auth", Init: "budibase:init", @@ -12,7 +12,7 @@ exports.Cookies = { OIDC_CONFIG: "budibase:oidc:config", } -exports.Headers = { +exports.Header = { API_KEY: "x-budibase-api-key", LICENSE_KEY: "x-budibase-license-key", API_VER: "x-budibase-api-version", @@ -31,7 +31,7 @@ exports.GlobalRoles = { WORKSPACE_MANAGER: "workspace_manager", } -exports.Configs = { +exports.Config = { SETTINGS: "settings", ACCOUNT: "account", SMTP: "smtp", diff --git a/packages/backend-core/src/constants.ts b/packages/backend-core/src/constants.ts index 61b3cea1f6..8db01365b8 100644 --- a/packages/backend-core/src/constants.ts +++ b/packages/backend-core/src/constants.ts @@ -42,3 +42,4 @@ export enum Config { export const MAX_VALID_DATE = new Date(2147483647000) export const DEFAULT_TENANT_ID = "default" +export const BUDIBASE_DATASOURCE_TYPE = "budibase" diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/datasource_internal_bb_default/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/datasource_internal_bb_default/index.svelte index 699321367b..b19f0d15c5 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/datasource/datasource_internal_bb_default/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/datasource_internal_bb_default/index.svelte @@ -21,7 +21,7 @@
- Test DB + Sample Data
A little something to get you up and running!