[Level 3 / Hard] Implement Incremental GitHub GraphQL Sync with Rate-Limit Backoff & ETag Caching

オープン
#4,008 コメント 3 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@bhavesh-patil2007 がすでに取り組んでいます。

2026年12月2日 から。

  • #4011 @bhavesh-patil2007 による — マージされずにクローズ

評価

この issue はまだ評価されていません。

説明

status:assigned

Difficulty

Level 3 (Hard)

Problem Statement

Full-history GitHub API fetches on every dashboard refresh hit rate limits quickly and increase latency for active developers with large repository histories.

Proposed Solution

  • Implement an incremental sync worker using GitHub GraphQL cursors and conditional HTTP requests (ETag / If-None-Match).
  • Persist sync checkpoints per user/repository in PostgreSQL/Supabase.
  • Add exponential backoff with jitter when approaching X-RateLimit-Remaining thresholds.
  • Expose sync status and last-synced timestamps in the dashboard UI.

Acceptance Criteria

  • Incremental sync only fetches events/commits/PRs since the last stored cursor.
  • Rate-limit headers are tracked and respected with automatic backoff.
  • Unit and integration tests cover cursor persistence, 304 Not Modified handling, and rate-limit recovery.
主要言語
TypeScript
スター
246
フォーク
436
平均マージ
9時間 33分
マージ済み PR(30日)
213

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Priyanshu-byte-coder/devtrack のほかの issue

Priyanshu-byte-coder/devtrack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。