Skip to content

Remove deprecated query client APIs - #2333

Merged
alexmojaki merged 7 commits into
mainfrom
codex/issue-1986-query-client-breaking-changes
Sep 4, 2026
Merged

alexmojaki merged 7 commits into
mainfrom
codex/issue-1986-query-client-breaking-changes

Conversation

@alexmojaki

@alexmojaki alexmojaki commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • remove the deprecated query_json() methods and their obsolete result types
  • require min_timestamp and make the remaining query options keyword-only
  • remove DB-API support for disabling the minimum timestamp
  • make cursor query settings expose their effective inherited values without leaking the private unset sentinel
  • update query-client and DB-API tests, including direct signature and cursor inheritance coverage
  • remove obsolete query API deprecation notices

Closes #1986.

Comment thread logfire/experimental/query_client.py Resolved

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 0 potential issues.

Devin Review

@coderabbitai

coderabbitai Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: aa35df4e-e716-4f2e-85c6-f80e301e6983

📥 Commits

Reviewing files that changed from the base of the PR and between fa7ef89 and b217471.

📒 Files selected for processing (6)
  • logfire/db_api.py
  • logfire/experimental/query_client.py
  • tests/cassettes/test_query_client/test_query_json_read_async.yaml
  • tests/cassettes/test_query_client/test_query_json_read_sync.yaml
  • tests/test_db_api.py
  • tests/test_query_client.py
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • pydantic/logfire (manual)
  • pydantic/pydantic-ai (manual)
  • pydantic/platform (auto-detected)
  • pydantic/pydantic (auto-detected)
💤 Files with no reviewable changes (2)
  • tests/cassettes/test_query_client/test_query_json_read_sync.yaml
  • tests/cassettes/test_query_client/test_query_json_read_async.yaml

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


Important

Approval pending

CodeRabbit has no unresolved comments, but it has not reviewed the latest commit.

Use the checkbox below to review the latest commit. CodeRabbit will approve the changes if it finds no blocking issues.

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The database API no longer accepts None for connection timestamps or cursor assignments. Cursor None state now means inheritance from the connection. Query clients require keyword-only min_timestamp values for JSON rows, Arrow, and CSV queries. Legacy query_json methods and deprecation paths were removed. Tests now use a shared timestamp and verify the updated signatures.

Merge Risk: ⚪ Minimal · up to b2174

This PR removes deprecated query APIs and tightens query-call signatures; no actionable merge-blocking risk remains beyond normal checks and review.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
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 and concisely identifies the primary change: removal of deprecated query client APIs.
Description check ✅ Passed The description directly covers the API removals, required timestamp changes, DB-API changes, test updates, and validation scope.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/issue-1986-query-client-breaking-changes

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

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed against the latest diff

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread logfire/db_api.py Resolved
@alexmojaki
alexmojaki requested a review from Viicos August 28, 2026 13:21
Comment thread logfire/db_api.py Resolved
Comment thread logfire/db_api.py Resolved
@alexmojaki
alexmojaki added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit 1c08478 Sep 4, 2026
26 checks passed
@alexmojaki
alexmojaki deleted the codex/issue-1986-query-client-breaking-changes branch September 4, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Breaking changes in next major release

1 participant