diff --git a/models/contact/src/index.ts b/models/contact/src/index.ts index 296cbc74b4..62c44fdcac 100644 --- a/models/contact/src/index.ts +++ b/models/contact/src/index.ts @@ -92,9 +92,6 @@ export class TContact extends TDoc implements Contact { @Prop(TypeString(), contact.string.Location) @Index(IndexKind.FullText) city!: string - - @Prop(TypeRef(core.class.Class), core.string.ClassLabel) - declare _class: Ref> } @Model(contact.class.Channel, core.class.AttachedDoc, DOMAIN_CHANNEL) diff --git a/models/document/src/index.ts b/models/document/src/index.ts index 7d437fb824..86815713c8 100644 --- a/models/document/src/index.ts +++ b/models/document/src/index.ts @@ -14,7 +14,7 @@ // import contact, { Employee } from '@hcengineering/contact' -import type { Class, Domain, Markup, Ref } from '@hcengineering/core' +import type { Domain, Markup, Ref } from '@hcengineering/core' import { IndexKind } from '@hcengineering/core' import { Document, documentId, DocumentVersion, RichDocumentContent, Step } from '@hcengineering/document' import { @@ -86,9 +86,6 @@ export class TDocument extends TDoc implements Document { @Prop(Collection(tags.class.TagReference), document.string.Labels) labels?: number - @Prop(TypeRef(core.class.Class), core.string.ClassLabel) - declare _class: Ref> - @Prop(TypeNumber(), document.string.Revision) @ReadOnly() @Hidden() diff --git a/models/lead/src/index.ts b/models/lead/src/index.ts index 26572e6d35..7321fdb56b 100644 --- a/models/lead/src/index.ts +++ b/models/lead/src/index.ts @@ -15,7 +15,7 @@ // To help typescript locate view plugin properly import type { Employee } from '@hcengineering/contact' -import { Class, Doc, FindOptions, IndexKind, Ref } from '@hcengineering/core' +import { Doc, FindOptions, IndexKind, Ref } from '@hcengineering/core' import { Customer, Funnel, Lead, leadId } from '@hcengineering/lead' import { Builder, @@ -24,9 +24,9 @@ import { Mixin, Model, Prop, + TypeMarkup, TypeRef, TypeString, - TypeMarkup, UX } from '@hcengineering/model' import attachment from '@hcengineering/model-attachment' @@ -34,7 +34,7 @@ import chunter from '@hcengineering/model-chunter' import contact, { TContact } from '@hcengineering/model-contact' import core from '@hcengineering/model-core' import task, { actionTemplates, TSpaceWithStates, TTask } from '@hcengineering/model-task' -import view, { createAction, actionTemplates as viewTemplates } from '@hcengineering/model-view' +import view, { actionTemplates as viewTemplates, createAction } from '@hcengineering/model-view' import workbench from '@hcengineering/model-workbench' import setting from '@hcengineering/setting' import lead from './plugin' @@ -82,9 +82,6 @@ export class TCustomer extends TContact implements Customer { @Prop(TypeMarkup(), core.string.Description) @Index(IndexKind.FullText) description!: string - - @Prop(TypeRef(core.class.Class), core.string.ClassLabel) - declare _class: Ref> } export function createModel (builder: Builder): void { diff --git a/plugins/view-resources/src/components/filter/FilterBar.svelte b/plugins/view-resources/src/components/filter/FilterBar.svelte index 724728af80..65420e89eb 100644 --- a/plugins/view-resources/src/components/filter/FilterBar.svelte +++ b/plugins/view-resources/src/components/filter/FilterBar.svelte @@ -176,7 +176,6 @@ {#if !loading} {#each $filterStore as filter, i} { makeQuery(query, $filterStore) diff --git a/plugins/view-resources/src/components/filter/FilterSection.svelte b/plugins/view-resources/src/components/filter/FilterSection.svelte index d6a4cb1197..d2ee342444 100644 --- a/plugins/view-resources/src/components/filter/FilterSection.svelte +++ b/plugins/view-resources/src/components/filter/FilterSection.svelte @@ -23,7 +23,6 @@ import { createEventDispatcher, onDestroy } from 'svelte' import view from '../../plugin' - // export let _class: Ref> export let filter: Filter $: currentFilter = filter.nested ? filter.nested : filter diff --git a/server/mongo/src/storage.ts b/server/mongo/src/storage.ts index 3cea516f21..797e6c787e 100644 --- a/server/mongo/src/storage.ts +++ b/server/mongo/src/storage.ts @@ -119,7 +119,7 @@ abstract class MongoAdapterBase extends TxProcessor { const classes = this.hierarchy.getDescendants(baseClass) // Only replace if not specified - if (translated._class?.$in === undefined) { + if (translated._class === undefined) { translated._class = { $in: classes } }