UBERF-11415: Optimise contact UI stores (#9185)

This commit is contained in:
Alexey Zinoviev
2025-06-10 09:44:14 +07:00
committed by GitHub
parent f1c76f6846
commit 4bf8176bad
115 changed files with 1838 additions and 943 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
./tool-local.sh create-account user1 -f John -l Appleseed -p 1234
./tool-local.sh create-account user2 -f Kainin -l Dirak -p 1234
./tool-local.sh create-workspace sanity-ws email:user1
./tool-local.sh create-workspace sanity-ws email:user1 -r cockroach
# Restore workspace contents in mongo/elastic
./tool-local.sh backup-restore ./sanity-ws sanity-ws
+2 -2
View File
@@ -21,9 +21,9 @@
"test": "",
"uitest": "cross-env LOCAL_URL=http://localhost:3003/ DEV_URL= playwright test -c ./tests/playwright.config.ts",
"staging-uitest": "cross-env PLATFORM_URI=https://front.hc.engineering/ playwright test -c ./tests/playwright.config.ts --grep @staging",
"dev-uitest": "cross-env PLATFORM_URI=http://localhost:8080 PLATFORM_TRANSACTOR=ws://localhost:3333 DEV_URL=http://localhost:8080/account playwright test -c ./tests/playwright.config.ts",
"dev-uitest": "cross-env PLATFORM_URI=http://huly.local:8080 PLATFORM_TRANSACTOR=ws://huly.local:3332 WORKSPACE_REGION=cockroach DEV_URL=http://huly.local:8080/account playwright test -c ./tests/playwright.config.ts",
"debug": "cross-env LOCAL_URL=http://localhost:3003/ DEV_URL= playwright test -c ./tests/playwright.config.ts --debug --headed",
"dev-debug": "cross-env PLATFORM_URI=http://localhost:8080 PLATFORM_TRANSACTOR=ws://localhost:3333 playwright test -c ./tests/playwright.config.ts --debug --headed",
"dev-debug": "cross-env PLATFORM_URI=http://huly.local:8080 PLATFORM_TRANSACTOR=ws://huly.local:3332 WORKSPACE_REGION=cockroach playwright test -c ./tests/playwright.config.ts --debug --headed",
"codegen": "playwright codegen --load-storage storage.json http://localhost:8083/workbench/sanity-ws/",
"dev-codegen": "cross-env playwright codegen --load-storage storage-dev.json http://localhost:8080/workbench/sanity-ws/",
"allure:generate": "allure generate allure-results -o allure-report --clean"
+2 -2
View File
@@ -1,6 +1,6 @@
import type { WorkspaceInfoWithStatus, WorkspaceLoginInfo } from '@hcengineering/account'
import { APIRequestContext } from '@playwright/test'
import { DevUrl, LocalUrl, PlatformURI } from '../utils'
import { DevUrl, LocalUrl, PlatformURI, PlatformWorkspaceRegion } from '../utils'
export class ApiEndpoint {
private readonly request: APIRequestContext
@@ -51,7 +51,7 @@ export class ApiEndpoint {
const url = this.baseUrl
const payload = {
method: 'createWorkspace',
params: { workspaceName }
params: { workspaceName, region: PlatformWorkspaceRegion }
}
const headers = this.getDefaultHeaders(token)
const response = await this.request.post(url, { data: payload, headers })
+1
View File
@@ -18,6 +18,7 @@ export const PlatformAdmin = process.env.PLATFORM_ADMIN as string
export const PlatformWs = process.env.PLATFORM_WS as string
export const PlatformSetting = process.env.SETTING as string
export const PlatformSettingSecond = process.env.SETTING_SECOND as string
export const PlatformWorkspaceRegion = process.env.WORKSPACE_REGION as string
export const DefaultWorkspace = 'sanity-ws'
export const LocalUrl = process.env.LOCAL_URL as string
+3 -3
View File
@@ -3,10 +3,10 @@ export MINIO_ACCESS_KEY=minioadmin
export MINIO_SECRET_KEY=minioadmin
export MINIO_ENDPOINT=localhost:9000
export MONGO_URL=mongodb://localhost:27017
export DB_URL=mongodb://localhost:27017
export ACCOUNT_DB_URL=mongodb://localhost:27017
export DB_URL=postgresql://root@localhost:26257/defaultdb?sslmode=disable
export ACCOUNT_DB_URL=postgresql://root@localhost:26257/defaultdb?sslmode=disable
export ACCOUNTS_URL=http://localhost:3000
export TRANSACTOR_URL=ws://localhost:3333
export TRANSACTOR_URL="ws://huly.local:3333,ws://huly.local:3332;;cockroach"
export ELASTIC_URL=http://localhost:9200
export SERVER_SECRET=secret
export QUEUE_CONFIG=localhost:19092