Skip to content

fix: sandbox config api method mismatch - #16031

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
buua436:b078
Jun 16, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
buua436:b078

Conversation

@buua436

@buua436 buua436 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Fixes the sandbox config API method mismatch so the frontend and backend use the same HTTP verb.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Jun 15, 2026
@coderabbitai

coderabbitai Bot commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 04cbbe15-8ad1-46d1-bcd1-952512b1f0df

📥 Commits

Reviewing files that changed from the base of the PR and between f6a2075 and 2031d5f.

📒 Files selected for processing (1)
  • admin/server/services.py

📝 Walkthrough

Walkthrough

The embedded test_code string inside SandboxMgr.test_connection in admin/server/services.py is updated: sys import, version, and platform prints are removed and replaced with a main() function body that computes 2 + 2 using left/right variables and prints the sum.

Changes

Sandbox Connection Probe

Layer / File(s) Summary
Sandbox probe test_code replacement
admin/server/services.py
Replaces the sys-based version/platform output in the inline test_code string with a main() body that assigns left = 2, right = 2, and prints their sum as the connection probe result.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A rabbit swapped sys for sums so neat,
left = 2 and right = 2 — can't be beat!
No platform names, no Python version fuss,
Just 2 + 2 to tell us all is plus. 🐇✨
Simple probes make sandboxes complete!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: fixing a sandbox config API method mismatch, which aligns with the PR objectives and description.
Description check ✅ Passed The description includes both required template sections: the problem statement explaining the API method mismatch and the bug fix classification, though it could benefit from more implementation details.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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 and usage tips.

@buua436 buua436 added the ci Continue Integration label Jun 15, 2026
@buua436
buua436 marked this pull request as draft June 15, 2026 09:50
@buua436
buua436 marked this pull request as ready for review June 15, 2026 09:51
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.16%. Comparing base (e96bc37) to head (2031d5f).
⚠️ Report is 29 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #16031   +/-   ##
=======================================
  Coverage   93.16%   93.16%           
=======================================
  Files          10       10           
  Lines         717      717           
  Branches      118      118           
=======================================
  Hits          668      668           
  Misses         29       29           
  Partials       20       20           

☔ 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.

@wangq8
wangq8 merged commit ee1c503 into infiniflow:main Jun 16, 2026
1 check passed
Harry-Hz-Zhang pushed a commit to Harry-Hz-Zhang/ragflow that referenced this pull request Jun 17, 2026
### What problem does this PR solve?
Fixes the sandbox config API method mismatch so the frontend and backend
use the same HTTP verb.

### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
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:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants