Skip to content

Add moderation queue count endpoint - #234

Merged
admdly merged 1 commit into
mainfrom
extensions/counts
Sep 17, 2026
Merged

admdly merged 1 commit into
mainfrom
extensions/counts

Conversation

@admdly

@admdly admdly commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Summary by cubic

Adds a GET /moderation/counts endpoint so the admin moderation tabs can show queue totals without listing every item.

  • Returns pending/approved/rejected revision counts and published/delisted/unpublished extension totals in one response.
  • Uses the same published/delisted/unpublished predicates as listForModeration, so tab badges can't disagree with the lists.
  • Requires moderator access, and unknown revision statuses are ignored rather than counted.

Written for commit 5fcff58. Summary will update on new commits.

@admdly admdly self-assigned this Sep 17, 2026

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

Copy link
Copy Markdown
Contributor

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 4 files

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

Re-trigger cubic

Comment thread src/services/extensions/v2/routes/moderation.ts
@admdly

This comment was marked as low quality.

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

@cubic review

@admdly I have started the AI code review. It will take a few minutes to complete.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 4 files

Requires human review: AI evaluation unavailable; defaulting to comment-only for safety.

Re-trigger cubic

@cloudflare-workers-and-pages

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
api 5fcff58 Commit Preview URL

Branch Preview URL
Sep 17 2026, 08:27 PM

@admdly
admdly merged commit 8ea8b0e into main Sep 17, 2026
9 checks passed
@admdly
admdly deleted the extensions/counts branch September 17, 2026 20:44
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