Skip to content

Move Extensions domain access behind the API - #303

Merged
admdly merged 5 commits into
mainfrom
codex/consolidate-extensions-domain-api
Aug 5, 2026
Merged

Move Extensions domain access behind the API#303
admdly merged 5 commits into
mainfrom
codex/consolidate-extensions-domain-api

Conversation

@admdly

@admdly admdly commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • remove the site-owned Extensions D1 binding, migrations, and direct SQL adapters
  • route account, developer, submission, claim, transfer, moderation, and catalogue access through the generated API client
  • synchronize OIDC identity with the API before issuing the local session
  • regenerate the v2 client from the API PR contract, including documented active-account errors and the owner-list query without developer_id

This PR is intended to merge with FOSSBilling/api#186, which owns the consolidated Extensions schema and endpoints.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 5, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
extensions ae9a9d3 Commit Preview URL

Branch Preview URL
Aug 05 2026, 03:56 PM

@admdly
admdly marked this pull request as ready for review August 5, 2026 10:53
@admdly admdly self-assigned this Aug 5, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 33 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread src/lib/users.ts Outdated
Comment thread src/pages/account/delete.astro
Comment thread src/lib/database.ts Outdated
Comment thread src/lib/auth-guard.ts Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 16 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread src/lib/users.ts Outdated
Comment thread src/pages/account/index.astro
Comment thread test/auth-guard.test.ts

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 6 files (changes from recent commits).

Requires human review: This PR re-architects data access from direct D1 to an external API, changes identity sync and authorization, and removes database migrations—a human should review the operational and data-handling tradeoffs.

Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 4 files (changes from recent commits).

Requires human review: Replaces local D1 database with API call, altering operational tradeoffs (latency, availability), changes auth/authorization verification, and removes the database layer entirely — a hard-to-reverse architectural decision needing human review.

Re-trigger cubic

@admdly
admdly merged commit 2e4b139 into main Aug 5, 2026
9 checks passed
@admdly
admdly deleted the codex/consolidate-extensions-domain-api branch August 5, 2026 16:02
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