0f2ea47335
# Introduction This PR https://github.com/twentyhq/twenty/pull/21964 introduces a search field metadata workspace command backfill that will recompute all the standard search field metadata but only for the searchable object Whereas the non searchable object still have a search vector as they can still be searched but internally Preserving their search vector by computing their search field metadata <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/twentyhq/twenty/pull/22063?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
23 lines
1.3 KiB
TypeScript
23 lines
1.3 KiB
TypeScript
import { type MessageParticipantRole } from 'twenty-shared/types';
|
|
|
|
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
|
|
import { type MessageCampaignWorkspaceEntity } from 'src/modules/emailing/standard-objects/message-campaign.workspace-entity';
|
|
import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
|
|
import { type MessageWorkspaceEntity } from 'src/modules/messaging/common/standard-objects/message.workspace-entity';
|
|
import { type PersonWorkspaceEntity } from 'src/modules/person/standard-objects/person.workspace-entity';
|
|
import { type WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/standard-objects/workspace-member.workspace-entity';
|
|
|
|
export class MessageParticipantWorkspaceEntity extends BaseWorkspaceEntity {
|
|
role: MessageParticipantRole;
|
|
handle: string | null;
|
|
displayName: string | null;
|
|
message: EntityRelation<MessageWorkspaceEntity>;
|
|
messageId: string;
|
|
person: EntityRelation<PersonWorkspaceEntity> | null;
|
|
personId: string | null;
|
|
workspaceMember: EntityRelation<WorkspaceMemberWorkspaceEntity> | null;
|
|
workspaceMemberId: string | null;
|
|
messageCampaign: EntityRelation<MessageCampaignWorkspaceEntity> | null;
|
|
messageCampaignId: string | null;
|
|
}
|