Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions cmd/lfx-v1-sync-helper/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,14 @@ func handleKVPut(ctx context.Context, entry jetstream.KeyValueEntry) bool {
case "platform-community__c":
handleCommitteeMemberUpdate(ctx, key, v1Data)
return false
case "itx-poll":
handleVoteUpdate(ctx, key, v1Data)
case "itx-poll", "itx-poll-vote":
// Voting records are handled by lfx-v2-voting-service.
logger.With("key", key).DebugContext(ctx, "voting record, handled by lfx-v2-voting-service")
return false
case "itx-poll-vote":
return handleVoteResponseUpdate(ctx, key, v1Data)
case "itx-surveys":
handleSurveyUpdate(ctx, key, v1Data)
case "itx-surveys", "itx-survey-responses":
// Survey records are handled by lfx-v2-survey-service.
logger.With("key", key).DebugContext(ctx, "survey record, handled by lfx-v2-survey-service")
return false
case "itx-survey-responses":
return handleSurveyResponseUpdate(ctx, key, v1Data)
case "itx-zoom-meetings-v2":
handleZoomMeetingUpdate(ctx, key, v1Data)
return false
Expand Down Expand Up @@ -252,6 +250,14 @@ func handleResourceDelete(ctx context.Context, key string, v1Principal string, v
return handleMeetingAttachmentDelete(ctx, key, sfid)
case "itx-zoom-past-meetings-attachments":
return handlePastMeetingAttachmentDelete(ctx, key, sfid)
case "itx-poll", "itx-poll-vote":
// Voting records are handled by lfx-v2-voting-service.
logger.With("key", key).DebugContext(ctx, "voting record deleted, handled by lfx-v2-voting-service")
return false
case "itx-surveys", "itx-survey-responses":
// Survey records are handled by lfx-v2-survey-service.
logger.With("key", key).DebugContext(ctx, "survey record deleted, handled by lfx-v2-survey-service")
return false
case "salesforce_b2b-Account",
"salesforce_b2b-Asset",
"salesforce_b2b-Product2",
Expand Down
Loading
Loading