Skip to content

feat(search): composable subscription filter DSL (closes #2257) - #2319

Merged
github-actions[bot] merged 1 commit into
Smartdevs17:mainfrom
IVANLI2412:fix/issue-2257-filter-dsl
Nov 24, 2026
Merged

github-actions[bot] merged 1 commit into
Smartdevs17:mainfrom
IVANLI2412:fix/issue-2257-filter-dsl

Conversation

@IVANLI2412

Copy link
Copy Markdown
Contributor

Closes #2257

Summary

Rewrites subscription search as a single, composable filter DSL shared between the backend and the mobile app, so the portal and the app can never drift apart.

  • backend/src/services/search.ts — zero-dependency filter DSL: tokenizer/parser (parseFilterDsl) with implicit AND, AND/OR/NOT grouping, and symbol/word operators (: != > >= < <= ~ ^ in notin); typed SearchError with stable codes; compileFilter/evaluateFilter/countPredicates/stringifyFilter; createSearchEngine with deterministic sorting, injectable clock, and metrics/logger hooks.
  • mobile/src/features/search/index.ts — mobile entry point: re-exports the shared API, binds mobile defaults (MOBILE_SEARCH_CONFIG), and provides createMobileSearch, buildSubscriptionQuery, providerFilter, escapeDslValue, and normalizeMobileQuery.

Verification

  • Node 26 type-stripping harness: 44 passed, 0 failed.
  • Jest suite (search.test.ts): parse/compile/evaluate happy paths + failure modes (unknown field/operator, bad values, depth/predicate limits, case-sensitivity, dotted paths, metrics/logger hooks).
  • tools/check_secrets.py: [OK], SECRETS_EXIT=0.

Branch fix/issue-2257-filter-dsl based on upstream main; pushed without force.

Payouts

  • Base Mainnet (USDC/ETH): 0xC5dD2Ea54FF138bb3f71D3466092eA31eF115868
  • Solana (USDC/SOL): DN3pfYEvdkoTBP4oaEVvemsr98fZPhDSAbfVfmewRGQ5
  • PayPal: ivanzenteno3@gmail.com

@github-actions
github-actions Bot merged commit 9d75e54 into Smartdevs17:main Nov 24, 2026
7 of 27 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.

Rewrite subscription search as a composable filter DSL

1 participant