Skip to content

Restore Library code results and secure generated-cache writes - #176

Merged
filiksyos merged 2 commits into
mainfrom
fix/library-code-browse-count-20261029
Nov 6, 2026
Merged

filiksyos merged 2 commits into
mainfrom
fix/library-code-browse-count-20261029

Conversation

@filiksyos

Copy link
Copy Markdown
Owner

Changes

  • Restore Library code cards by eliminating exact-count bottlenecks; label estimates and use row-driven pagination.
  • Move cache writes, backfills and view counting to the existing server-only service-role client.
  • Validate website cache keys and require administrator access for forced refreshes.
  • Include a database migration restricting direct public cache writes and view RPC access. Deploy application code BEFORE applying the migration.

Verified

  • Exact combined tree: 77 tests pass, including isolated PostgreSQL authorization tests; TypeScript, focused ESLint, and Next production build pass.
  • Independent security review found no blocking issues.
  • Existing Library preview returns code and mixed cards for newest, oldest and trending.
  • Production environment metadata confirms existing service-role configuration; no secrets changed.

Release

Merge and verify the new Vercel production deployment, then apply the security migration and verify database privileges plus public reads. After migration, do not roll back to an anonymous-writer application; forward-fix if necessary.

See docs/library-code-counts.md and docs/cache-write-security.md for details and known limits. Full-repository lint retains an unrelated existing error.

@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
gitreverse Ready Ready Preview Nov 6, 2026 9:36am UTC

Request Review

@filiksyos
filiksyos marked this pull request as ready for review November 6, 2026 09:35
@greptile-apps

greptile-apps Bot commented Nov 6, 2026

Copy link
Copy Markdown

Your organization has run out of review credits. Add credits to resume code reviews.

@filiksyos
filiksyos merged commit 75fe978 into main Nov 6, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 89c99151 Deployed Nov 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant