feat(gong): Convert to Checkpoint Connector#8827
Open
justin-tahara wants to merge 1 commit intomainfrom
Open
Conversation
Contributor
Greptile SummarySuccessfully converts the Gong connector from the legacy Key improvements:
Minor note: Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
Start([load_from_checkpoint called]) --> Init[Initialize from checkpoint<br/>workspace_idx and cursor]
Init --> LoopStart{workspace_idx less than<br/>workspace count?}
LoopStart -->|No| AllDone[Set has_more=False<br/>Return checkpoint]
LoopStart -->|Yes| CheckCursor{Has cursor from<br/>checkpoint?}
CheckCursor -->|Yes| AddCursor[Add cursor to request body]
CheckCursor -->|No| FetchTranscripts[Fetch transcripts for workspace]
AddCursor --> FetchTranscripts
FetchTranscripts --> Check404{Status 404?}
Check404 -->|Yes| IncrementWS[Increment workspace_idx<br/>Continue to next workspace]
IncrementWS --> LoopStart
Check404 -->|No| FetchDetails[Fetch call details with retry]
FetchDetails --> YieldDocs[Yield documents/failures]
YieldDocs --> CheckNextCursor{Response has<br/>cursor?}
CheckNextCursor -->|Yes| SaveCursor[Save cursor<br/>Keep same workspace_idx<br/>Set has_more=True]
CheckNextCursor -->|No| NextWS[Clear cursor<br/>Increment workspace_idx<br/>Set has_more accordingly]
SaveCursor --> Return[Return checkpoint]
NextWS --> Return
Return --> End([Checkpoint returned])
AllDone --> End
Last reviewed commit: 26a35eb |
Contributor
🖼️ Visual Regression Report
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Description
How Has This Been Tested?
Additional Options
Summary by cubic
Converted the Gong connector to a checkpointed connector with cursor-based pagination and multi-workspace support. Adds reliable resuming, better error handling, and comprehensive tests.
New Features
Migration
Written for commit 26a35eb. Summary will update on new commits.