Skip to content

Infrastructure/migrate to astro db from suprabase and upstash - #503

Merged
webstackdev merged 22 commits into
mainfrom
infrastructure/migrate-to-astro-db-from-suprabase-and-upstash
Dec 13, 2025
Merged

webstackdev merged 22 commits into
mainfrom
infrastructure/migrate-to-astro-db-from-suprabase-and-upstash

Conversation

@webstackdev

@webstackdev webstackdev commented Dec 12, 2025 •

Copy link
Copy Markdown
Owner

Description

Refactor rate limiting database and GDPR data stores to Astro DB with Turso as remote away from Suprabase and Upstash. The Suprabase mock container for E2E testing never worked reliably on GitHub runner.

Type of Change

  • 🐛 Bug fix (bugfix/*)
  • 🔥 Hot fix (hotfix/*)
  • ✨ New feature (feature/*)
  • 🏗️ Infrastructure (infrastructure/*)
  • � Maintenance (maintenance/*)
  • �📝 Content update (content/*)
  • 📚 Documentation
  • 🎨 Style/UI change
  • ♻️ Code refactoring

@github-actions

github-actions Bot commented Dec 12, 2025 •

Copy link
Copy Markdown

Dependency Review

The following issues were found:

  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 9 package(s) with unknown licenses.
  • ⚠️ 8 packages with OpenSSF Scorecard issues.

View full job summary

Comment thread src/pages/api/_environment/environmentApi.ts Fixed
@github-actions

Copy link
Copy Markdown

❌ Preview deployment failed.

🔗 View the workflow logs

Please review the Vercel build logs for details.

…letter/email, and api environment file. It is only used for e2e tests and these routes will be refactored to Astro Actions. This quiets a CodeQL warning related to the environment routines
…nce free Vercel plan only allows once-a-day ping and the database will sleep if not pinged hourly
@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 66.34% 4494 / 6774
🔵 Statements 65.05% 4668 / 7175
🔵 Functions 66.18% 910 / 1375
🔵 Branches 54.37% 2237 / 4114
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/components/Social/Embed/client/index.ts 14.13% 28.04% 15.55% 13.75% 42, 46, 59, 71, 116-604
src/components/WebMentions/server/index.ts 87.3% 69.11% 100% 86.88% 110-111, 127, 137-142, 154, 159, 213-224, 236, 253
src/integrations/PrivacyPolicyVersion/index.ts 92.3% 77.77% 100% 92.15% 37-38, 93-96
src/lib/config/environmentServer.ts 66.66% 25% 54.54% 66.66% 44, 49, 57-72, 76
src/lib/config/environmentalVariableValidation.ts 100% 100% 100% 100%
src/pages/api/_contracts/gdpr.contracts.ts 100% 100% 100% 100%
src/pages/api/_environment/environmentApi.ts 14.28% 7.14% 25% 14.28% 48-145
src/pages/api/_errors/apiFunctionHandler.ts 61.64% 39.79% 71.42% 62.06% 81, 82, 97, 112-150, 183, 234-235, 243, 262
src/pages/api/_utils/index.ts 100% 100% 100% 100%
src/pages/api/_utils/rateLimit.ts 95% 90.9% 100% 94.87% 87-90, 94
src/pages/api/_utils/rateLimitStore.ts 0% 0% 0% 0% 24-93
src/pages/api/contact/index.ts 60.14% 52.63% 53.84% 64.06% 58, 77, 119-124, 159-168, 182-191, 196-204, 211-214, 221-225, 251-255, 264-338, 345-349
src/pages/api/cron/cleanup-confirmations.ts 96.55% 87.5% 100% 96.55% 68-73
src/pages/api/cron/cleanup-dsar-requests.ts 96.66% 87.5% 100% 96.66% 83-88
src/pages/api/cron/run-all.ts 96.29% 87.5% 100% 96.29% 38
src/pages/api/gdpr/consent.ts 0% 0% 0% 0% 16-319
src/pages/api/gdpr/export.ts 0% 0% 0% 0% 9-98
src/pages/api/gdpr/request-data.ts 63.26% 55.55% 40% 63.26% 25-32, 36-40, 47-60, 82, 89-93, 97, 102, 106, 117-125, 149-157, 171
src/pages/api/gdpr/verify.ts 0% 0% 0% 0% 17-216
src/pages/api/gdpr/_utils/consentStore.ts 0% 0% 0% 0% 10-103
src/pages/api/gdpr/_utils/dsarStore.ts 0% 0% 0% 0% 20-72
src/pages/api/newsletter/_email.ts 0% 0% 0% 0% 15-432
src/pages/api/newsletter/_token.ts 0% 0% 0% 0% 31-235
src/pages/api/newsletter/confirm.ts 96.29% 100% 100% 96.29% 96-102
src/pages/api/newsletter/index.ts 57.35% 37.73% 75% 57.35% 66-72, 96-174, 198-202, 208-215, 222-226, 243-248, 300
Generated in workflow #53 for commit 0c1e676 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown

✅ Preview deployment ready

Field Value
Branch infrastructure/migrate-to-astro-db-from-suprabase-and-upstash
Commit 0c1e676
Preview Open preview

Triggered by @webstackdev

@webstackdev
webstackdev merged commit a529687 into main Dec 13, 2025
10 checks passed
@webstackdev
webstackdev deleted the infrastructure/migrate-to-astro-db-from-suprabase-and-upstash branch December 13, 2025 00:51
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.

2 participants