Skip to content

Provide a public new-queue count endpoint - #760

Closed
davidperezgar wants to merge 1 commit into
WordPress:trunkfrom
davidperezgar:plugin-directory-queue-stats
Closed

Provide a public new-queue count endpoint#760
davidperezgar wants to merge 1 commit into
WordPress:trunkfrom
davidperezgar:plugin-directory-queue-stats

Conversation

@davidperezgar

@davidperezgar davidperezgar commented Aug 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds a public GET /plugins/wp-json/plugins/v1/stats endpoint.
  • Returns only the aggregate number of plugins awaiting initial review.
  • Removes the need for a user-scoped Application Password to retrieve this metric.
  • Adds REST API coverage for the endpoint.

Testing

  • php -l on changed PHP files
  • PHPCS on new files

Closes #758

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props davidperez, obenland.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@obenland

obenland commented Aug 4, 2026

Copy link
Copy Markdown
Member

@davidperezgar Looks like this needs a rebase.

There's no other endpoint this can be folded into?

@davidperezgar
davidperezgar force-pushed the plugin-directory-queue-stats branch from 21bc4b9 to b95fd54 Compare August 5, 2026 16:04
@davidperezgar

Copy link
Copy Markdown
Member Author

Rebased onto the current trunk. I also folded this into the existing Internal_Stats API: the public endpoint is now GET /plugins/wp-json/plugins/v1/stats and returns only queue_count. The existing POST /update-stats endpoint remains authenticated for writes.

@davidperezgar
davidperezgar force-pushed the plugin-directory-queue-stats branch 4 times, most recently from 949b7a7 to 218205b Compare August 5, 2026 16:39
@davidperezgar
davidperezgar force-pushed the plugin-directory-queue-stats branch from 218205b to 504e4a5 Compare August 5, 2026 16:42
@bazza bazza closed this in 7c280c9 Aug 5, 2026
@davidperezgar
davidperezgar deleted the plugin-directory-queue-stats branch August 7, 2026 08:18
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.

Provide a low-privilege endpoint for the Plugins Team new-queue count

2 participants