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 CalendarEventParticipantPersonListener {
>,
) {
for (const eventPayload of payload.events) {
if (
eventPayload.properties.after.emails?.primaryEmail === null &&
eventPayload.properties.after.email === null
) {
if (eventPayload.properties.after.emails?.primaryEmail === null) {
continue;
}
@ -44,9 +41,7 @@ export class CalendarEventParticipantPersonListener {
CalendarEventParticipantMatchParticipantJob.name,
{
workspaceId: payload.workspaceId,
email:
eventPayload.properties.after.emails?.primaryEmail ??
eventPayload.properties.after.email, // TODO
email: eventPayload.properties.after.emails?.primaryEmail,
personId: eventPayload.recordId,
},
);
@ -64,16 +59,14 @@ export class CalendarEventParticipantPersonListener {
objectRecordUpdateEventChangedProperties(
eventPayload.properties.before,
eventPayload.properties.after,
).includes('email')
).includes('emails')
) {
// TODO: modify this job to take an array of participants to match
await this.messageQueueService.add<CalendarEventParticipantUnmatchParticipantJobData>(
CalendarEventParticipantUnmatchParticipantJob.name,
{
workspaceId: payload.workspaceId,
email:
eventPayload.properties.before.emails?.primaryEmail ??
eventPayload.properties.before.email,
email: eventPayload.properties.before.emails?.primaryEmail,
personId: eventPayload.recordId,
},
);
@ -82,9 +75,7 @@ export class CalendarEventParticipantPersonListener {
CalendarEventParticipantMatchParticipantJob.name,
{
workspaceId: payload.workspaceId,
email:
eventPayload.properties.after.emails?.primaryEmail ??
eventPayload.properties.after.email,
email: eventPayload.properties.after.emails?.primaryEmail,
personId: eventPayload.recordId,
},
);