Skip to content

Improve list query filter parsing#47

Merged
rolandboon merged 2 commits into
mainfrom
feature/improve-list-query-filter-parsing
Jun 10, 2026
Merged

Improve list query filter parsing#47
rolandboon merged 2 commits into
mainfrom
feature/improve-list-query-filter-parsing

Conversation

@rolandboon

Copy link
Copy Markdown
Owner

No description provided.

Introduce parseFilterLiteral, parseFilterValue, and schema-aware
parseWhereFilterValues so dates, numbers, and booleans reach Prisma
with the right types after user filters merge with scope conditions.
Move operand parsing into filter-value-schemas and apply typed filter
fields via parse() in parseWhereFilterValues instead of custom coercion.
@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.81529% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.68%. Comparing base (bd1ff62) to head (f8a990f).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/list-query/parse-filter-values.ts 95.61% 5 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
+ Coverage   96.67%   96.68%   +0.01%     
==========================================
  Files          76       78       +2     
  Lines        3431     3563     +132     
  Branches      913      948      +35     
==========================================
+ Hits         3317     3445     +128     
- Misses        114      118       +4     
Files with missing lines Coverage Δ
src/list-query/builder.ts 97.12% <100.00%> (+0.04%) ⬆️
src/list-query/filter-value-schemas.ts 100.00% <100.00%> (ø)
src/list-query/prisma-builder.ts 97.05% <100.00%> (-0.41%) ⬇️
src/list-query/schema-helpers.ts 96.22% <100.00%> (+2.89%) ⬆️
src/list-query/parse-filter-values.ts 95.61% <95.61%> (ø)

Impacted file tree graph

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

@rolandboon rolandboon merged commit 595bc14 into main Jun 10, 2026
6 checks passed
@rolandboon rolandboon deleted the feature/improve-list-query-filter-parsing branch June 10, 2026 19:31
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