-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5531 update gmail full sync to v2 #5674
Merged
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
c5d5dda
create cron for full sync
bosiraphael a92ab88
create full sync service v2
bosiraphael e907641
module imports
bosiraphael a1ff376
remove unnecessary transaction
bosiraphael 7ad290f
remove unnecessary transaction
bosiraphael faedd8b
Merge branch 'main' into 5531-create-a-new-cron-fullsyncmessagelistfe…
bosiraphael f89f083
remove cron and command
bosiraphael 47c197a
Merge branch 'main' into 5531-update-gmail-full-sync-to-v2
bosiraphael a897dfb
renaming
bosiraphael c71c400
renaming
bosiraphael d31f452
refactor
bosiraphael 3644149
update status
bosiraphael c23be07
refactoring
bosiraphael 7d95fd7
remove unused imports
bosiraphael 4ddc7d4
update log
bosiraphael ea97d71
move error handling in its own module
bosiraphael 0a7b383
refactoring error handling
bosiraphael d52cc69
refactoring
bosiraphael 7db2a78
refactor error handling in full sync
bosiraphael 5ac324c
refactoring
bosiraphael 57107c7
add syncType argument to handleGmailError
bosiraphael 2d700bc
fix module import
bosiraphael 97d3820
fix type
bosiraphael ee87be7
Merge branch 'main' into 5531-update-gmail-full-sync-to-v2
bosiraphael 933167a
update full-sync job
bosiraphael 2803ffd
fix
bosiraphael df1188e
Refactoring
bosiraphael 6fd273d
Fix error
bosiraphael ee0c51f
Rename constant
bosiraphael 3c12fa6
remove unnecessary service
bosiraphael f9f6841
Set MessagesImportPendingStatus at the end of full-sync
bosiraphael 6531b5c
fix status
bosiraphael 568d750
Add 429 placeholder
bosiraphael 17a246c
update statuses
bosiraphael a539581
remove duplicated code
bosiraphael 20a0fbe
fix
bosiraphael abf70fe
add error code
bosiraphael b1d2991
update log
bosiraphael afa11cd
update statuses
bosiraphael 7df4052
use setMessageChannelSyncStatusService in error handling
bosiraphael 12f928d
refactoring
bosiraphael abcec13
Add worker to docker-compose
charlesBochet 8e509ae
refactor message-channel-sync-status.service
bosiraphael 216c5fd
refactor
bosiraphael 6a5ff3b
Merge branch '5531-update-gmail-full-sync-to-v2' of github.com:twenty…
bosiraphael 991f340
refactor SyncType
bosiraphael b1a3111
refactor message-channel-sync-status.service
bosiraphael 1499d66
handle 401
bosiraphael 8809928
move refreshing token inside gmail-message-import
bosiraphael 65041ec
fix module import
bosiraphael caec6d4
refactoring
bosiraphael ce204bd
refactor error handling
bosiraphael 44c8716
Start sending logs to telemetry on messaging
charlesBochet d07bc35
Start sending logs to telemetry on messaging
charlesBochet da56166
Fix
charlesBochet 2fb2100
remove logs
bosiraphael de742d2
remove log
bosiraphael eafa1c1
Add telemetry
charlesBochet f51370e
Fix
charlesBochet f4ae89d
refactor
bosiraphael 01de588
fix error reason for gmail messages import
bosiraphael df342cf
return after handling error
bosiraphael 27a68ac
refactoring gmail-messages-import-v2 error handling
bosiraphael 02c6440
remove try catch around token refresh
bosiraphael 75a8cc3
fix typo in statuses
bosiraphael 103c963
Add telemetry logs
charlesBochet 27f3e03
Fix
charlesBochet 0721212
Fixes
charlesBochet bdca23a
Fix
charlesBochet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ export const seedMessageChannel = async ( | |
handle: '[email protected]', | ||
visibility: 'share_everything', | ||
syncSubStatus: | ||
MessageChannelSyncSubStatus.FULL_MESSAGES_LIST_FETCH_PENDING, | ||
MessageChannelSyncSubStatus.FULL_MESSAGE_LIST_FETCH_PENDING, | ||
}, | ||
{ | ||
id: DEV_SEED_MESSAGE_CHANNEL_IDS.JONY, | ||
|
@@ -56,7 +56,7 @@ export const seedMessageChannel = async ( | |
handle: '[email protected]', | ||
visibility: 'share_everything', | ||
syncSubStatus: | ||
MessageChannelSyncSubStatus.FULL_MESSAGES_LIST_FETCH_PENDING, | ||
MessageChannelSyncSubStatus.FULL_MESSAGE_LIST_FETCH_PENDING, | ||
}, | ||
{ | ||
id: DEV_SEED_MESSAGE_CHANNEL_IDS.PHIL, | ||
|
@@ -69,7 +69,7 @@ export const seedMessageChannel = async ( | |
handle: '[email protected]', | ||
visibility: 'share_everything', | ||
syncSubStatus: | ||
MessageChannelSyncSubStatus.FULL_MESSAGES_LIST_FETCH_PENDING, | ||
MessageChannelSyncSubStatus.FULL_MESSAGE_LIST_FETCH_PENDING, | ||
}, | ||
]) | ||
.execute(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the refresh token check might cause issues if other parts of the system assume a refresh token is always present.