From b622df26837d4afac8825d203999a0ab0353359c Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 30 Aug 2024 15:10:55 +0100 Subject: [PATCH] Defaulting SQS to on in development environments, this removes the need for setting it in the management scripts. --- packages/backend-core/src/features/index.ts | 2 +- packages/server/scripts/dev/manage.js | 1 - packages/worker/scripts/dev/manage.js | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/backend-core/src/features/index.ts b/packages/backend-core/src/features/index.ts index a8d6f0d0ef..aa80ad9b73 100644 --- a/packages/backend-core/src/features/index.ts +++ b/packages/backend-core/src/features/index.ts @@ -267,5 +267,5 @@ export class FlagSet, T extends { [key: string]: V }> { // default values set correctly and their types flow through the system. export const flags = new FlagSet({ DEFAULT_VALUES: Flag.boolean(false), - SQS: Flag.boolean(false), + SQS: Flag.boolean(env.isDev()), }) diff --git a/packages/server/scripts/dev/manage.js b/packages/server/scripts/dev/manage.js index edcc4a5edb..0794c53506 100644 --- a/packages/server/scripts/dev/manage.js +++ b/packages/server/scripts/dev/manage.js @@ -47,7 +47,6 @@ async function init() { HTTP_LOGGING: "0", VERSION: "0.0.0+local", PASSWORD_MIN_LENGTH: "1", - TENANT_FEATURE_FLAGS: "*:SQS", } config = { ...config, ...existingConfig } diff --git a/packages/worker/scripts/dev/manage.js b/packages/worker/scripts/dev/manage.js index cec8c68d26..4f4b6eb060 100644 --- a/packages/worker/scripts/dev/manage.js +++ b/packages/worker/scripts/dev/manage.js @@ -30,7 +30,6 @@ async function init() { HTTP_LOGGING: "0", VERSION: "0.0.0+local", PASSWORD_MIN_LENGTH: "1", - TENANT_FEATURE_FLAGS: "*:SQS", } config = { ...config, ...existingConfig }