Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 36 additions & 2 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dev/prod/public/config-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"PUBLIC_SCHEDULE_URL": "https://schedule.hc.engineering",
"CALDAV_SERVER_URL": "https://caldav.hc.engineering",
"BACKUP_URL": "https://front.hc.engineering/api/backup",
"HULYLAKE_URL": "https://lake.hc.engineering",
"PULSE_URL": "wss://pulse.hc.engineering/ws",
"COMMUNICATION_API_ENABLED": "true",
"FILES_URL": "https://datalake.hc.engineering/blob/:workspace/:blobId/:filename"
Expand Down
14 changes: 9 additions & 5 deletions dev/tool/src/communication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// limitations under the License.

import { type Workspace } from '@hcengineering/account'
import { type HulylakeClient, type JsonPatch } from '@hcengineering/hulylake-client'
import { type HulylakeWorkspaceClient, type JsonPatch } from '@hcengineering/hulylake-client'
import type postgres from 'postgres'
import {
generateUuid,
Expand Down Expand Up @@ -60,7 +60,7 @@ export async function migrateWorkspaceMessages (
ws: Workspace,
card: CardID | undefined,
db: postgres.Sql,
hulylake: HulylakeClient,
hulylake: HulylakeWorkspaceClient,
accountClient: AccountClient,
personUuidBySocialId: Map<PersonId, PersonUuid>
): Promise<void> {
Expand All @@ -72,7 +72,7 @@ async function migrateMessages (
ws: Workspace,
card: CardID | undefined,
db: postgres.Sql,
hulylake: HulylakeClient,
hulylake: HulylakeWorkspaceClient,
accountClient: AccountClient,
personUuidBySocialId: Map<PersonId, PersonUuid>
): Promise<void> {
Expand Down Expand Up @@ -105,7 +105,7 @@ async function migrateMessages (
async function migrateMessagesBatch (
ctx: MeasureContext,
cardId: CardID,
hulylake: HulylakeClient,
hulylake: HulylakeWorkspaceClient,
accountClient: AccountClient,
personUuidBySocialId: Map<PersonId, PersonUuid>,
messages: OldMessage[]
Expand Down Expand Up @@ -161,7 +161,11 @@ async function migrateMessagesBatch (
}
}

async function getGroups (ctx: MeasureContext, hulylake: HulylakeClient, cardId: CardID): Promise<MessagesGroup[]> {
async function getGroups (
ctx: MeasureContext,
hulylake: HulylakeWorkspaceClient,
cardId: CardID
): Promise<MessagesGroup[]> {
const res = await hulylake.getJson<MessagesGroupsDoc>(`${cardId}/messages/groups`, {
maxRetries: 3,
isRetryable: () => true,
Expand Down
2 changes: 1 addition & 1 deletion dev/tool/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import {
type Account as OldAccount,
type Workspace as OldWorkspace
} from '@hcengineering/account-service'
import { getClient as getHulylakeClient } from '@hcengineering/hulylake-client'
import { getWorkspaceClient as getHulylakeClient } from '@hcengineering/hulylake-client'
import {
getDBClient,
createPostgreeDestroyAdapter,
Expand Down
Loading
Loading