Repository navigation
Conversation
…ick and registry helpers (AGT-3421) Port of the remaining parts of b159fa8 (sprint/cycle5-30pt), which never reached main; the taskSource part already landed in #794. - Linear inbound sync applies its limit to the total imported count across pages and reports the durable created/updated count when it fails partway. - drainLinearConnection rejects a missing or repeated endCursor instead of looping or duplicating nodes. It moves to linearPagination.ts with the page constants (re-exported from linear.ts) to keep linear.ts under its size base. - getNextBacklogIssue ranks over every drained page (bounded), not page one. - fetchIssue bounds comments/labels reads (first: 50); the change originally targeted linearTasks.ts, which has since been folded into linear.ts. - Registry risk/status helpers take limit/offset (cap 200); entities by issue id are batch-loaded with a per-issue cap of 200. - Row mapping moved to sqliteStoreRows.ts to keep sqliteStore.ts small.
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.
무엇
syncFromLinear)가limit을 페이지 누적 import 총량에 적용하고(페이지 50, 최대 20페이지), 중간 실패 시 지금까지 반영된 created/updated 수를 보고한다.drainLinearConnection이 endCursor가 없거나 직전과 같으면 명시적 에러를 낸다(커서 루프 방지). 페이지 상수와 함께src/linear/linearPagination.ts로 옮기고linear.ts에서 re-export한다.getNextBacklogIssue가 첫 페이지 10개가 아니라 drain한 전체 후보(최대 20페이지/200건)에서 우선순위를 정렬한다.fetchIssue의 comments/labels 조회에first: 50상한.sqliteStoreRows.ts로 분리.왜
b159fa8(sprint/cycle5-30pt, 09-15)에 구현돼 있었지만 main에 들어오지 않았다. #794는 taskSource 부분만 가져갔다. 이 PR은 나머지를 현재 main 위로 옮긴 것이다(
linearTasks.ts는 그 사이linear.ts로 합쳐져 해당 변경을linear.ts에 적용).검증
tsc --noEmit -p tsconfig.check.json통과, oxlint 0 warning, pre-commit(파일 크기 게이트 포함) 통과src/issues src/linear src/registry src/automation113 files / 1399 tests 통과src/adapters/diagnosticsTool.test.ts)은 vitest를node로 직접 띄워node_modules/.bin이 PATH에 없었기 때문이다. PATH를 넣고 다시 돌리면 11/11 통과. CI Tests도 통과.