Enhanced Phased build (#4599)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-02-12 23:57:11 +07:00
committed by GitHub
parent cc5da22af3
commit c23af625f6
283 changed files with 3283 additions and 2904 deletions
+3 -3
View File
@@ -15,9 +15,9 @@
import { prepareTools as prepareToolsRaw } from '@hcengineering/server-tool'
import { Data, Tx, Version } from '@hcengineering/core'
import { MinioService } from '@hcengineering/minio'
import { MigrateOperation } from '@hcengineering/model'
import { type Data, type Tx, type Version } from '@hcengineering/core'
import { type MinioService } from '@hcengineering/minio'
import { type MigrateOperation } from '@hcengineering/model'
import builder, { migrateOperations, getModelVersion } from '@hcengineering/model-all'
import { devTool } from '.'
+8 -8
View File
@@ -15,18 +15,18 @@
import contact from '@hcengineering/contact'
import core, {
Account,
BackupClient,
type Account,
type BackupClient,
ClassifierKind,
Client,
type Client,
DOMAIN_TX,
Doc,
DocumentUpdate,
type Doc,
type DocumentUpdate,
MeasureMetricsContext,
Metrics,
Ref,
type Metrics,
type Ref,
TxOperations,
WorkspaceId,
type WorkspaceId,
generateId,
metricsToString,
newMetrics,
+10 -10
View File
@@ -17,28 +17,28 @@ import attachment from '@hcengineering/attachment'
import contact from '@hcengineering/contact'
import { deepEqual } from 'fast-equals'
import core, {
BackupClient,
Client as CoreClient,
type BackupClient,
type Client as CoreClient,
DOMAIN_TX,
Doc,
Domain,
Ref,
type Doc,
type Domain,
type Ref,
SortingOrder,
TxCreateDoc,
type TxCreateDoc,
TxOperations,
TxProcessor,
WorkspaceId,
type WorkspaceId,
generateId,
getObjectValue
} from '@hcengineering/core'
import { MinioService } from '@hcengineering/minio'
import { type MinioService } from '@hcengineering/minio'
import { getWorkspaceDB } from '@hcengineering/mongo'
import recruit from '@hcengineering/recruit'
import { connect } from '@hcengineering/server-tool'
import tracker from '@hcengineering/tracker'
import tags, { TagCategory, TagElement, TagReference } from '@hcengineering/tags'
import tags, { type TagCategory, type TagElement, type TagReference } from '@hcengineering/tags'
import { MongoClient } from 'mongodb'
import chunter, { ChatMessage } from '@hcengineering/chunter'
import chunter, { type ChatMessage } from '@hcengineering/chunter'
export const DOMAIN_ACTIVITY = 'activity' as Domain
+1 -1
View File
@@ -13,7 +13,7 @@
// limitations under the License.
//
import core, { BackupClient, Client as CoreClient, TxFactory, WorkspaceId } from '@hcengineering/core'
import core, { type BackupClient, type Client as CoreClient, TxFactory, type WorkspaceId } from '@hcengineering/core'
import { connect } from '@hcengineering/server-tool'
function toLen (val: string, sep: string, len: number): string {
+2 -2
View File
@@ -14,8 +14,8 @@
//
import { Client as ElasticClient } from '@elastic/elasticsearch'
import core, { DOMAIN_DOC_INDEX_STATE, toWorkspaceString, WorkspaceId } from '@hcengineering/core'
import { MinioService } from '@hcengineering/minio'
import core, { DOMAIN_DOC_INDEX_STATE, toWorkspaceString, type WorkspaceId } from '@hcengineering/core'
import { type MinioService } from '@hcengineering/minio'
import { getWorkspaceDB } from '@hcengineering/mongo'
import { MongoClient } from 'mongodb'
+6 -6
View File
@@ -30,7 +30,7 @@ import {
setAccountAdmin,
setRole,
upgradeWorkspace,
WorkspaceInfo
type WorkspaceInfo
} from '@hcengineering/account'
import { setMetadata } from '@hcengineering/platform'
import {
@@ -43,14 +43,14 @@ import {
import serverToken, { decodeToken, generateToken } from '@hcengineering/server-token'
import toolPlugin, { FileModelLogger } from '@hcengineering/server-tool'
import { Command, program } from 'commander'
import { Db, MongoClient } from 'mongodb'
import { type Command, program } from 'commander'
import { type Db, MongoClient } from 'mongodb'
import { clearTelegramHistory } from './telegram'
import { diffWorkspace, updateField } from './workspace'
import { Data, getWorkspaceId, RateLimitter, Tx, Version } from '@hcengineering/core'
import { MinioService } from '@hcengineering/minio'
import { consoleModelLogger, MigrateOperation } from '@hcengineering/model'
import { type Data, getWorkspaceId, RateLimitter, type Tx, type Version } from '@hcengineering/core'
import { type MinioService } from '@hcengineering/minio'
import { consoleModelLogger, type MigrateOperation } from '@hcengineering/model'
import { openAIConfigDefaults } from '@hcengineering/openai'
import path from 'path'
import { benchmark } from './benchmark'
+11 -1
View File
@@ -1,4 +1,14 @@
import core, { Attribute, Data, Doc, DocumentUpdate, Hierarchy, ModelDb, Ref, Tx, Type } from '@hcengineering/core'
import core, {
type Attribute,
type Data,
type Doc,
type DocumentUpdate,
Hierarchy,
ModelDb,
type Ref,
type Tx,
type Type
} from '@hcengineering/core'
import { deepEqual } from 'fast-equals'
/**
+9 -9
View File
@@ -14,18 +14,18 @@
//
import core, {
AnyAttribute,
BackupClient,
Class,
type AnyAttribute,
type BackupClient,
type Class,
ClassifierKind,
Client as CoreClient,
Doc,
Domain,
type Client as CoreClient,
type Doc,
type Domain,
Hierarchy,
Obj,
Ref,
type Obj,
type Ref,
SortingOrder,
WorkspaceId
type WorkspaceId
} from '@hcengineering/core'
import { getWorkspaceDB } from '@hcengineering/mongo'
import { connect } from '@hcengineering/server-tool'
+4 -4
View File
@@ -14,14 +14,14 @@
// limitations under the License.
//
import { DOMAIN_TX, Ref, WorkspaceId } from '@hcengineering/core'
import { MinioService } from '@hcengineering/minio'
import { DOMAIN_TX, type Ref, type WorkspaceId } from '@hcengineering/core'
import { type MinioService } from '@hcengineering/minio'
import { DOMAIN_ATTACHMENT } from '@hcengineering/model-attachment'
import contact, { DOMAIN_CHANNEL } from '@hcengineering/model-contact'
import { DOMAIN_TELEGRAM } from '@hcengineering/model-telegram'
import { getWorkspaceDB } from '@hcengineering/mongo'
import telegram, { SharedTelegramMessage, SharedTelegramMessages } from '@hcengineering/telegram'
import { Document, MongoClient, UpdateFilter } from 'mongodb'
import telegram, { type SharedTelegramMessage, type SharedTelegramMessages } from '@hcengineering/telegram'
import { type Document, MongoClient, type UpdateFilter } from 'mongodb'
const LastMessages = 'last-msgs'
+10 -1
View File
@@ -1,4 +1,13 @@
import { AttachedData, AttachedDoc, Class, Doc, DocumentUpdate, Ref, Space, TxOperations } from '@hcengineering/core'
import {
type AttachedData,
type AttachedDoc,
type Class,
type Doc,
type DocumentUpdate,
type Ref,
type Space,
type TxOperations
} from '@hcengineering/core'
export async function findOrUpdateAttached<T extends AttachedDoc> (
client: TxOperations,
+4 -4
View File
@@ -16,11 +16,11 @@
import contact from '@hcengineering/contact'
import core, {
Client as CoreClient,
BackupClient,
type Client as CoreClient,
type BackupClient,
DOMAIN_TX,
Tx,
WorkspaceId,
type Tx,
type WorkspaceId,
type Ref,
type Doc
} from '@hcengineering/core'