Skip to content

fix(sdk): drop integerComparison from both SDK filter catalogs#1011

Merged
SnowboardTechie merged 1 commit into
HOLD-filtersfrom
fix/drop-integer-comparison-filter
Jul 15, 2026
Merged

fix(sdk): drop integerComparison from both SDK filter catalogs#1011
SnowboardTechie merged 1 commit into
HOLD-filtersfrom
fix/drop-integer-comparison-filter

Conversation

@SnowboardTechie

Copy link
Copy Markdown
Collaborator

Summary

  • Resolves the integer-vs-number filter divergence from the #988 review thread: integerComparison is removed from both SDKs, making NumberComparisonFilter the single numeric-comparison type (option 3 from that thread).
  • Time to review: 5 minutes

Changes proposed

  • Python SDK: delete IntegerComparisonFilter (model, exports, IntegerComparison authoring alias, VALID_FILTER_MODELS entry) and its three tests.
  • TS SDK: remove integerComparison from the CustomFilterType union, the FILTER_TYPE_SCHEMAS map (it was already just an alias for NumberComparisonFilterSchema), the type fixtures/tests, and the README catalog (now 10 types).

Context for reviewers

The divergence: Python's IntegerComparisonFilter rejected 3.5 while TS aliased integerComparison to the number schema and accepted it — the same registered filter behaved differently per SDK. Dropping the type entirely (rather than keeping an alias key) leaves the two catalogs identical, and matches the spec state of this release: after 886a384's revert moved the core integer filter model to the v0.4.0 train, integerComparison had no spec model behind it. NumberComparisonFilter already accepts integer values, consistent with JSON Schema's number type. If core v0.4.0 later ships a real integer filter family, the type can return in both SDKs together.

Nothing released ships this type and neither grants.gov plugin registers it, so there's no consumer impact; no changeset needed (it removes part of an unreleased addition, and the existing filters changesets don't mention integers).

Verified: Python make checks + 396 tests green; TS pnpm run checks + 546 tests green.

Additional information

Targets HOLD-filters to land before #918, per the release-train ordering.

Resolves the integer-vs-number divergence from the PR #988 review
thread: Python's IntegerComparisonFilter rejected floats while the TS
SDK aliased integerComparison to NumberComparisonFilterSchema and
accepted them, so the same registered filter behaved differently per
SDK. With the core integer filter model moved off this release, neither
SDK ships a filter type the spec does not define: integerComparison is
removed from the Python models/exports/catalog and the TS
CustomFilterType union and schema map. NumberComparisonFilter already
accepts integer values (matching JSON Schema's number type), so integer
filtering needs no dedicated type. The catalog is now 10 types,
identical across SDKs.
@github-actions github-actions Bot added python Issue or PR related to Python tooling sdk Issue or PR related to our SDKs typescript Issue or PR related to TypeScript tooling py-sdk Related to Python SDK ts-sdk Related to TypeScript SDK labels Jul 15, 2026
@SnowboardTechie SnowboardTechie requested a review from widal001 July 15, 2026 19:36
@SnowboardTechie SnowboardTechie marked this pull request as ready for review July 15, 2026 19:36

@widal001 widal001 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for making this change!

@SnowboardTechie SnowboardTechie merged commit a5ed517 into HOLD-filters Jul 15, 2026
5 checks passed
@SnowboardTechie SnowboardTechie deleted the fix/drop-integer-comparison-filter branch July 15, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

py-sdk Related to Python SDK python Issue or PR related to Python tooling sdk Issue or PR related to our SDKs ts-sdk Related to TypeScript SDK typescript Issue or PR related to TypeScript tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants