From 9daab4d74942069b1ebd5de8fca1e3351c0914a9 Mon Sep 17 00:00:00 2001 From: Denis Tingaikin Date: Sat, 18 Jan 2025 14:57:20 +0300 Subject: [PATCH 1/2] add missed link preview url to env config (#7704) --- pods/front/src/__start.ts | 3 ++- server/front/src/index.ts | 4 +++- server/front/src/starter.ts | 7 +++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pods/front/src/__start.ts b/pods/front/src/__start.ts index d4e44fa4a8..9a19915188 100644 --- a/pods/front/src/__start.ts +++ b/pods/front/src/__start.ts @@ -1,5 +1,5 @@ // -// Copyright © 2023 Hardcore Engineering Inc. +// Copyright © 2023, 2025 Hardcore Engineering Inc. // import { Analytics } from '@hcengineering/analytics' @@ -44,6 +44,7 @@ startFront(metricsContext, { DESKTOP_UPDATES_URL: process.env.DESKTOP_UPDATES_URL, DESKTOP_UPDATES_CHANNEL: process.env.DESKTOP_UPDATES_CHANNEL, ANALYTICS_COLLECTOR_URL: process.env.ANALYTICS_COLLECTOR_URL, + LINK_PREVIEW_URL: process.env.LINK_PREVIEW_URL, AI_URL: process.env.AI_URL, TELEGRAM_BOT_URL: process.env.TELEGRAM_BOT_URL, STATS_URL: process.env.STATS_API ?? process.env.STATS_URL, diff --git a/server/front/src/index.ts b/server/front/src/index.ts index 63b8297934..156b9eec4a 100644 --- a/server/front/src/index.ts +++ b/server/front/src/index.ts @@ -1,6 +1,6 @@ // // Copyright © 2020, 2021 Anticrm Platform Contributors. -// Copyright © 2021 Hardcore Engineering Inc. +// Copyright © 2021, 2025 Hardcore Engineering Inc. // // Licensed under the Eclipse Public License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. You may @@ -258,6 +258,7 @@ export function start ( brandingUrl?: string previewConfig: string uploadConfig: string + linkPreviewUrl?: string pushPublicKey?: string disableSignUp?: string }, @@ -307,6 +308,7 @@ export function start ( GMAIL_URL: config.gmailUrl, CALENDAR_URL: config.calendarUrl, COLLABORATOR: config.collaborator, + LINK_PREVIEW_URL: config.linkPreviewUrl, COLLABORATOR_URL: config.collaboratorUrl, BRANDING_URL: config.brandingUrl, PREVIEW_CONFIG: config.previewConfig, diff --git a/server/front/src/starter.ts b/server/front/src/starter.ts index f643b6cead..042b444383 100644 --- a/server/front/src/starter.ts +++ b/server/front/src/starter.ts @@ -1,6 +1,6 @@ // // Copyright © 2020, 2021 Anticrm Platform Contributors. -// Copyright © 2021, 2024 Hardcore Engineering Inc. +// Copyright © 2021-2025 Hardcore Engineering Inc. // // Licensed under the Eclipse Public License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. You may @@ -109,6 +109,8 @@ export function startFront (ctx: MeasureContext, extraConfig?: Record Date: Sat, 18 Jan 2025 23:38:46 +0700 Subject: [PATCH 2/2] QFIX: PG query Signed-off-by: Andrey Sobolev --- server/postgres/src/storage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/postgres/src/storage.ts b/server/postgres/src/storage.ts index 2286109a4e..3fdb7d997d 100644 --- a/server/postgres/src/storage.ts +++ b/server/postgres/src/storage.ts @@ -1267,7 +1267,8 @@ abstract class PostgresAdapterBase implements DbAdapter { switch (type) { case 'common': if (Array.isArray(val) && val.includes(null)) { - res.push(`(${tkey} = ANY(${vars.addArray(val, inferType(val))})) OR ${tkey} IS NULL`) + const vv = vars.addArray(val, inferType(val)) + res.push(`(${tkey} = ANY(${vv}) OR ${tkey} IS NULL)`) } else { if (val.length > 0) { res.push(`${tkey} = ANY(${vars.addArray(val, inferType(val))})`)