GH-85: fix(linear): follow GraphQL cursors past first:50 + add updatedAt delta filter#89
Merged
Conversation
…ta filter ListIssues silently truncated any project with more than 50 issues since it never followed pageInfo.hasNextPage/endCursor. Loop the cursor until exhausted (page size 100) and add ListIssuesSince for updatedAt-filtered delta polling with the same cursor-following, needed for SaaS board-sync watermark polling.
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.
Summary
Automated PR created by Pilot for task GH-85.
Closes #85
Changes
GitHub Issue GH-85: fix(linear): follow GraphQL cursors past first:50 + add updatedAt delta filter
Context
SaaS pre-work S0.4. The Linear client lists issues with
first: 50and does not follow GraphQL page cursors — any project with more than ~50 issues is silently truncated. It also lacks anupdatedAtdelta filter, forcing full refetches. Both block the SaaS board-sync ingest (delta polling with watermark cursors) and are latent bugs for today's poller on large Linear projects.Implementation
In
sdk/integrations/linear:pageInfo { hasNextPage endCursor }until exhausted (page size 50–100), preserving current return shape.issues(filter: { updatedAt: { gt: $since } }, orderBy: updatedAt)) with the same cursor-following, for delta polling.Acceptance
updatedAt > since, cursor-followedRefs
.agent/system/saas-asset-research.md§ studio-sdk (Linearfirst:50no-cursor bug).agent/system/saas-kanban-sync-design.md§2 (per-provider delta mechanics table)