From 67ca63dace7ed7a190c3a8c3aa15390ca257fab7 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Sat, 18 Jan 2025 23:38:46 +0700 Subject: [PATCH 01/21] 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))})`) From 46084e0c8299e21573e1900394c11d22bf414f36 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Mon, 20 Jan 2025 12:11:03 +0700 Subject: [PATCH 02/21] UBERF-9165: Fix archived workspace select (#7712) Fix workspace loading issue when click on archived Signed-off-by: Andrey Sobolev --- plugins/login-assets/lang/cs.json | 3 +- plugins/login-assets/lang/de.json | 3 +- plugins/login-assets/lang/en.json | 3 +- plugins/login-assets/lang/es.json | 3 +- plugins/login-assets/lang/fr.json | 3 +- plugins/login-assets/lang/it.json | 3 +- plugins/login-assets/lang/pt.json | 3 +- plugins/login-assets/lang/ru.json | 3 +- plugins/login-assets/lang/zh.json | 3 +- .../src/components/AdminWorkspaces.svelte | 6 +++- .../src/components/SelectWorkspace.svelte | 35 +++++++++++++------ plugins/login/src/index.ts | 4 ++- server/account/src/operations.ts | 2 +- 13 files changed, 52 insertions(+), 22 deletions(-) diff --git a/plugins/login-assets/lang/cs.json b/plugins/login-assets/lang/cs.json index b3f3ebf249..d611b97dba 100644 --- a/plugins/login-assets/lang/cs.json +++ b/plugins/login-assets/lang/cs.json @@ -57,6 +57,7 @@ "Next": "Další", "Skip": "Přeskočit", "SignUpCompleted": "Registrace dokončena", - "StartUsingHuly": "Začněte používat Huly" + "StartUsingHuly": "Začněte používat Huly", + "WorkspaceIsArchived": "Pracovní prostor je archivován kvůli nečinnosti. Kontaktujte nás prosím pro obnovení..." } } \ No newline at end of file diff --git a/plugins/login-assets/lang/de.json b/plugins/login-assets/lang/de.json index 3467b0224c..93efdd2b0e 100644 --- a/plugins/login-assets/lang/de.json +++ b/plugins/login-assets/lang/de.json @@ -57,6 +57,7 @@ "Next": "Weiter", "Skip": "Überspringen", "SignUpCompleted": "Registrierung abgeschlossen", - "StartUsingHuly": "Starten Sie mit Huly" + "StartUsingHuly": "Starten Sie mit Huly", + "WorkspaceArchivedDesc": "Workspace wurde wegen Inaktivität archiviert. Bitte kontaktieren Sie uns zur Wiederherstellung..." } } diff --git a/plugins/login-assets/lang/en.json b/plugins/login-assets/lang/en.json index efd8b57ede..64d0f6106b 100644 --- a/plugins/login-assets/lang/en.json +++ b/plugins/login-assets/lang/en.json @@ -57,6 +57,7 @@ "Next": "Next", "Skip": "Skip", "SignUpCompleted": "Sign up completed", - "StartUsingHuly": "Start using Huly" + "StartUsingHuly": "Start using Huly", + "WorkspaceArchivedDesc": "Workspace is archived because of being unused, Please contact us to restore..." } } diff --git a/plugins/login-assets/lang/es.json b/plugins/login-assets/lang/es.json index 8dd31dde43..b723fc6b0b 100644 --- a/plugins/login-assets/lang/es.json +++ b/plugins/login-assets/lang/es.json @@ -57,6 +57,7 @@ "Next": "Siguiente", "Skip": "Saltar", "SignUpCompleted": "Registro completado", - "StartUsingHuly": "Comienza a usar Huly" + "StartUsingHuly": "Comienza a usar Huly", + "WorkspaceArchivedDesc": "El espacio de trabajo está archivado por no estar en uso, por favor contáctenos para restaurarlo..." } } \ No newline at end of file diff --git a/plugins/login-assets/lang/fr.json b/plugins/login-assets/lang/fr.json index b442b854c1..7df88de47b 100644 --- a/plugins/login-assets/lang/fr.json +++ b/plugins/login-assets/lang/fr.json @@ -57,6 +57,7 @@ "Next": "Suivant", "Skip": "Passer", "SignUpCompleted": "Inscription terminée", - "StartUsingHuly": "Commencez à utiliser Huly" + "StartUsingHuly": "Commencez à utiliser Huly", + "WorkspaceArchivedDesc": "L'espace de travail est archivé en raison de son inactivité, veuillez nous contacter pour le restaurer..." } } \ No newline at end of file diff --git a/plugins/login-assets/lang/it.json b/plugins/login-assets/lang/it.json index 9f59687b01..d7c8c39e1a 100644 --- a/plugins/login-assets/lang/it.json +++ b/plugins/login-assets/lang/it.json @@ -57,6 +57,7 @@ "Next": "Avanti", "Skip": "Salta", "SignUpCompleted": "Registrazione completata", - "StartUsingHuly": "Inizia a usare Huly" + "StartUsingHuly": "Inizia a usare Huly", + "WorkspaceArchivedDesc": "Il workspace è stato archiviato perché inutilizzato. Si prega di contattarci per ripristinarlo..." } } diff --git a/plugins/login-assets/lang/pt.json b/plugins/login-assets/lang/pt.json index 754b9f81a4..82cbcec990 100644 --- a/plugins/login-assets/lang/pt.json +++ b/plugins/login-assets/lang/pt.json @@ -57,6 +57,7 @@ "Next": "Seguinte", "Skip": "Saltar", "SignUpCompleted": "Registo concluído", - "StartUsingHuly": "Começar a usar Huly" + "StartUsingHuly": "Começar a usar Huly", + "WorkspaceArchivedDesc": "O espaço de trabalho está arquivado por estar inativo, por favor, entre em contato conosco para restaurá-lo..." } } \ No newline at end of file diff --git a/plugins/login-assets/lang/ru.json b/plugins/login-assets/lang/ru.json index 0d49a61cbf..53a29a7703 100644 --- a/plugins/login-assets/lang/ru.json +++ b/plugins/login-assets/lang/ru.json @@ -57,6 +57,7 @@ "Next": "Дальше", "Skip": "Пропустить", "SignUpCompleted": "Регистрация завершена", - "StartUsingHuly": "Начать использовать Huly" + "StartUsingHuly": "Начать использовать Huly", + "WorkspaceArchivedDesc": "Рабочее пространство архивировано из-за неиспользования, пожалуйста, свяжитесь с нами для восстановления..." } } diff --git a/plugins/login-assets/lang/zh.json b/plugins/login-assets/lang/zh.json index e5c44c87d6..8670f49447 100644 --- a/plugins/login-assets/lang/zh.json +++ b/plugins/login-assets/lang/zh.json @@ -57,6 +57,7 @@ "Next": "下一个", "Skip": "跳过", "SignUpCompleted": "注册完成", - "StartUsingHuly": "开始使用 Huly" + "StartUsingHuly": "开始使用 Huly", + "WorkspaceArchivedDesc": "工作区因未使用而归档,请与我们联系以恢复..." } } diff --git a/plugins/login-resources/src/components/AdminWorkspaces.svelte b/plugins/login-resources/src/components/AdminWorkspaces.svelte index 6c90755d23..827f0b6f43 100644 --- a/plugins/login-resources/src/components/AdminWorkspaces.svelte +++ b/plugins/login-resources/src/components/AdminWorkspaces.svelte @@ -60,7 +60,8 @@ (it) => (it.workspaceName?.includes(search) ?? false) || (it.workspaceUrl?.includes(search) ?? false) || - it.workspace?.includes(search) + it.workspace?.includes(search) || + it.createdBy?.includes(search) ), (it) => { const lastUsageDays = Math.round((now - it.lastVisit) / (1000 * 3600 * 24)) @@ -169,6 +170,9 @@ /> +
+ {workspace.createdBy} +
{workspace.region ?? ''} diff --git a/plugins/login-resources/src/components/SelectWorkspace.svelte b/plugins/login-resources/src/components/SelectWorkspace.svelte index 13bc31f952..099da5239c 100644 --- a/plugins/login-resources/src/components/SelectWorkspace.svelte +++ b/plugins/login-resources/src/components/SelectWorkspace.svelte @@ -14,24 +14,26 @@ // limitations under the License. --> + +
+
+ + diff --git a/plugins/love-resources/src/components/VideoPopup.svelte b/plugins/love-resources/src/components/VideoPopup.svelte index d162084bc5..361c423bb1 100644 --- a/plugins/love-resources/src/components/VideoPopup.svelte +++ b/plugins/love-resources/src/components/VideoPopup.svelte @@ -13,9 +13,14 @@ // limitations under the License. -->