Bump tags version and migrations other fix (#1687)

This commit is contained in:
Denis Bykhov 2022-05-06 18:06:14 +06:00 committed by GitHub
parent 134e0a7926
commit 50ad39d037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 23 additions and 11 deletions

View File

@ -112,7 +112,7 @@
"@anticrm/core": "~0.6.16", "@anticrm/core": "~0.6.16",
"@anticrm/rekoni": "~0.6.0", "@anticrm/rekoni": "~0.6.0",
"@anticrm/tags-assets": "~0.6.0", "@anticrm/tags-assets": "~0.6.0",
"@anticrm/tags": "~0.6.1", "@anticrm/tags": "~0.6.2",
"@anticrm/tags-resources": "~0.6.0", "@anticrm/tags-resources": "~0.6.0",
"@anticrm/server-chunter": "~0.6.0", "@anticrm/server-chunter": "~0.6.0",
"@anticrm/server-chunter-resources": "~0.6.0", "@anticrm/server-chunter-resources": "~0.6.0",

View File

@ -103,6 +103,6 @@
"@anticrm/server-telegram-resources": "~0.6.0", "@anticrm/server-telegram-resources": "~0.6.0",
"@anticrm/rekoni": "~0.6.0", "@anticrm/rekoni": "~0.6.0",
"request": "~2.88.2", "request": "~2.88.2",
"@anticrm/tags": "~0.6.1" "@anticrm/tags": "~0.6.2"
} }
} }

View File

@ -30,6 +30,6 @@
"@anticrm/platform": "~0.6.6", "@anticrm/platform": "~0.6.6",
"@anticrm/server-tags": "~0.6.0", "@anticrm/server-tags": "~0.6.0",
"@anticrm/server-core": "~0.6.1", "@anticrm/server-core": "~0.6.1",
"@anticrm/tags": "~0.6.1" "@anticrm/tags": "~0.6.2"
} }
} }

View File

@ -29,7 +29,7 @@
"@anticrm/model": "~0.6.0", "@anticrm/model": "~0.6.0",
"@anticrm/core": "~0.6.16", "@anticrm/core": "~0.6.16",
"@anticrm/platform": "~0.6.6", "@anticrm/platform": "~0.6.6",
"@anticrm/tags": "~0.6.1", "@anticrm/tags": "~0.6.2",
"@anticrm/tags-resources": "~0.6.0", "@anticrm/tags-resources": "~0.6.0",
"@anticrm/ui": "~0.6.0", "@anticrm/ui": "~0.6.0",
"@anticrm/model-core": "~0.6.0", "@anticrm/model-core": "~0.6.0",

View File

@ -1,9 +1,21 @@
import core, { TxOperations } from '@anticrm/core' import core, { TxOperations } from '@anticrm/core'
import { MigrateOperation, MigrationClient, MigrationUpgradeClient } from '@anticrm/model' import { MigrateOperation, MigrationClient, MigrationUpgradeClient } from '@anticrm/model'
import { DOMAIN_TAGS } from './index'
import tags from './plugin' import tags from './plugin'
export const tagsOperation: MigrateOperation = { export const tagsOperation: MigrateOperation = {
async migrate (client: MigrationClient): Promise<void> {}, async migrate (client: MigrationClient): Promise<void> {
await client.update(
DOMAIN_TAGS,
{
_class: tags.class.TagElement,
category: 'tags:category:Other'
},
{
category: 'recruit:category:Other'
}
)
},
async upgrade (client: MigrationUpgradeClient): Promise<void> { async upgrade (client: MigrationUpgradeClient): Promise<void> {
const tx = new TxOperations(client, core.account.System) const tx = new TxOperations(client, core.account.System)
const current = await tx.findOne(core.class.Space, { const current = await tx.findOne(core.class.Space, {

View File

@ -55,7 +55,7 @@
"@anticrm/contact-resources": "~0.6.0", "@anticrm/contact-resources": "~0.6.0",
"@anticrm/rekoni": "~0.6.0", "@anticrm/rekoni": "~0.6.0",
"@anticrm/notification": "~0.6.0", "@anticrm/notification": "~0.6.0",
"@anticrm/tags": "~0.6.1", "@anticrm/tags": "~0.6.2",
"@anticrm/calendar": "~0.6.0" "@anticrm/calendar": "~0.6.0"
} }
} }

View File

@ -30,6 +30,6 @@
}, },
"dependencies": { "dependencies": {
"@anticrm/platform": "~0.6.6", "@anticrm/platform": "~0.6.6",
"@anticrm/tags": "~0.6.1" "@anticrm/tags": "~0.6.2"
} }
} }

View File

@ -33,7 +33,7 @@
"dependencies": { "dependencies": {
"@anticrm/platform": "~0.6.6", "@anticrm/platform": "~0.6.6",
"svelte": "^3.47", "svelte": "^3.47",
"@anticrm/tags": "~0.6.1", "@anticrm/tags": "~0.6.2",
"@anticrm/ui": "~0.6.0", "@anticrm/ui": "~0.6.0",
"@anticrm/presentation": "~0.6.2", "@anticrm/presentation": "~0.6.2",
"@anticrm/core": "~0.6.16", "@anticrm/core": "~0.6.16",

View File

@ -1,6 +1,6 @@
{ {
"name": "@anticrm/tags", "name": "@anticrm/tags",
"version": "0.6.1", "version": "0.6.2",
"main": "lib/index.js", "main": "lib/index.js",
"author": "Anticrm Platform Contributors", "author": "Anticrm Platform Contributors",
"license": "EPL-2.0", "license": "EPL-2.0",

View File

@ -48,7 +48,7 @@
"@anticrm/chunter-resources": "~0.6.0", "@anticrm/chunter-resources": "~0.6.0",
"@anticrm/workbench": "~0.6.1", "@anticrm/workbench": "~0.6.1",
"@anticrm/notification": "~0.6.0", "@anticrm/notification": "~0.6.0",
"@anticrm/tags": "~0.6.1", "@anticrm/tags": "~0.6.2",
"@anticrm/kanban": "~0.6.0" "@anticrm/kanban": "~0.6.0"
} }
} }

View File

@ -29,6 +29,6 @@
"@anticrm/core": "~0.6.16", "@anticrm/core": "~0.6.16",
"@anticrm/platform": "~0.6.6", "@anticrm/platform": "~0.6.6",
"@anticrm/server-core": "~0.6.1", "@anticrm/server-core": "~0.6.1",
"@anticrm/tags": "~0.6.1" "@anticrm/tags": "~0.6.2"
} }
} }