Raphaël Bosi
f1264fda76
Fix: Set sync stage started at when starting sync ( #7046 )
...
Fix:`syncStageStartedAt` was not set correctly after refactoring
2024-09-16 15:10:53 +02:00
Raphaël Bosi
833832525c
Create command to set stale message sync back to pending ( #7048 )
...
Some message channels are stuck in an ongoing `syncStage` because
`syncStartedAt` was not set correctly at the beginning of the sync.
This command resets message channels with an ongoing `syncStage` and
`syncStartedAt` set to null.
2024-09-16 15:10:42 +02:00
Raphaël Bosi and Charles Bochet
cd66ea74a2
6657 Refactor and fix blocklist ( #6803 )
...
Closes #6657
- Fix listeners
- Refactor jobs to take array of events
- Fix calendar events and messages deletion
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-08-31 16:38:47 +02:00
Raphaël Bosi
e7bbc7ddfc
Fix participant listeners ( #6767 )
...
Fixes a bug where all the messagesParticipants and the
calendarEventParticipants were linked to a contact after its
restoration.
2024-08-28 16:26:08 +02:00
Raphaël Bosi
da23ca3c23
Fix message direction seeds ( #6760 )
...
Direction is now on mcma and no longer on message
2024-08-28 13:03:00 +02:00
Raphaël Bosi and Charles Bochet
e6a55f270b
5617 Create CalendarOngoingStaleCron Job ( #6748 )
...
Closes #5617
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-08-27 19:13:15 +02:00
Raphaël Bosi
e771793626
6655 remove field direction in message and add it in mcma ( #6743 )
...
Closes #6655
- Remove direction from message
- Add direction do mcma
- Create migration command
- Create upgrade 0.24
2024-08-27 19:11:04 +02:00
Raphaël Bosi and Charles Bochet
81fa3f0c41
6256 refactor messaging module to remove all provider specific code and put it inside the drivers folders ( #6721 )
...
Closes #6256
Closes #6257
+ Create custom exceptions
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-08-27 18:14:45 +02:00
Raphaël Bosi and Charles Bochet
1eeeae8564
6686 Add try catch on every cron job, and send exception to exceptionHandler ( #6705 )
...
Closes #6686
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-08-22 18:23:05 +02:00
Raphaël Bosi
579c2ebcea
6687 change messaging import cron job to run every minute ( #6704 )
...
Closes #6687
2024-08-22 17:51:08 +02:00
Raphaël Bosi and Charles Bochet
091c0f83be
6619 modify event emitter to emit an array of events ( #6625 )
...
Closes #6619
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-08-20 19:44:29 +02:00
Raphaël Bosi and Charles Bochet
08c7947b3b
Use twentyORM in Timeline messaging ( #6595 )
...
- Remove raw queries and replace them by using `twentyORM`
- Refactor into services and utils
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-08-15 10:15:32 +02:00
Raphaël Bosi
d1c278d6b2
6430 Part 1: remove all raw queries from the messaging and calendar modules ( #6572 )
...
Part 1 of #6430
- Remove all repositories which contained raw queries in `messaging`
module
- Replace them using `twentyORMManager`
2024-08-13 19:40:50 +02:00
Raphaël Bosi
40bbee8d9f
5x Fix cache performance issues ( #6616 )
...
Calling `getObjectMetadata` from `WorkspaceCacheStorageService` in every
query was causing big performance issues. The `objectMetadataCollection`
is now part of the `WorkspaceInternalContext` so we only instance it
once in the `WorkspaceDatasourceFactory`.
Queries are now much faster, for instance for TimelineCalendar, it went
from ~450ms to 80ms.
2024-08-13 17:54:55 +02:00
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