-
-
Notifications
You must be signed in to change notification settings - Fork 526
refactor(elasticSearch): simplify query building logic and add new fe… #1270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…atures - Remove unused geo point and regex functions - Add support for fuzzy queries and proper wildcard escaping - Improve handling of array values and negation cases - Add ES syntax version constants for better version control - Simplify range parameter building and field determination
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit c431177:
|
Please use pnpm 8 and discard changes to lockfile and package.json |
Ran pnpm 8, discarded changes made to package.json and lock file
Done |
Please fix the failing tests. Looks like this failing test indicates issue (regression?) with handling of lists: Could you please add tests for new features (fuzzy queries, wildcard escaping)? https://github.com/ukrbublik/react-awesome-query-builder/tree/master/packages/tests#watch-mode I've removed changes to a lock file from your branch to fix issues with CI (pnpm lock file should have version 6) |
- Add tests for BAD_SELECT_VALUE and B
GM @ukrbublik, I made the changes 2 days ago... |
}] | ||
}, config)!; | ||
const { fixedTree } = Utils.sanitizeTree(tree, config); | ||
expect(Utils.jsonLogicFormat(fixedTree, config)).to.deep.equal({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should test the result of exporting to ES format rather than to JsonLogic format.
Utils.elasticSearchFormat(fixedTree, config)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry but the tests are still failing
https://github.com/ukrbublik/react-awesome-query-builder/actions/runs/15466416744/job/43600521111?pr=1270
…atures
closes issue- #1265