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:
@ -466,23 +466,6 @@ export const getObjectMetadataItemsMock = () => {
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
},
|
||||
{
|
||||
__typename: 'field',
|
||||
id: '20202020-3b9c-4e58-a3d2-c617d3b596b1',
|
||||
type: 'TEXT',
|
||||
name: 'probability',
|
||||
label: 'Probability',
|
||||
description: 'Opportunity probability',
|
||||
icon: 'IconProgressCheck',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: false,
|
||||
isNullable: true,
|
||||
createdAt: '2023-11-30T11:13:15.308Z',
|
||||
updatedAt: '2023-11-30T11:13:15.308Z',
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
},
|
||||
{
|
||||
__typename: 'fieldEdge',
|
||||
node: {
|
||||
|
||||
@ -27,7 +27,6 @@ export const query = gql`
|
||||
updatedAt
|
||||
companyId
|
||||
stage
|
||||
probability
|
||||
closeDate
|
||||
amount {
|
||||
amountMicros
|
||||
@ -53,7 +52,6 @@ export const query = gql`
|
||||
updatedAt
|
||||
companyId
|
||||
stage
|
||||
probability
|
||||
closeDate
|
||||
amount {
|
||||
amountMicros
|
||||
|
||||
@ -25,7 +25,6 @@ export const query = gql`
|
||||
updatedAt
|
||||
companyId
|
||||
stage
|
||||
probability
|
||||
closeDate
|
||||
amount {
|
||||
amountMicros
|
||||
@ -50,7 +49,6 @@ export const query = gql`
|
||||
updatedAt
|
||||
companyId
|
||||
stage
|
||||
probability
|
||||
closeDate
|
||||
amount {
|
||||
amountMicros
|
||||
|
||||
@ -415,7 +415,6 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
|
||||
node: {
|
||||
__typename: 'Opportunity',
|
||||
id: '53f66647-0543-4cc2-9f96-95cc699960f2',
|
||||
probability: '0.5',
|
||||
pointOfContactId: '93c72d2e-f517-42fd-80ae-14173b3b70ae',
|
||||
stage: 'NEW',
|
||||
amount: {
|
||||
@ -633,7 +632,6 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
|
||||
node: {
|
||||
__typename: 'Opportunity',
|
||||
id: '81ab695d-2f89-406f-90ea-180f433b2445',
|
||||
probability: '0.5',
|
||||
stage: 'NEW',
|
||||
pointOfContactId: '9b324a88-6784-4449-afdf-dc62cb8702f2',
|
||||
amount: {
|
||||
@ -653,7 +651,6 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
|
||||
node: {
|
||||
__typename: 'Opportunity',
|
||||
id: '9b059852-35b1-4045-9cde-42f715148954',
|
||||
probability: '0.5',
|
||||
stage: 'NEW',
|
||||
pointOfContactId: '98406e26-80f1-4dff-b570-a74942528de3',
|
||||
amount: {
|
||||
@ -1221,7 +1218,6 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
|
||||
node: {
|
||||
__typename: 'Opportunity',
|
||||
id: '7c887ee3-be10-412b-a663-16bd3c2228e1',
|
||||
probability: '0.5',
|
||||
stage: 'NEW',
|
||||
pointOfContactId: '86083141-1c0e-494c-a1b6-85b1c6fefaa5',
|
||||
amount: {
|
||||
|
||||
@ -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": {
|
||||
|
||||
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user