diff --git a/common/scripts/version.txt b/common/scripts/version.txt index ab50fbb0e4..9ccacbd7cd 100644 --- a/common/scripts/version.txt +++ b/common/scripts/version.txt @@ -1 +1 @@ -"0.7.87" +"0.7.110" diff --git a/desktop/src/ui/platform.ts b/desktop/src/ui/platform.ts index 489aee08fd..cf307c2060 100644 --- a/desktop/src/ui/platform.ts +++ b/desktop/src/ui/platform.ts @@ -270,7 +270,7 @@ export async function configurePlatform (): Promise { setMetadata(github.metadata.GithubClientID, config.GITHUB_CLIENTID ?? '') setMetadata(github.metadata.GithubURL, config.GITHUB_URL ?? '') - setMetadata(communication.metadata.Enabled, config.COMMUNICATION_API_ENABLED) + setMetadata(communication.metadata.Enabled, config.COMMUNICATION_API_ENABLED === 'true') if (config.MODEL_VERSION != null) { console.log('Minimal Model version requirement', config.MODEL_VERSION) diff --git a/desktop/src/ui/types.ts b/desktop/src/ui/types.ts index dd8bca81c3..04ca2bf2ae 100644 --- a/desktop/src/ui/types.ts +++ b/desktop/src/ui/types.ts @@ -44,7 +44,7 @@ export interface Config { CALDAV_SERVER_URL?: string EXPORT_URL?: string MAIL_URL?: string - COMMUNICATION_API_ENABLED?: boolean + COMMUNICATION_API_ENABLED?: string } export interface Branding { diff --git a/dev/prod/public/config.json b/dev/prod/public/config.json index 590687fcaa..9f72ba38d4 100644 --- a/dev/prod/public/config.json +++ b/dev/prod/public/config.json @@ -25,5 +25,5 @@ "PUBLIC_SCHEDULE_URL": "http://huly.local:8060", "CALDAV_SERVER_URL": "http://huly.local:9070", "EXPORT_URL": "http://huly.local:4009", - "COMMUNICATION_API_ENABLED": true + "COMMUNICATION_API_ENABLED": "true" } diff --git a/dev/prod/src/platform.ts b/dev/prod/src/platform.ts index f7a7aa27aa..945bfba6cf 100644 --- a/dev/prod/src/platform.ts +++ b/dev/prod/src/platform.ts @@ -193,7 +193,7 @@ export interface Config { CALDAV_SERVER_URL?: string EXPORT_URL?: string MAIL_URL?: string, - COMMUNICATION_API_ENABLED?: boolean + COMMUNICATION_API_ENABLED?: string } export interface Branding { @@ -442,7 +442,7 @@ export async function configurePlatform() { setMetadata(presentation.metadata.MailUrl, config.MAIL_URL) setMetadata(recorder.metadata.StreamUrl, config.STREAM_URL) setMetadata(textEditor.metadata.Collaborator, config.COLLABORATOR) - setMetadata(communication.metadata.Enabled, config.COMMUNICATION_API_ENABLED) + setMetadata(communication.metadata.Enabled, config.COMMUNICATION_API_ENABLED === 'true') if (config.MODEL_VERSION != null) { console.log('Minimal Model version requirement', config.MODEL_VERSION) diff --git a/models/contact/src/migration.ts b/models/contact/src/migration.ts index 28f9340df6..24078f5589 100644 --- a/models/contact/src/migration.ts +++ b/models/contact/src/migration.ts @@ -459,6 +459,33 @@ async function createUserProfiles (client: MigrationClient): Promise { } } +async function fixSocialIdCase (client: MigrationClient): Promise { + const ctx = new MeasureMetricsContext('contact fixSocialIdCase', {}) + ctx.info('Fixing social id case...') + + const socialIds = await client.traverse(DOMAIN_CHANNEL, { + _class: contact.class.SocialIdentity + }) + + let updated = 0 + while (true) { + const docs = await socialIds.next(200) + if (docs === null || docs?.length === 0) { + break + } + + for (const d of docs) { + const newKey = d.key.toLowerCase() + const newVal = d.value.toLowerCase() + if (newKey !== d.key || newVal !== d.value) { + await client.update(DOMAIN_CHANNEL, { _id: d._id }, { key: newKey, value: newVal }) + updated++ + } + } + } + ctx.info('Finished fixing social id case. Total updated:', { updated }) +} + export const contactOperation: MigrateOperation = { async preMigrate (client: MigrationClient, logger: ModelLogger, mode): Promise { await tryMigrate(mode, client, contactId, [ @@ -640,6 +667,11 @@ export const contactOperation: MigrateOperation = { state: 'create-user-profiles', mode: 'upgrade', func: createUserProfiles + }, + { + state: 'fix-social-id-case', + mode: 'upgrade', + func: fixSocialIdCase } ]) }, diff --git a/models/love/src/index.ts b/models/love/src/index.ts index b04cc27484..22ef7df637 100644 --- a/models/love/src/index.ts +++ b/models/love/src/index.ts @@ -60,7 +60,8 @@ import { TypeRef, TypeString, UX, - TypeBoolean + TypeBoolean, + Hidden } from '@hcengineering/model' import calendar, { TEvent, TSchedule } from '@hcengineering/model-calendar' import core, { TAttachedDoc, TDoc } from '@hcengineering/model-core' @@ -110,6 +111,7 @@ export class TRoom extends TDoc implements Room { y!: number @Prop(TypeString(), love.string.Language, { editor: love.component.RoomLanguageEditor }) + @Hidden() language!: RoomLanguage @Prop(TypeBoolean(), love.string.StartWithTranscription) diff --git a/plugins/love-resources/src/components/ControlBar.svelte b/plugins/love-resources/src/components/ControlBar.svelte index b3f85026f7..587da92c8e 100644 --- a/plugins/love-resources/src/components/ControlBar.svelte +++ b/plugins/love-resources/src/components/ControlBar.svelte @@ -184,11 +184,11 @@ - + {#if room._id !== love.ids.Reception}