Remove deprecated EMAIL, PHONE, LINK (#7551)

In this PR:
- remove deprecated EMAIL, PHONE, LINK field types (except for Zapier
package as there is another work ongoing)
- remove composite currency filter on currencyCode, actor filter on name
and workspaceMember as the UX is not great yet
This commit is contained in:
Charles Bochet
2024-10-10 14:14:58 +02:00
committed by GitHub
parent a7d5aa933d
commit a58236e6da
87 changed files with 75 additions and 2746 deletions

View File

@ -32,10 +32,7 @@ export class MessageParticipantPersonListener {
>,
) {
for (const eventPayload of payload.events) {
if (
!eventPayload.properties.after.emails?.primaryEmail &&
!eventPayload.properties.after.email
) {
if (!eventPayload.properties.after.emails?.primaryEmail) {
continue;
}
@ -43,9 +40,7 @@ export class MessageParticipantPersonListener {
MessageParticipantMatchParticipantJob.name,
{
workspaceId: payload.workspaceId,
email:
eventPayload.properties.after.emails?.primaryEmail ??
eventPayload.properties.after.email,
email: eventPayload.properties.after.emails?.primaryEmail,
personId: eventPayload.recordId,
},
);
@ -60,10 +55,6 @@ export class MessageParticipantPersonListener {
) {
for (const eventPayload of payload.events) {
if (
objectRecordUpdateEventChangedProperties(
eventPayload.properties.before,
eventPayload.properties.after,
).includes('email') ||
objectRecordUpdateEventChangedProperties(
eventPayload.properties.before,
eventPayload.properties.after,
@ -73,9 +64,7 @@ export class MessageParticipantPersonListener {
MessageParticipantUnmatchParticipantJob.name,
{
workspaceId: payload.workspaceId,
email:
eventPayload.properties.before.emails?.primaryEmail ??
eventPayload.properties.before.email,
email: eventPayload.properties.before.emails?.primaryEmail,
personId: eventPayload.recordId,
},
);
@ -84,9 +73,7 @@ export class MessageParticipantPersonListener {
MessageParticipantMatchParticipantJob.name,
{
workspaceId: payload.workspaceId,
email:
eventPayload.properties.after.emails?.primaryEmail ??
eventPayload.properties.after.email,
email: eventPayload.properties.after.emails?.primaryEmail,
personId: eventPayload.recordId,
},
);