Skip to content

Remove internal cli 'insert chunks from file' and 'insert metadata from file' - #19591

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
qinling0210:remove_internal
Sep 14, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
qinling0210:remove_internal

Conversation

@qinling0210

Copy link
Copy Markdown
Contributor

Summary

Remove internal cli 'insert chunks from file' and 'insert metadata from file'

@qinling0210 qinling0210 self-assigned this Sep 14, 2026
@qinling0210 qinling0210 added the ci Continue Integration label Sep 14, 2026
@coderabbitai

coderabbitai Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 1ca82a18-c0f2-4d1e-b234-c7a6e8ecfc35

📥 Commits

Reviewing files that changed from the base of the PR and between d3a6aaa and 2c20d5a.

📒 Files selected for processing (12)
  • admin/client/parser.py
  • admin/client/ragflow_client.py
  • internal/cli/cli_http.go
  • internal/cli/dev_parser.go
  • internal/cli/lexer.go
  • internal/cli/parser.go
  • internal/cli/types.go
  • internal/cli/user_command.go
  • internal/cli/user_parser.go
  • internal/development.md
  • internal/handler/tenant.go
  • internal/router/router.go
💤 Files with no reviewable changes (11)
  • internal/cli/types.go
  • internal/cli/parser.go
  • internal/development.md
  • internal/cli/cli_http.go
  • internal/handler/tenant.go
  • internal/cli/lexer.go
  • internal/cli/user_parser.go
  • admin/client/ragflow_client.py
  • internal/cli/dev_parser.go
  • internal/cli/user_command.go
  • admin/client/parser.py

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The change removes file-based insertion commands from the admin client and internal CLI. It removes their parsers, handlers, HTTP routes, client dispatch, and development documentation.

Changes

File-based insert command removal

Layer / File(s) Summary
Tenant endpoint removal
internal/handler/tenant.go, internal/router/router.go
The file-based chunk and metadata insertion handlers, request types, imports, and internal routes are removed.
Internal CLI removal
internal/cli/*, internal/development.md
The CLI no longer lexes, parses, dispatches, or executes the file-based INSERT commands. Their documentation examples are removed.
Admin client removal
admin/client/parser.py, admin/client/ragflow_client.py
The admin grammar, transformer methods, client methods, and dispatch cases for file-based insertion are removed.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: jinhai-cn

Merge Risk: ⚪ Minimal · up to 2c20d

The deprecated file-based insertion paths were removed consistently without an identified impact on retained functionality.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the removal of both internal CLI commands and matches the main changes.
Description check ✅ Passed The description includes the required Summary section and clearly states that both internal CLI commands are removed.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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.

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

A rabbit hops through commands once more
The file-insert paths are no longer at the door
Parsers grow quiet, routes disappear
Old JSON examples fade from here
The CLI rests with a tidy cheer

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

@codecov

codecov Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 37.25%. Comparing base (b19a10f) to head (2c20d5a).
⚠️ Report is 26 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19591      +/-   ##
==========================================
+ Coverage   29.92%   37.25%   +7.32%     
==========================================
  Files          54       54              
  Lines       15383    15446      +63     
  Branches      125      125              
==========================================
+ Hits         4603     5754    +1151     
+ Misses      10767     9665    -1102     
- Partials       13       27      +14     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JinHai-CN
JinHai-CN merged commit aa78e8d into infiniflow:main Sep 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants