Skip to content

Simplify sorting dependencies with Pydantic query models - #16160

Merged
frankie567 merged 1 commit into
mainfrom
codex/sorting-query-model
Oct 30, 2026
Merged

frankie567 merged 1 commit into
mainfrom
codex/sorting-query-model

Conversation

@frankie567

@frankie567 frankie567 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Sorting parameters used a dynamic function generation pattern to be able to inject a query parameter with a dynamic type generated from an enum.

Now that FastAPI allows to use Pydantic models as query parameters, we can generate a Pydantic model dynamically instead, removing the need of a complete dynamic function builder, which feels more natural and less magic.

View guided diff Turn on auto-fix

@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
orbit Ready Ready Preview Oct 30, 2026 3:09pm UTC
polar-test Ready Ready Preview Oct 30, 2026 3:09pm UTC

Request Review

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

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Bounded refactor replacing dynamic makefun signature generation with a Pydantic query model, preserving the sorting query parameter shape, defaults, and enum validation.

View guided diff | Turn on auto-fix | Re-trigger cubic

@frankie567
frankie567 added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit e09d080 Oct 30, 2026
33 of 52 checks passed
@frankie567
frankie567 deleted the codex/sorting-query-model branch October 30, 2026 15:21

This branch was successfully deployed

2 active deployments
Preview – polar-test — 1f8bfa65 Deployed Oct 30, 2026 by vercel[bot]
Preview – orbit — 1f8bfa65 Deployed Oct 30, 2026 by vercel[bot]
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