Dev portal 1/4: mirror open GitHub issues/PRs into a /dev backlog console#231
Open
dmccoystephenson wants to merge 1 commit into
Open
Dev portal 1/4: mirror open GitHub issues/PRs into a /dev backlog console#231dmccoystephenson wants to merge 1 commit into
dmccoystephenson wants to merge 1 commit into
Conversation
…onsole Adds a scheduled sync (GitHubClient + BacklogSyncService) that mirrors open issues and PRs across the Dans-Plugins org into a backlog_items table, plus a public read API (GET /api/v1/backlog, /api/v1/backlog/summary) and a new /dev page rendering it as a per-repo rollup and a filterable item list. GitHub stays the system of record: a row flips to CLOSED (never deleted) once a sync no longer sees it in the open set, so the console can't drift out of sync with reality. First phase of the dev-portal plan — read-only foundation that later phases (splash chooser, "interested" voting, self-claim, feature intake) build on.
5 tasks
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
First phase of the developer-portal plan (see the backlog-console pitch): a read-only mirror of every open GitHub issue/PR across the Dans-Plugins org, so the state of the ecosystem is a glance instead of a dozen tabs.
GitHubClient— calls the GitHub Search API for open issues/PRs in the org (works unauthenticated at a lower rate limit; setDPC_BACKLOG_GITHUB_TOKENto raise it — no scopes needed, it's public data).BacklogSyncService— scheduled sync (dpc.backlog.sync-interval-ms, default 15 min) upserts into a newbacklog_itemstable. GitHub stays the system of record: an item not seen in a sync flips toCLOSEDrather than being deleted.GET /api/v1/backlog//api/v1/backlog/summary— public read endpoints (the data's already public on GitHub)./dev— new page: a per-repo rollup (issues, PRs/drafts, oldest open item, a signal chip) plus a filterable flat list of open items.Why
Right now checking the backlog across ~17 active repos means opening that many tabs. This makes it one page, and is the foundation the next three PRs in this stack build on (splash chooser + "interested" voting, self-claim, feature-request intake).
Test plan
./mvnw test— 129 tests, 0 failures (FlywayMigrationTestskips without Docker, as it does today onmain)npm run lint— cleannpm test— 81 tests, 0 failuresnpm run build— compiles,/devrenders at 4.88 kBBacklogSyncServiceTestagainst realistic fixture payloads instead.🤖 Generated with Claude Code