Skip to content

refactor: transpiler overhaul - #202

Merged
gazorby merged 14 commits into
mainfrom
worktree-transpiler-improvements
Jun 22, 2026
Merged

refactor: transpiler overhaul#202
gazorby merged 14 commits into
mainfrom
worktree-transpiler-improvements

Conversation

@gazorby

@gazorby gazorby commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Description

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@coderabbitai

coderabbitai Bot commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@gazorby, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 55 minutes and 22 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: c4fa8ae4-3b32-4547-a941-fe962e5b0fe5

📥 Commits

Reviewing files that changed from the base of the PR and between ea50659 and 53a3ce9.

⛔ Files ignored due to path filters (12)
  • tests/integration/__snapshots__/test_aggregation_filters.ambr is excluded by !**/__snapshots__/**
  • tests/integration/__snapshots__/test_aggregations.ambr is excluded by !**/__snapshots__/**
  • tests/integration/__snapshots__/test_default_order_by.ambr is excluded by !**/__snapshots__/**
  • tests/integration/__snapshots__/test_distinct_on.ambr is excluded by !**/__snapshots__/**
  • tests/integration/__snapshots__/test_filters.ambr is excluded by !**/__snapshots__/**
  • tests/integration/__snapshots__/test_mutations.ambr is excluded by !**/__snapshots__/**
  • tests/integration/__snapshots__/test_optimizations.ambr is excluded by !**/__snapshots__/**
  • tests/integration/__snapshots__/test_order_by.ambr is excluded by !**/__snapshots__/**
  • tests/integration/__snapshots__/test_queries.ambr is excluded by !**/__snapshots__/**
  • tests/integration/__snapshots__/test_query_hooks.ambr is excluded by !**/__snapshots__/**
  • tests/integration/__snapshots__/test_upsert.ambr is excluded by !**/__snapshots__/**
  • tests/integration/data_types/__snapshots__/test_json.ambr is excluded by !**/__snapshots__/**
📒 Files selected for processing (25)
  • pyproject.toml
  • src/strawchemy/dto/strawberry.py
  • src/strawchemy/repository/sqlalchemy/_async.py
  • src/strawchemy/repository/sqlalchemy/_base.py
  • src/strawchemy/repository/sqlalchemy/_sync.py
  • src/strawchemy/testing/pytest_plugin.py
  • src/strawchemy/transpiler/__init__.py
  • src/strawchemy/transpiler/_aliasing.py
  • src/strawchemy/transpiler/_executor.py
  • src/strawchemy/transpiler/_plan.py
  • src/strawchemy/transpiler/_planner.py
  • src/strawchemy/transpiler/_query.py
  • src/strawchemy/transpiler/_scope.py
  • src/strawchemy/transpiler/_strategies.py
  • src/strawchemy/transpiler/_transpiler.py
  • src/strawchemy/transpiler/hook.py
  • tests/integration/test_aggregation_filters.py
  • tests/integration/test_optimizations.py
  • tests/integration/test_pagination.py
  • tests/unit/dto/test_filter.py
  • tests/unit/transpiler/__init__.py
  • tests/unit/transpiler/test_executor.py
  • tests/unit/transpiler/test_join_strategies.py
  • tests/unit/transpiler/test_plan.py
  • tests/unit/transpiler/test_planner.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch worktree-transpiler-improvements

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.

@gazorby gazorby changed the title worktree transpiler improvements refactor: transpiler overhaul Jun 21, 2026
@codecov

codecov Bot commented Jun 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.85081% with 61 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.25%. Comparing base (227bc21) to head (53a3ce9).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/strawchemy/transpiler/_planner.py 95.56% 10 Missing and 13 partials ⚠️
src/strawchemy/transpiler/_aliasing.py 89.52% 16 Missing and 6 partials ⚠️
src/strawchemy/transpiler/_strategies.py 89.47% 2 Missing and 4 partials ⚠️
src/strawchemy/testing/pytest_plugin.py 76.92% 0 Missing and 3 partials ⚠️
src/strawchemy/repository/sqlalchemy/_base.py 90.90% 1 Missing and 1 partial ⚠️
src/strawchemy/transpiler/_plan.py 96.92% 1 Missing and 1 partial ⚠️
src/strawchemy/transpiler/hook.py 66.66% 1 Missing and 1 partial ⚠️
src/strawchemy/transpiler/_query.py 95.83% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #202      +/-   ##
==========================================
- Coverage   93.26%   93.25%   -0.01%     
==========================================
  Files          69       72       +3     
  Lines        6338     6482     +144     
  Branches      853      853              
==========================================
+ Hits         5911     6045     +134     
- Misses        285      296      +11     
+ Partials      142      141       -1     

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

@gazorby
gazorby merged commit e000a8e into main Jun 22, 2026
96 checks passed
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.

1 participant