Skip to content

Go: fix missing route - #17094

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix567
Jul 20, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix567

Conversation

@JinHai-CN

Copy link
Copy Markdown
Member

As title.

Signed-off-by: Jin Hai <[email protected]>
@JinHai-CN
JinHai-CN marked this pull request as ready for review July 20, 2026 06:43
@JinHai-CN JinHai-CN added the ci Continue Integration label Jul 20, 2026
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 20, 2026
@coderabbitai

coderabbitai Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The EE admin router now exposes three token statistics endpoints. The admin CLI builds the per-user token statistics URL and sends its request using the admin requester type.

Changes

Token statistics access

Layer / File(s) Summary
Token statistics route registration
internal/admin/router_ee.go
Registers EE-protected routes for overall token statistics, per-user statistics, and the token statistics summary.
Admin CLI request
internal/cli/admin_command.go
Builds the per-user token statistics URL and changes the request type from web to admin.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: myf-bee

Poem

I’m a rabbit routing stats tonight,
Three token paths hop into sight.
The admin CLI follows the trail,
With proper credentials in its pail.
Hop, hop—requests now prevail!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description does not follow the template; it only says 'As title' and lacks the required Summary context. Add a Summary section that explains the bug, affected routes or endpoints, and why the routing change is needed.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly refers to the main change: fixing a missing route in the Go codebase.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dosubot dosubot Bot added the 🐞 bug Something isn't working, pull request that fix bug. label Jul 20, 2026
@JinHai-CN
JinHai-CN merged commit b2e88c9 into infiniflow:main Jul 20, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant