Skip to content

feat!: convert all raw order bys to use same mechanism and syntax#459

Merged
wschurman merged 1 commit intomainfrom
wschurman/02-23-feat_convert_all_raw_order_bys_to_use_same_mechanism_and_syntax
Feb 25, 2026
Merged

feat!: convert all raw order bys to use same mechanism and syntax#459
wschurman merged 1 commit intomainfrom
wschurman/02-23-feat_convert_all_raw_order_bys_to_use_same_mechanism_and_syntax

Conversation

@wschurman
Copy link
Copy Markdown
Member

@wschurman wschurman commented Feb 23, 2026

Why

#457 added a new mechanism for specifying ORDER BY clauses using SQLFragment that aligns a lot better with the loader APIs than having separate orderByRaw/orderByFragment fields in the query modifiers.

How

Replace all with the new consistent order by in order field, update code to handle that.

One neat side-effect is that we no longer need the hard-to-follow direction-specific ordering in deep methods like buildTrigramExactMatchPriority since now we can have those just produce a SQLFragment and reverse the ordering the same as all the other pagination methods.

Test Plan

Run all tests.

Copy link
Copy Markdown
Member Author

wschurman commented Feb 23, 2026

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9940fcb) to head (75c5caa).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main      #459    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          109       109            
  Lines        16114     15960   -154     
  Branches      1450      1431    -19     
==========================================
- Hits         16114     15960   -154     
Flag Coverage Δ
integration 23.03% <98.91%> (-0.73%) ⬇️
unittest 95.19% <31.52%> (+0.25%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@wschurman wschurman force-pushed the wschurman/02-23-feat_convert_all_raw_order_bys_to_use_same_mechanism_and_syntax branch from 510ca93 to 4d6507c Compare February 24, 2026 01:32
@wschurman wschurman force-pushed the wschurman/02-23-chore_sqlfragment.todebugstring_-_getdebugstring branch from 1105c89 to 4810a38 Compare February 24, 2026 01:32
@wschurman wschurman force-pushed the wschurman/02-23-feat_convert_all_raw_order_bys_to_use_same_mechanism_and_syntax branch from 4d6507c to 583626d Compare February 24, 2026 02:11
@wschurman wschurman force-pushed the wschurman/02-23-chore_sqlfragment.todebugstring_-_getdebugstring branch from 4810a38 to 0220f14 Compare February 24, 2026 02:11
@wschurman wschurman force-pushed the wschurman/02-23-feat_convert_all_raw_order_bys_to_use_same_mechanism_and_syntax branch from 583626d to e2a8183 Compare February 24, 2026 02:45
@wschurman wschurman force-pushed the wschurman/02-23-chore_sqlfragment.todebugstring_-_getdebugstring branch from 0220f14 to 2ae9a09 Compare February 24, 2026 02:45
@wschurman wschurman requested review from ide and quinlanj February 24, 2026 16:07
Copy link
Copy Markdown
Member Author

wschurman commented Feb 25, 2026

Merge activity

  • Feb 25, 12:04 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 25, 12:09 AM UTC: Graphite rebased this pull request as part of a merge.
  • Feb 25, 12:12 AM UTC: @wschurman merged this pull request with Graphite.

@wschurman wschurman changed the base branch from wschurman/02-23-chore_sqlfragment.todebugstring_-_getdebugstring to graphite-base/459 February 25, 2026 00:05
@wschurman wschurman changed the base branch from graphite-base/459 to main February 25, 2026 00:08
@wschurman wschurman force-pushed the wschurman/02-23-feat_convert_all_raw_order_bys_to_use_same_mechanism_and_syntax branch from e2a8183 to 75c5caa Compare February 25, 2026 00:09
@wschurman wschurman merged commit 15adeb8 into main Feb 25, 2026
5 checks passed
@wschurman wschurman deleted the wschurman/02-23-feat_convert_all_raw_order_bys_to_use_same_mechanism_and_syntax branch February 25, 2026 00:12
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.

2 participants