bosiraphael
5a72b949d7
6382 create a command to add a uservar in the key value pair table for every account which needs to reconnect ( #6553 )
...
Closes #6382
Create SetUserVarsAccountsToReconnectCommand.
This command loops on all workspaces and:
- deletes all user vars with deprecated key `ACCOUNTS_TO_RECONNECT`
- creates a key value pair of type `USER_VAR` with a key of
`ACCOUNTS_TO_RECONNECT_INSUFFICIENT_PERMISSIONS` for all connect
accounts with a message channel or calendar channel with status
`FAILED_INSUFFICIENT_PERMISSIONS`
2024-08-07 11:43:18 +02:00
bosiraphael and Weiko
018b8220dc
Remove message thread id from mcma and update scripts ( #6500 )
...
- Remove `messageThreadId` from `messageChannelMessageAssociation`
- Update thread merging
- Update all queries which were dependent on this field
- Update some raw queries by using `twentyORM` instead
---------
Co-authored-by: Weiko <corentin@twenty.com >
2024-08-06 18:19:59 +02:00
bosiraphael
2073d8e6e1
6446 improve information banner component to make it scale better ( #6545 )
...
Closes #6446
2024-08-05 16:00:52 +02:00
bosiraphael
77152a10b1
Fix company creation duplicate on email sync after introducing links type ( #6460 )
...
- Introduce `extractDomainFromLink`
- Use is inside `create-company.service`
2024-07-30 18:10:36 +02:00
bosiraphael and Charles Bochet
cd4263f7fd
6431 create new field activationStatus inside workspace table ( #6439 )
...
Closes #6431
- create new field `activationStatus`
- create migration commands
- add logic to update `activationStatus` on workspace activation and on
stripe subscriptionStatus change
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-30 12:36:39 +02:00
bosiraphael and Charles Bochet
6728e40256
5899 display a banner to alert users which need to reconnect their account ( #6301 )
...
Closes #5899
<img width="1280" alt="Index - banner"
src="https://github.com/twentyhq/twenty/assets/71827178/313cf20d-eb34-496a-8c7c-7589fbd55954 ">
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-27 18:34:52 +02:00
bosiraphael and Charles Bochet
d0db3b765f
6255 move services from messaging common module into the correct module and refactor them ( #6409 )
...
Closes #6255
- Move files from `messaging/common` into the correct module
- Remove common module between calendar and messaging
`calendar-messaging-participant-manager`
- Update and fix massaging and calendar participant matching
- Create `MatchParticipantModule`
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-27 12:29:02 +02:00
bosiraphael
b31153105f
Fix participant chip ( #6411 )
...
- Fix gap
- Modify query to retrieve person and workspaceMember to display a
record chip inside the message right drawer
Before:
<img width="74" alt="Capture d’écran 2024-07-25 à 17 14 57"
src="https://github.com/user-attachments/assets/b37e19d0-8efb-408d-aba7-66d9a7cca433 ">
<img width="105" alt="Capture d’écran 2024-07-25 à 17 14 40"
src="https://github.com/user-attachments/assets/f6d4b164-279b-4be3-ac66-6b613a3f3144 ">
After:
<img width="126" alt="Capture d’écran 2024-07-25 à 17 13 53"
src="https://github.com/user-attachments/assets/97059253-6f5d-4f8c-b2b6-acd614862801 ">
<img width="67" alt="Capture d’écran 2024-07-25 à 17 14 18"
src="https://github.com/user-attachments/assets/0808a354-1c97-4bb6-8cf7-9d4c10c3a4d4 ">
2024-07-25 17:24:51 +02:00
bosiraphael
3566e0bdc2
Create command to migrate message channel sync stage enum ( #6280 )
...
Create command to migrate message channel sync stage enum
2024-07-16 13:21:40 +02:00
bosiraphael
d216bfdd4e
6254 double creation of contacts when updating calendar event participants ( #6269 )
...
Closes #6254
2024-07-16 10:47:18 +02:00
bosiraphael
2218e20595
Fix calendar events right drawer empty fields ( #6271 )
...
Fix calendar events right drawer empty fields
2024-07-16 10:30:18 +02:00
bosiraphael and Charles Bochet
11da718482
Refactor connected account module ( #6225 )
...
- Refactor connected account module
- Move blocklist into it's own module
- Move contact-creation-manager into it's own module
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-12 20:15:33 +02:00
bosiraphael and Charles Bochet
c8a889995f
Add error handling service for calendar import ( #6203 )
...
Add error handling service for calendar import
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-12 18:56:45 +02:00
bosiraphael and Charles Bochet
52aa9abd73
Remove old message channel sync statuses and create migration command ( #6177 )
...
Remove old message channel sync statuses and create migration command
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-12 18:36:42 +02:00
bosiraphael
faf462ffe4
Fix address field in raw query ( #6226 )
...
The old address field has been deprecated but the raw query in
company.repository hasn't been updated accordingly
2024-07-11 19:48:15 +02:00
bosiraphael
5cb7f68b7c
Update privacy policy links ( #6206 )
...
<img width="398" alt="Capture d’écran 2024-07-10 à 18 25 15"
src="https://github.com/twentyhq/twenty/assets/71827178/30baace7-b863-49b0-bc91-a5bc33737859 ">
2024-07-11 17:13:04 +02:00
bosiraphael
28387003d2
Fix contact creation and rename email aliases to handle aliases ( #6176 )
...
Fix contact creation (linked to #6162 ) and rename email aliases to
handle aliases
2024-07-09 17:49:03 +02:00
bosiraphael
37fb88c533
Modify messaging message channel sync status monitoring cron pattern ( #6173 )
...
Change from every hour to every 10 minutes, starting at 2 minutes past
the hour
2024-07-09 14:42:57 +02:00
bosiraphael
5638af4385
Fix wrong email direction ( #6163 )
...
Closes #6162
2024-07-08 17:55:49 +02:00
bosiraphael
f458322303
Refactor calendar to use new sync statuses and stages ( #6141 )
...
- Refactor calendar modules and some messaging modules to better
organize them by business rules and decouple them
- Work toward a common architecture for the different calendar providers
by introducing interfaces for the drivers
- Modify cron job to use the new sync statuses and stages
2024-07-08 17:01:06 +02:00
bosiraphael
ef849d316f
Small fixes on accounts settings ( #6157 )
...
- Add keys in components map
2024-07-08 12:00:00 +02:00
bosiraphael
a163ccced6
Fix calendar import cron job ( #6096 )
...
An error was introduced in the calendar cron job because we tried to
inject the workspace context inside the calendarChannelRepository where
we didn't have access to that context.
2024-07-02 16:51:10 +02:00
bosiraphael and Charles Bochet
8c33d91734
5748 Create contacts for emails sent and received by email aliases ( #5855 )
...
Closes #5748
- Create feature flag
- Add scope `https://www.googleapis.com/auth/profile.emails.read ` when
connecting an account
- Get email aliases with google people API, store them in
connectedAccount and refresh them before each message-import
- Update the contact creation logic accordingly
- Refactor
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-01 14:21:34 +02:00
bosiraphael
1a66db5bff
Refactor messaging refresh access token ( #6034 )
...
- Put error handling outside of `refreshAndSaveAccessToken`
- return after failing to refresh access token in
`processMessageBatchImport`
- remove unnecessary token refresh in `processMessageListFetch`
2024-06-27 17:07:45 +02:00
bosiraphael
4f9527c860
5901 refactor email and calendar auto contact creation to create them by batch ( #6038 )
...
Closes #5901
2024-06-27 16:37:34 +02:00
bosiraphael
d1bb0fb822
Change messaging batch size and cron pattern ( #6063 )
...
Change messaging batch size and cron pattern to accelerate messages
import
2024-06-27 16:23:47 +02:00
bosiraphael
ac7d905c84
Create fields for calendar and messaging settings v2 ( #6049 )
...
Create fields for calendar and messaging settings v2
2024-06-27 16:23:25 +02:00
bosiraphael
845fcb65ce
Replace ObjectRecord<MessageChannelWorkspaceEntity> with MessageChannelWorkspaceEntity ( #6059 )
...
Replace ObjectRecord<MessageChannelWorkspaceEntity> with
MessageChannelWorkspaceEntity
2024-06-27 14:35:25 +02:00
bosiraphael
97822533db
Fix cache flush in messaging-channel-sync-status.service ( #6024 )
...
Fix cache flush in messaging-channel-sync-status.service
2024-06-27 09:58:37 +02:00
bosiraphael
03b00c49d5
Improve gmail error handling by catching and throttling for 400 failedPrecondition ( #6044 )
...
Closes #5897
2024-06-27 09:57:19 +02:00
bosiraphael
4dfca45fd3
5615 create messageongoingstalecron ( #6005 )
...
Closes #5615
2024-06-25 11:57:02 +02:00
bosiraphael and Charles Bochet
a001bf1514
5951 create a command to trigger the import of a single message ( #5962 )
...
Closes #5951
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-06-24 18:01:22 +02:00
bosiraphael
f3701281e9
Create new sync statuses and stages for calendar ( #5997 )
...
Create fields:
- syncStatus
- syncStage
- syncStageStartedAt
2024-06-24 16:39:56 +02:00
bosiraphael
77f9f6473b
Create feature flag for calendar V2 ( #5998 )
...
Create feature flag for calendar V2
2024-06-24 13:54:52 +02:00
bosiraphael
86f95c0870
5898 Create a cron to monitor messageChannelSyncStatus ( #5933 )
...
Closes #5898
2024-06-19 16:04:01 +02:00
bosiraphael
016132ecf6
Fix reconnect google account bug ( #5905 )
...
Update syncStage to FULL_MESSAGE_LIST_FETCH_PENDING when reconnecting
the account to trigger a full sync on the next cron iteration.
2024-06-19 16:00:39 +02:00
bosiraphael and Lucas Bordeau
d6fcb9cae8
5934 create alert banner component ( #5950 )
...
Closes #5934
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-06-19 15:41:57 +02:00
bosiraphael
82741d3b04
Fix error log on message import ( #5866 )
...
Modify #5863 to log the connected account id rather than the message
channel id to be consistent with the other logs and stringify the error.
2024-06-14 12:38:35 +02:00
bosiraphael
f825bea071
5629 update blocklist for messaging v2 ( #5756 )
...
Closes #5629
- Add subdomain support in blocklist (if @example.com is blocked, every
subdomain will be blocked)
2024-06-13 07:53:28 +02:00
bosiraphael
64b8e4ec4d
Fix access token refresh ( #5825 )
...
In `messaging-gmail-messages-import.service`, we were refreshing the
access token before each query but we were passing the old access token
to `fetchAllMessages`.
I modified the function to query the updated connectedAccount with the
new access token.
This will solve the 401 errors we were getting in production.
2024-06-11 18:52:38 +02:00
bosiraphael
234e062232
Refactor sync sub status and throttle ( #5734 )
...
- Rename syncSubStatus to syncStage
- Rename ongoingSyncStartedAt to syncStageStartedAt
- Remove throttlePauseUntil from db and compute it with
syncStageStartedAt and throttleFailureCount
2024-06-04 16:52:57 +02:00
bosiraphael
3f9f2c3ba6
5620 implement throttle logic for message and calendar sync ( #5718 )
...
Closes #5620 and improve messages filters
2024-06-04 10:29:05 +02:00
bosiraphael
2d12984db4
5613 add throttlepauseuntil and throttlefailurecount fields to messagechannel and calendarchannel ( #5713 )
...
Closes #5613
2024-06-03 13:22:49 +02:00
bosiraphael and Charles Bochet
e0103bbcdc
5015 make gmail filters work for partial sync ( #5695 )
...
Closes #5015
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-05-31 23:20:57 +02:00
bosiraphael and Charles Bochet
f166171a1c
5531 update gmail full sync to v2 ( #5674 )
...
Closes #5531
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-05-31 13:29:58 +02:00
bosiraphael
1715aa8465
Remove hasCalendarEventStarted flaky test ( #5603 )
...
Remove hasCalendarEventStarted flaky test
2024-05-27 15:16:21 +02:00
bosiraphael
936ac4027a
Introduce a new feature flag for contact creation ( #5570 )
...
Introduce new feature flag
`IS_CONTACT_CREATION_FOR_SENT_AND_RECEIVED_EMAILS_ENABLED` to allow
contacts to be created for sent and received emails.
2024-05-24 18:55:21 +02:00
bosiraphael
3680647c9a
Fix sync token is no longer valid in calendar sync ( #5563 )
...
Fix sync token is no longer valid in calendar sync.
https://developers.google.com/apps-script/add-ons/calendar/conferencing/sync-calendar-changes#implement_a_sync_trigger_function
_Caution: Occasionally sync tokens are invalidated by the server,
resulting in a Sync token is no longer valid error. When this happens,
your code should conduct a full sync and replace any stored sync tokens
you have._
2024-05-24 18:33:44 +02:00
bosiraphael
87465b13ee
5507 modify the partial sync cron to work with the new statuses ( #5512 )
...
Closes #5507
2024-05-24 18:27:54 +02:00
bosiraphael
beaaf33544
5498 create a feature flag is gmail sync v2 enabled ( #5501 )
...
Closes #5498
2024-05-22 09:25:06 +02:00
bosiraphael
e47101e08b
5483 modify messagechannel syncstatus ( #5484 )
...
- Closes #5483
- Fix seeds
- Add default value to syncSubStatus
2024-05-21 13:31:39 +02:00
bosiraphael
b5d3396ea9
5477 - Introduce syncsubstatus in db to refactor gmail sync behavior ( #5479 )
...
Closes #5477
2024-05-20 17:19:21 +02:00
bosiraphael and Weiko
3bf9045990
Fix record position on contact creation ( #5227 )
...
Fix record position on contact creation
---------
Co-authored-by: Weiko <corentin@twenty.com >
2024-04-30 17:09:29 +02:00
bosiraphael
7c605fc2f9
4002 prevent user from creating twice the same blocklist item ( #5213 )
...
Closes #4002
2024-04-30 14:36:33 +02:00
bosiraphael
907f0a1ea6
Add feature flag gate on calendar settings dropdown and fix queries ( #5221 )
...
- Add feature flag gate on calendar settings dropdown
- Fix find many messages
- Fix connected accounts settings
2024-04-30 14:12:48 +02:00
bosiraphael
6cafd25c97
Fix duplicated calendar events ( #5209 )
...
Fix duplicated calendar events when two workspace members participate to
the same event.
2024-04-29 15:23:40 +02:00
bosiraphael
5e143f1f49
5187 delete all emails and events from a blocklisted domain name ( #5190 )
...
Closes #5187
2024-04-26 18:24:02 +02:00
bosiraphael
9f1818aef7
4748 create updated listener on blocklist ( #5145 )
...
Closes #4748
2024-04-25 17:39:56 +02:00
bosiraphael
d23e02adca
4001 add validation for blocklist ( #5172 )
...
Closes #4001
2024-04-25 15:32:55 +02:00
bosiraphael
0f47426d19
4747 create deleted listener on blocklist ( #5067 )
...
Closes #4747
2024-04-24 16:10:56 +02:00
bosiraphael
d130b78166
5044 Dispatch createcontact job instead of emitting an event ( #5135 )
...
Closes #5044
2024-04-24 15:01:13 +02:00
bosiraphael
824786ff04
4746 create created listener on blocklist for calendar ( #5046 )
...
Follows #5031 .
Closes #4746
2024-04-23 11:46:27 +02:00
bosiraphael
8702c71d45
4746 create created listener on blocklist ( #5031 )
...
Closes #4746 for messaging.
I will create another PR to implement the listener on calendar.
2024-04-18 15:06:13 +02:00
bosiraphael
3024e04a1c
4971 add issyncenabled toggle in messaging settings ( #4995 )
...
- Closes #4971
- Fix calendar import to take isSyncEnabled into account
2024-04-17 13:35:23 +02:00
bosiraphael
d63937ec6f
4988 dont import emails with ics attachments ( #4990 )
...
- Closes #4988
- Fix parenthesis error in filter
2024-04-16 15:45:31 +02:00
bosiraphael
691454ef3b
4745 move common logic between messaging and calendar in packagestwenty serversrcmodulesconnected account ( #4962 )
...
Closes #4745
2024-04-15 18:10:12 +02:00
bosiraphael
d7d9f0c16b
Fix ParticipantChip and stories imports ( #4974 )
...
- Fix ParticipantChip
- Fix stories imports after some component have been moved to twenty UI
2024-04-15 18:09:05 +02:00
bosiraphael
11d928baa3
Seed calendar events ( #4967 )
...
Added seeds for:
- `calendar-event-participants`
- `calendar-channel`
- `calendar-channel-event-association`
2024-04-15 15:47:23 +02:00
bosiraphael
764a3ebfde
4501 improve filters for emails imports ( #4966 )
...
- Reduce gmailSearchFilterNonPersonalEmails to the essential
- Filter out promotions, social media and forums emails
2024-04-15 15:45:38 +02:00
bosiraphael
c0b3a8715f
4810 display participants in the right drawer of the calendar event ( #4896 )
...
Closes #4810
- Introduces a new component `ExpandableList` which uses intersection
observers to display the maximum number of elements possible
2024-04-12 10:33:46 +02:00
bosiraphael
bc3930911e
Fix calendar preview avatar display ( #4930 )
...
- Fix avatar preview
- Fix border radius
2024-04-11 18:02:08 +02:00
bosiraphael
8853408264
4736 add listener on calendarchannel isautocontactcreationenabled ( #4913 )
...
Closes #4736
2024-04-11 17:57:19 +02:00
bosiraphael
e7d146363c
4710 implement google calendar incremental sync ( #4822 )
...
Closes #4710
2024-04-10 15:53:14 +02:00
bosiraphael
038b2c0efc
4738 add listeners on person creation and workspacemember creation to update participants ( #4854 )
...
Closes #4738
- Added the logic to unmatch a participant when the email of a person or
a workspace member is updated
2024-04-08 17:03:42 +02:00
bosiraphael
018b9efc2c
4743 use auth google apis callback url instead of messaging provider gmail callback url ( #4838 )
...
Closes #4743
2024-04-08 14:56:12 +02:00
bosiraphael
85caed3463
4702 rename calendareventattendee to calendareventparticipant ( #4761 )
...
Closes #4702
2024-04-04 14:00:10 +02:00
bosiraphael
ffb1733f39
Fix invalid token after credentials change ( #4717 )
...
- If sync fails we set authFailedAt
- This information is displayed in the frontend in accounts with a `Sync
Failed` pill
- The user can reconnect his account in the dropdown menu
- A new OAuth flow is triggered
- The account is synced
2024-04-02 11:32:27 +02:00
bosiraphael
68977dc675
Calendar event fixes and improvements ( #4690 )
...
* fixes
* saving workspaceMemberId and personId when saving attendees
* add typing
* use Map
* improve saveMessageParticipants
* fix role type
* move logic in a service
* create new service
* use new service in calendar-event-attendee.service
* modify service to include more common logic
* add defaumt value to isOrganizer in calendar-event-attendee.object-metadata
* rename folder
* renaming
2024-03-29 10:03:00 +01:00
bosiraphael and Weiko
d687523e22
4643 create a pre hook for calendar events ( #4666 )
...
* copy message pre hook
* add CalendarQueryHookModule to workspace-pre-query-hook.module
* use CalendarChannelVisibility enum
* add calendarEvent to workspace-pre-query-hook.config
* fix pre-hook
* fix findOne prehook in config
* rename fragments
* fix import
* update findOne prehook and create can-access-calendar-event.provider
* replace provider with service
* fix type
* renaming
* remove unnecessary eslint skip
---------
Co-authored-by: Weiko <corentin@twenty.com >
2024-03-27 19:44:35 +01:00
bosiraphael
416eb1eafd
4506 change field labels and field type for calendarevent object metadata to match figma ( #4679 )
...
* update calendarEvent labels and description to match Figma
* modify conferenceUri to conferenceLink with LINK type
* update format-google-calendar-event.util to match new conferenceLink
* update CalendarEventDetails since overriding the fields is no longer needed
* fix mock metadata
* generate new uuid for field conferenceLink
2024-03-27 15:17:45 +01:00
bosiraphael
77e08daa79
4486 connect settingsaccountscalendars to backend ( #4605 )
...
* add useFindOneRecord and useUpdateOneRecord
* remove mock
* use calendar channel information in display
* renaming
* refactoring
* handleSyncEventsToggle
* improve typing using generics
* modifications after review
* rename components
* renaming
2024-03-27 15:01:00 +01:00
bosiraphael
fefa37b300
4488 connect calendar tab to backend ( #4624 )
...
* create states and hooks
* implement fetch more records
* add empty state
* update types
* fix error
* add fetchmoreloader and add scroll to container
* fix visibility in calendarEventFragment
* fix fetchMoreRecords
* update TIMELINE_CALENDAR_EVENTS_DEFAULT_PAGE_SIZE
* add test
* modify empty state subtitle
* replace entity by activityTargetableObject
* create useCustomResolver hook
* refactor
* refactoring
* use generic component
* rename FetchMoreLoader
* remove deprecated states and hooks
* fix typing
* update typing
* update error message
* renaming
* improve typing
* fix bug on contact creation from same company
2024-03-26 14:50:32 +01:00
bosiraphael
96cad2accd
4398 decouple contacts and companies creation from messages import ( #4590 )
...
* emit event
* create queue and listener
* filter participants with role 'from'
* create job
* Add job to job module
* Refactoring
* Refactor contact creation in CreateCompanyAndContactService
* update job
* wip
* add getByHandlesWithoutPersonIdAndWorkspaceMemberId to calendar event attendee repository
* refactoring
* refactoring
* Revert "refactoring"
This reverts commit e5434f0b871e45447227aa8d55ba5af381c3ff1c.
* fix nest imports
* add await
* fix contact creation condition
* emit contact creation event after calendar-full-sync
* add await
* add missing transactionManager
* calendar event attendees personId update is working
* messageParticipant and calendarEventAttendee update is working as intended
* rename module
* fix lodash import
* add test
* update package.json
2024-03-22 18:44:14 +01:00
bosiraphael
5665656b05
4489 timebox finish google calendar full sync ( #4615 )
...
* add lodash differenceWith
* add awaits
* update sync cursor is working
* add logs
* use isSyncEnabled information to enqueue jobs
* add decorator InjectObjectMetadataRepository
* fix gmail-full-sync
2024-03-22 18:10:55 +01:00
bosiraphael
4ab426c52a
4485 create a custom resolver for calendar events ( #4568 )
...
* create timeline calendar event resolver
* working on getCalendarEventsFromPersonIds
* add count query
* add calendarEventVisibility and add typing
* update calendarEvent dto
* modify calendarEvent dto
* compute calendar event visibility
* fix types
* add FieldMetadata in timeline calendar dtos and create queries and fragments
* remove fieldMatadata
* fix naming
* update resolver
* add getCalendarEventsFromCompanyId
* fix queries
* refactor queries
* fix visibility
* fix calendar event attendees bug
* visibility is working
* remove @IDField
* update gql queries
* update dto
* add error
* add enum
* throw http exception
* modify error
* Refactor calendar event visibility check
* use enum
2024-03-19 18:34:00 +01:00
bosiraphael
f6d27ce19c
Update add account button style ( #4481 )
...
* update style
* fix gap being there twice
2024-03-15 13:33:35 +01:00
bosiraphael and Jérémy M
3caf860848
4285 timebox create google calendar full sync ( #4442 )
...
* calendar module
* wip
* creating a folder for common files between calendar and messages
* wip
* wip
* wip
* wip
* update calendar search filter
* wip
* working on full sync service
* reorganizing folders
* adding repositories
* fix typo
* working on full-sync service
* Add calendarQueue to MessageQueue enum and update dependencies
* start transaction
* wip
* add save and update functions for event
* wip
* save events
* improving step by step
* add calendar scope
* fix nest modules imports
* renaming
* create calendar channel
* create job for google calendar full-sync
* call GoogleCalendarFullSyncJob after connected account creation
* ask for scope conditionnally
* fixes
* create channels conditionnally
* fix
* fixes
* fix FK bug
* filter out canceled events
* create save and update functions for calendarEventAttendee repository
* saving messageParticipants is working
* save calendarEventAttendees is working
* add calendarEvent cleaner
* calendar event cleaner is working
* working on updating attendees
* wip
* reintroducing google-gmail endpoint to ensure smooth deploy
* modify callbackURL
* modify front url
* changes to be able to merge
* put back feature flag
* fixes after PR comments
* add feature flag check
* remove unused modules
* separate delete connected account associated job data in two jobs
* fix error
* rename calendar_v3 as calendarV3
* Update packages/twenty-server/src/workspace/calendar-and-messaging/utils/valueStringForBatchRawQuery.util.ts
Co-authored-by: Jérémy M <jeremy.magrin@gmail.com >
* improve readability
* renaming to remove plural
* renaming to remove plural
* don't throw if no connected account is found
* use calendar queue
* modify usage of HttpService in fetch-by-batch
* modify valuesStringForBatchRawQuery to improve api and return flattened values
* fix auth module feature flag import
* fix getFlattenedValuesAndValuesStringForBatchRawQuery
---------
Co-authored-by: Jérémy M <jeremy.magrin@gmail.com >
2024-03-14 11:23:31 +01:00
bosiraphael
0c17decfb9
4284 create calendarchanneleventassociation data model ( #4350 )
...
* create model
* add calendar channel relation
* add calendar event relation
* add to index.ts
* done
* updates
* update relation
* update relation
* updates after comments
2024-03-08 16:29:40 +01:00
bosiraphael
577de7240c
4283 create calendareventattendee data model ( #4333 )
...
* add person relation
* add workspaceMember relation
* done
* update channel
* update event data-model
* add relation
* done
* changes after review
* update model
2024-03-06 18:05:40 +01:00
bosiraphael
0d231902f0
4281 create calendarevent data model ( #4317 )
...
* create model
* update model
* remove webLink
* done
* fix namePlural case
* Delete packages/twenty-server/src/workspace/workspace-sync-metadata/standard-objects/calendar-event-attendee.object-metadata.ts
* updates after comments
* add enum
2024-03-05 17:50:07 +01:00
bosiraphael
9fc421876f
4282 create calendarchannel data model ( #4314 )
...
* create model
* add connected account relation
* fix import
* relation is working
* remove isNullable
2024-03-05 16:12:56 +01:00
bosiraphael
735e75b3b1
Fix domain name parsing on company creation ( #4297 )
...
* add domain parsing library
* change package for psl
* trying to fix error
* fix
* update
* remove unused function
2024-03-04 17:50:41 +01:00
bosiraphael
4242b546b6
Handle error 429 during partial sync ( #4258 )
...
handle error 429
2024-03-01 14:41:42 +01:00
bosiraphael
72ae6e44b3
Remove Gate decorator IS_BLOCKLIST_ENABLED from BlocklistObjectMetadata ( #4250 )
...
* Remove Gate decorator from BlocklistObjectMetadata
* check if blocklist is enabled
* wip
* done
2024-02-29 19:25:11 +01:00
bosiraphael
773f698faf
Add error handling in GmailPartialSyncService ( #4248 )
...
* Add error handling in GmailPartialSyncService
* improve typing
2024-02-29 18:11:53 +01:00
bosiraphael
bc11cf80fa
4209 speed up gmail full sync by using search params to query only the relevant emails ( #4213 )
...
* create blocklist service
* blocklist is working on email import in full sync
* add log
* add blocklist to partial sync
* define rule for blocklist imports
* gmail filter is working
* correct typo
* fix bugs
* getCompanyNameFromDomainName
* renaming
* remove unused service
* add transaction
2024-02-29 12:26:58 +01:00
bosiraphael
8c08f1b603
Remove html from messages ( #4229 )
...
* remove html
* remove html
* remove html from db
2024-02-29 12:01:01 +01:00
bosiraphael
fcfc6796f7
Add pagination to partial sync and add logs ( #4223 )
...
* update gmail partial sync to add pagination
* adding logs
* update
* improve readability
2024-02-28 14:55:54 +01:00
bosiraphael
a19de71fad
4017 improve queries on messages write ( #4207 )
...
* modify code to reduce nested loops and improve performances
* is working
* fix lastSyncHistoryId
* create new service to share it betweent partial sync and full sync
* update partial sync
* update batch limit
* renaming
* adding logs
* update logs
* update logs
* update logs
* delete messages if error while saving the participants
* refactoring
* improving logs
* update logs
* delete historyId if outdated
2024-02-27 16:06:19 +01:00
bosiraphael
8b39e53e49
4026 create storybook tests for blocklist components ( #4185 )
...
* Add SettingsAccountsEmailsBlocklistInput story
* Add SettingsAccountsEmailsBlocklistSection story
* Add SettingsAccountsEmailsBlocklistTable story
* Add SettingsAccountsEmailsBlocklistTableRow story
* wip
* add play
* add play
* add delete from blocklist test
* wip
* wip
* done
2024-02-26 21:54:29 +01:00