Skip to content

Fix: type of tenant_rerank_id - #14667

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
Lynn-Inf:fix/search-req
May 8, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
Lynn-Inf:fix/search-req

Conversation

@Lynn-Inf

@Lynn-Inf Lynn-Inf commented May 8, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Update the type of tenant_rerank_id in validation.

Type of change

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

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 8, 2026
@Lynn-Inf Lynn-Inf added 🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration labels May 8, 2026
@coderabbitai

coderabbitai Bot commented May 8, 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: 633ce54a-da8d-4499-9a76-ed3a7d9e3242

📥 Commits

Reviewing files that changed from the base of the PR and between d51fb88 and 2d29e0e.

📒 Files selected for processing (1)
  • api/utils/validation_utils.py

📝 Walkthrough

Walkthrough

The SearchDatasetReq request model in api/utils/validation_utils.py updates the tenant_rerank_id field type from str | None to int | None. This changes Pydantic validation to accept only integer inputs for that field while maintaining the optional nature with a default value of None.

Changes

Request Model Type Update

Layer / File(s) Summary
Request Model Type
api/utils/validation_utils.py
SearchDatasetReq.tenant_rerank_id type annotation changes from `str

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A field once loose, now integer-bound,
No strings attached, just numbers sound,
Validation tightens, errors all caught,
One small change, precisely wrought!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: updating the type of tenant_rerank_id from string to integer.
Description check ✅ Passed The description covers the main problem and correctly identifies this as a bug fix, but lacks detail about why the type change is necessary.
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.

@Lynn-Inf
Lynn-Inf marked this pull request as draft May 8, 2026 06:36
@Lynn-Inf
Lynn-Inf marked this pull request as ready for review May 8, 2026 06:36
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label May 8, 2026
@codecov

codecov Bot commented May 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.16%. Comparing base (a82ae4a) to head (2d29e0e).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14667   +/-   ##
=======================================
  Coverage   94.16%   94.16%           
=======================================
  Files          10       10           
  Lines         703      703           
  Branches      112      112           
=======================================
  Hits          662      662           
  Misses         25       25           
  Partials       16       16           

☔ View full report in Codecov by Sentry.
📢 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 69197d4 into infiniflow:main May 8, 2026
2 checks passed
pekar9781 pushed a commit to pekar9781/ragflow that referenced this pull request May 8, 2026
### What problem does this PR solve?

Update the type of tenant_rerank_id in validation.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
@dosubot dosubot Bot mentioned this pull request May 28, 2026
4 tasks done
Ricardo-M-L pushed a commit to Ricardo-M-L/ragflow that referenced this pull request Aug 17, 2026
### What problem does this PR solve?

Update the type of tenant_rerank_id in validation.

### 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 lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants