Deprecate Probability field on Opportunity (#6207)
Closes #5735. The field probability on opportunity will - - stop being created for new workspaces (after this PR is merged) - have "isCustom" value set to true and be displayed as such in the settings (after this PR is merged + sync-metadata is run on workspace) - still show in the views (all the time) This field is deprecated as a standard field but not replaced by another one, so we are not adding the `(deprecated)` suffix in the label.
This commit is contained in:
@ -96,18 +96,6 @@ export class CompanyWorkspaceEntity extends BaseWorkspaceEntity {
|
||||
@WorkspaceIsNullable()
|
||||
annualRecurringRevenue: CurrencyMetadata | null;
|
||||
|
||||
@WorkspaceField({
|
||||
standardId: COMPANY_STANDARD_FIELD_IDS.address_deprecated,
|
||||
type: FieldMetadataType.TEXT,
|
||||
label: 'Address (deprecated) ',
|
||||
description:
|
||||
"This standard field has been deprecated and migrated as a custom field. Please consider using the new 'address' field type.",
|
||||
icon: 'IconMap',
|
||||
})
|
||||
@WorkspaceIsDeprecated()
|
||||
@WorkspaceIsNullable()
|
||||
address_old: string;
|
||||
|
||||
@WorkspaceField({
|
||||
standardId: COMPANY_STANDARD_FIELD_IDS.address,
|
||||
type: FieldMetadataType.ADDRESS,
|
||||
@ -231,4 +219,16 @@ export class CompanyWorkspaceEntity extends BaseWorkspaceEntity {
|
||||
@WorkspaceIsNullable()
|
||||
@WorkspaceIsSystem()
|
||||
timelineActivities: Relation<TimelineActivityWorkspaceEntity[]>;
|
||||
|
||||
@WorkspaceField({
|
||||
standardId: COMPANY_STANDARD_FIELD_IDS.address_deprecated,
|
||||
type: FieldMetadataType.TEXT,
|
||||
label: 'Address (deprecated) ',
|
||||
description:
|
||||
'Address of the company - deprecated in favor of new address field',
|
||||
icon: 'IconMap',
|
||||
})
|
||||
@WorkspaceIsDeprecated()
|
||||
@WorkspaceIsNullable()
|
||||
addressOld: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user