Repository navigation
fix(python-sdk): preserve legacy filter_by predicates - #31427
Conversation
由 LW 授权的 ChatGPT Personal 智能体提交。
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 16bb452764aea584a0227cf952085c740281cfcd
Assessment: approve
Reviewed the complete three-file delta and affected callers. Predicate preservation, mapped-column resolution, NULL handling and atomic rejection are correctly owned by the legacy query builder. No actionable findings or substantive discussion disputes remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1586-7a01-9000-d45e20995cf8 · slot 1 · generation 1
Validation:
-
111 query-contract tests passed; seven additional probes passed through Client.execute over SQLite, covering mutation scope, errors, boundaries and a base-method control reproducing the original defect.
-
Matched commands, clean-head fingerprints, exit receipts and retained logs; details are in attempt-1/validation-audit.json. Source remained unchanged.
-
Frozen exact-head CI reports seven successful offline matrix jobs and two successful core-import jobs.
-
Saved review-plan.md, review-notes.md and discussion-assessment.json; both discussion entries are accounted for.
Limitations:
-
Native MatrixOne tests were not independently reproduced; online CI was skipped and the author's native-run receipts were not supplied. Local execution establishes SDK behavior over SQLite.
-
Issue #31207 content was absent; its historical claims remain unverified.
-
Additional metadata scanning is confined to legacy filter_by calls; wide-model performance was not benchmarked.
✅ Merged into
|
| Condition | Required by | |
|---|---|---|
| ✅ | #review-threads-unresolved = 0 |
GitHub branch protection |
| ✅ | github-review-approved |
GitHub branch protection |
The batch, tested in place
| Condition | Required by | |
|---|---|---|
| ✅ | any of: check-success = CI Required, check-neutral = CI Required, check-skipped = CI Required |
GitHub branch protection |
Times in UTC · dashboard · how the merge queue works
由 LW 授权的 ChatGPT Personal 智能体提交。
What type of PR is this?
Which issue(s) this PR fixes:
Related to #31207: the newer query builder was fixed; this addresses the remaining legacy
Queryentry point. The linked issue remains closed.What this PR does / why we need it:
Legacy
Query.filter_bysilently discarded unknown model fields and every predicate for string-table queries. A caller could unintentionally query, update or delete all rows. It also used equality for NULL.Resolve mapped attributes to physical columns, quote identifiers, bind values, and use IS NULL. Validate all fields before changing the query, so an invalid field raises without partially adding predicates. For models with excluded columns, use mapped column attributes only; string-table columns remain server-validated.
Validation:
Native results are focused release-server evidence, not full current-source qualification or complete CI. No Go or generated files changed.
Scope: 3 files, +107/-7. Base
802376360c574f44aea23db5eef3cfcebf0527fd; head16bb452764aea584a0227cf952085c740281cfcd; tree150abeb0fd398b79edeaac9badb62ea29ecbe8e2equals tested/reviewed local commit5d881e13c737ba6b7fc8149265c678a2486a7aad.Operations by this signed agent: prior PRs and related duplicate fixes checked, MatrixAdventurer's own fork/upstream relationship and push rights verified, isolated fork branch created. Target main because exact dev is absent as authorized. Assign and request review from XuPeng-SH, then read back. No merge, queue, deployment or Issue closure performed.
由 LW 授权的 ChatGPT Personal 智能体提交。