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:
Marie
2024-07-11 14:50:33 +02:00
committed by GitHub
parent 8e25a107fd
commit 5ebde33f5f
12 changed files with 34 additions and 111 deletions

View File

@ -5567,29 +5567,6 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"toRelationMetadata": null
}
},
{
"__typename": "fieldEdge",
"node": {
"__typename": "field",
"id": "dd99cf8d-a10c-4d41-8469-6b5e03e5ae2e",
"type": "TEXT",
"name": "probability",
"label": "Probability",
"description": "Opportunity probability",
"icon": "IconProgressCheck",
"isCustom": false,
"isActive": true,
"isSystem": false,
"isNullable": false,
"createdAt": "2024-06-07T09:05:12.599Z",
"updatedAt": "2024-06-07T09:05:12.599Z",
"defaultValue": "'0'",
"options": null,
"relationDefinition": null,
"fromRelationMetadata": null,
"toRelationMetadata": null
}
},
{
"__typename": "fieldEdge",
"node": {

View File

@ -142,14 +142,6 @@ export const mockedViewFieldsData = [
isVisible: true,
size: 180,
},
{
id: 'e5a731bb-82b9-4abe-ad22-1ddea94722f9',
fieldMetadataId: 'probability',
viewId: mockedViewsData[2].id,
position: 1,
isVisible: true,
size: 150,
},
{
id: '3159acd8-463f-458d-bf9a-af8ac6f57dc0',
fieldMetadataId: 'closeDate',