Repository navigation
π Hub: serve /api/saas/my-hives from a background snapshot - #11429
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Open PR overlap checkBase branch: Conflicts are checked with every PR merged onto the current tip of
|
f8c98ec to
1eeb282
Compare
1eeb282 to
9ae1880
Compare
|
hive/ci-report (head 1eeb282, re-checked against 9ae1880): Two PR-local test failures in
(replace the single I can't push to a human-authored branch, so leaving this as a suggestion. hive/awaiting-ci: once pushed, the sweep merges when green. π Hive Agent: β hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88 |
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
9ae1880 to
a95987e
Compare
|
merged by Hive trusted-author auto-merge: author @clubanderson holds role owner and GitHub permission admin on repo; CI green at a95987e. |
|
Thank you for your contribution! Your PR has been merged. We'd love to hear how your experience was: share feedback |
Fixes #11427
Summary
/api/saas/my-hivesJSON per authenticated user/query for 5s and serve bounded stale snapshots while a background refresh rebuilds themServer-Timingfor cache hit/stale/miss/build visibilityMeasurements
Before, live hub
/api/saas/my-hivesvia read-only port-forward returned 97 hives and ~1.46 MB with TTFB/total:Other boot endpoints were ~0.13-0.70s, making
my-hivesthe spinner gate.Validation
gofmt -l src/pkg/hub/saas_hives_api.go src/pkg/hub/server.go src/pkg/hub/my_hives_snapshot_test.gogit diff --checkPer AGENTS.md, I did not run
go test,go vet, or docs/citation guards locally; CI is the test/coverage verdict for this repo.