- {#each items as item}
- {@const person = $personByIdStore.get(item)}
- {#if person}
-
- {/if}
+
+ {#each persons as person}
+
{/each}
{/if}
diff --git a/plugins/presence-resources/src/components/PresenceList.svelte b/plugins/presence-resources/src/components/PresenceList.svelte
new file mode 100644
index 00000000000..21a4c75c35b
--- /dev/null
+++ b/plugins/presence-resources/src/components/PresenceList.svelte
@@ -0,0 +1,33 @@
+
+
+
+
+ {#each persons as person}
+
+
+ {formatName(person.name)}
+
+ {/each}
+
diff --git a/plugins/task-resources/src/index.ts b/plugins/task-resources/src/index.ts
index 39b1a69811c..537d2c9b46f 100644
--- a/plugins/task-resources/src/index.ts
+++ b/plugins/task-resources/src/index.ts
@@ -367,7 +367,7 @@ export const joinedProjectsStore = writable
()
function fillStores (): void {
const client = getClient()
- if (client !== undefined) {
+ if (client !== undefined && getCurrentAccount() != null) {
const query = createQuery(true)
query.query(task.class.ProjectType, {}, (res) => {
typeStore.set(toIdMap(res))
diff --git a/pods/backup/package.json b/pods/backup/package.json
index 3e724b27db8..346ecab6be1 100644
--- a/pods/backup/package.json
+++ b/pods/backup/package.json
@@ -60,6 +60,8 @@
"dotenv": "~16.0.0",
"@hcengineering/backup-service": "^0.6.0",
"@hcengineering/analytics": "^0.6.0",
- "@hcengineering/analytics-service": "^0.6.0"
+ "@hcengineering/analytics-service": "^0.6.0",
+ "@hcengineering/mongo": "^0.6.1",
+ "@hcengineering/postgres": "^0.6.0"
}
}
diff --git a/pods/backup/src/index.ts b/pods/backup/src/index.ts
index 279fe5beff9..7c9a3d41bd3 100644
--- a/pods/backup/src/index.ts
+++ b/pods/backup/src/index.ts
@@ -18,10 +18,18 @@ import { configureAnalytics, SplitLogger } from '@hcengineering/analytics-servic
import { startBackup } from '@hcengineering/backup-service'
import { MeasureMetricsContext, newMetrics, type Tx } from '@hcengineering/core'
import { initStatisticsContext, type PipelineFactory } from '@hcengineering/server-core'
-import { createBackupPipeline, getConfig } from '@hcengineering/server-pipeline'
+import {
+ createBackupPipeline,
+ getConfig,
+ registerAdapterFactory,
+ registerDestroyFactory,
+ registerTxAdapterFactory
+} from '@hcengineering/server-pipeline'
import { join } from 'path'
import { readFileSync } from 'node:fs'
+import { createMongoTxAdapter, createMongoAdapter, createMongoDestroyAdapter } from '@hcengineering/mongo'
+import { createPostgresTxAdapter, createPostgresAdapter, createPostgreeDestroyAdapter } from '@hcengineering/postgres'
const model = JSON.parse(readFileSync(process.env.MODEL_JSON ?? 'model.json').toString()) as Tx[]
const metricsContext = initStatisticsContext('backup', {
@@ -43,6 +51,14 @@ const sentryDSN = process.env.SENTRY_DSN
configureAnalytics(sentryDSN, {})
Analytics.setTag('application', 'backup-service')
+registerTxAdapterFactory('mongodb', createMongoTxAdapter)
+registerAdapterFactory('mongodb', createMongoAdapter)
+registerDestroyFactory('mongodb', createMongoDestroyAdapter)
+
+registerTxAdapterFactory('postgresql', createPostgresTxAdapter, true)
+registerAdapterFactory('postgresql', createPostgresAdapter, true)
+registerDestroyFactory('postgresql', createPostgreeDestroyAdapter, true)
+
startBackup(
metricsContext,
(mongoUrl, storageAdapter) => {
diff --git a/pods/fulltext/src/server.ts b/pods/fulltext/src/server.ts
index 36e25c96b24..93fc5e6d31b 100644
--- a/pods/fulltext/src/server.ts
+++ b/pods/fulltext/src/server.ts
@@ -47,11 +47,11 @@ import serverCore, {
import { FullTextIndexPipeline, searchFulltext, type FulltextDBConfiguration } from '@hcengineering/server-indexer'
import {
getConfig,
- registerAdapterFactry,
- registerDestroyFactry,
+ registerAdapterFactory,
+ registerDestroyFactory,
registerServerPlugins,
registerStringLoaders,
- registerTxAdapterFactry
+ registerTxAdapterFactory
} from '@hcengineering/server-pipeline'
import serverToken, { decodeToken, generateToken, type Token } from '@hcengineering/server-token'
import cors from '@koa/cors'
@@ -207,13 +207,13 @@ export async function startIndexer (
setMetadata(serverCore.metadata.ElasticIndexName, opt.elasticIndexName)
setMetadata(serverClientPlugin.metadata.Endpoint, opt.accountsUrl)
- registerTxAdapterFactry('mongodb', createMongoTxAdapter)
- registerAdapterFactry('mongodb', createMongoAdapter)
- registerDestroyFactry('mongodb', createMongoDestroyAdapter)
+ registerTxAdapterFactory('mongodb', createMongoTxAdapter)
+ registerAdapterFactory('mongodb', createMongoAdapter)
+ registerDestroyFactory('mongodb', createMongoDestroyAdapter)
- registerTxAdapterFactry('postgresql', createPostgresTxAdapter, true)
- registerAdapterFactry('postgresql', createPostgresAdapter, true)
- registerDestroyFactry('postgresql', createPostgreeDestroyAdapter, true)
+ registerTxAdapterFactory('postgresql', createPostgresTxAdapter, true)
+ registerAdapterFactory('postgresql', createPostgresAdapter, true)
+ registerDestroyFactory('postgresql', createPostgreeDestroyAdapter, true)
registerServerPlugins()
registerStringLoaders()
diff --git a/pods/server/src/server.ts b/pods/server/src/server.ts
index ce746ade171..dbe06c37916 100644
--- a/pods/server/src/server.ts
+++ b/pods/server/src/server.ts
@@ -35,11 +35,11 @@ import { type Token } from '@hcengineering/server-token'
import {
createServerPipeline,
- registerAdapterFactry,
- registerDestroyFactry,
+ registerAdapterFactory,
+ registerDestroyFactory,
registerServerPlugins,
registerStringLoaders,
- registerTxAdapterFactry
+ registerTxAdapterFactory
} from '@hcengineering/server-pipeline'
import { readFileSync } from 'node:fs'
@@ -74,13 +74,13 @@ export function start (
mongoUrl?: string
}
): { shutdown: () => Promise, sessionManager: SessionManager } {
- registerTxAdapterFactry('mongodb', createMongoTxAdapter)
- registerAdapterFactry('mongodb', createMongoAdapter)
- registerDestroyFactry('mongodb', createMongoDestroyAdapter)
+ registerTxAdapterFactory('mongodb', createMongoTxAdapter)
+ registerAdapterFactory('mongodb', createMongoAdapter)
+ registerDestroyFactory('mongodb', createMongoDestroyAdapter)
- registerTxAdapterFactry('postgresql', createPostgresTxAdapter, true)
- registerAdapterFactry('postgresql', createPostgresAdapter, true)
- registerDestroyFactry('postgresql', createPostgreeDestroyAdapter, true)
+ registerTxAdapterFactory('postgresql', createPostgresTxAdapter, true)
+ registerAdapterFactory('postgresql', createPostgresAdapter, true)
+ registerDestroyFactory('postgresql', createPostgreeDestroyAdapter, true)
registerServerPlugins()
diff --git a/server/server-pipeline/src/pipeline.ts b/server/server-pipeline/src/pipeline.ts
index 3a6dc35d018..a6c5e616324 100644
--- a/server/server-pipeline/src/pipeline.ts
+++ b/server/server-pipeline/src/pipeline.ts
@@ -210,21 +210,21 @@ const txAdapterFactories: Record = {}
const adapterFactories: Record = {}
const destroyFactories: Record WorkspaceDestroyAdapter> = {}
-export function registerTxAdapterFactry (name: string, factory: DbAdapterFactory, useAsDefault: boolean = true): void {
+export function registerTxAdapterFactory (name: string, factory: DbAdapterFactory, useAsDefault: boolean = true): void {
txAdapterFactories[name] = factory
if (useAsDefault) {
txAdapterFactories[''] = factory
}
}
-export function registerAdapterFactry (name: string, factory: DbAdapterFactory, useAsDefault: boolean = true): void {
+export function registerAdapterFactory (name: string, factory: DbAdapterFactory, useAsDefault: boolean = true): void {
adapterFactories[name] = factory
if (useAsDefault) {
adapterFactories[''] = factory
}
}
-export function registerDestroyFactry (
+export function registerDestroyFactory (
name: string,
factory: (url: string) => WorkspaceDestroyAdapter,
useAsDefault: boolean = true
diff --git a/server/workspace-service/src/ws-operations.ts b/server/workspace-service/src/ws-operations.ts
index 30c6171ce1a..20f6b2772bd 100644
--- a/server/workspace-service/src/ws-operations.ts
+++ b/server/workspace-service/src/ws-operations.ts
@@ -21,11 +21,11 @@ import { SessionDataImpl, wrapPipeline, type Pipeline, type StorageAdapter } fro
import {
getServerPipeline,
getTxAdapterFactory,
- registerAdapterFactry,
- registerDestroyFactry,
+ registerAdapterFactory,
+ registerDestroyFactory,
registerServerPlugins,
registerStringLoaders,
- registerTxAdapterFactry
+ registerTxAdapterFactory
} from '@hcengineering/server-pipeline'
import { buildStorageFromConfig, storageConfigFromEnv } from '@hcengineering/server-storage'
import { generateToken } from '@hcengineering/server-token'
@@ -82,13 +82,13 @@ export async function createWorkspace (
const hierarchy = new Hierarchy()
const modelDb = new ModelDb(hierarchy)
- registerTxAdapterFactry('mongodb', createMongoTxAdapter)
- registerAdapterFactry('mongodb', createMongoAdapter)
- registerDestroyFactry('mongodb', createMongoDestroyAdapter)
+ registerTxAdapterFactory('mongodb', createMongoTxAdapter)
+ registerAdapterFactory('mongodb', createMongoAdapter)
+ registerDestroyFactory('mongodb', createMongoDestroyAdapter)
- registerTxAdapterFactry('postgresql', createPostgresTxAdapter, true)
- registerAdapterFactry('postgresql', createPostgresAdapter, true)
- registerDestroyFactry('postgresql', createPostgreeDestroyAdapter, true)
+ registerTxAdapterFactory('postgresql', createPostgresTxAdapter, true)
+ registerAdapterFactory('postgresql', createPostgresAdapter, true)
+ registerDestroyFactory('postgresql', createPostgreeDestroyAdapter, true)
registerServerPlugins()
registerStringLoaders()
@@ -173,13 +173,13 @@ export async function upgradeWorkspace (
): Promise {
const { dbUrl } = prepareTools([])
let pipeline: Pipeline | undefined
- registerTxAdapterFactry('mongodb', createMongoTxAdapter)
- registerAdapterFactry('mongodb', createMongoAdapter)
- registerDestroyFactry('mongodb', createMongoDestroyAdapter)
+ registerTxAdapterFactory('mongodb', createMongoTxAdapter)
+ registerAdapterFactory('mongodb', createMongoAdapter)
+ registerDestroyFactory('mongodb', createMongoDestroyAdapter)
- registerTxAdapterFactry('postgresql', createPostgresTxAdapter, true)
- registerAdapterFactry('postgresql', createPostgresAdapter, true)
- registerDestroyFactry('postgresql', createPostgreeDestroyAdapter, true)
+ registerTxAdapterFactory('postgresql', createPostgresTxAdapter, true)
+ registerAdapterFactory('postgresql', createPostgresAdapter, true)
+ registerDestroyFactory('postgresql', createPostgreeDestroyAdapter, true)
registerServerPlugins()
registerStringLoaders()
diff --git a/workers/transactor/src/transactor.ts b/workers/transactor/src/transactor.ts
index 17710ac3871..decbcaa1497 100644
--- a/workers/transactor/src/transactor.ts
+++ b/workers/transactor/src/transactor.ts
@@ -38,11 +38,11 @@ import { gzip } from 'zlib'
import { createPostgreeDestroyAdapter, createPostgresAdapter, createPostgresTxAdapter } from '@hcengineering/postgres'
import {
createServerPipeline,
- registerAdapterFactry,
- registerDestroyFactry,
+ registerAdapterFactory,
+ registerDestroyFactory,
registerServerPlugins,
registerStringLoaders,
- registerTxAdapterFactry
+ registerTxAdapterFactory
} from '@hcengineering/server-pipeline'
import model from './model.json'
@@ -65,9 +65,9 @@ export class Transactor extends DurableObject {
constructor (ctx: DurableObjectState, env: Env) {
super(ctx, env)
- registerTxAdapterFactry('postgresql', createPostgresTxAdapter, true)
- registerAdapterFactry('postgresql', createPostgresAdapter, true)
- registerDestroyFactry('postgresql', createPostgreeDestroyAdapter, true)
+ registerTxAdapterFactory('postgresql', createPostgresTxAdapter, true)
+ registerAdapterFactory('postgresql', createPostgresAdapter, true)
+ registerDestroyFactory('postgresql', createPostgreeDestroyAdapter, true)
registerStringLoaders()
registerServerPlugins()