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

@ -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: {

View File

@ -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

View File

@ -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

View File

@ -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: {