Skip to content
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

fix issue where numeric values are passed as strings to $in operator #290

Merged
merged 1 commit into from Dec 26, 2021

Conversation

StevenMHernandez
Copy link
Contributor

I found a bug with the advanced filters feature. When the $in operator is used with a numeric field (for example Id), the values are passed to the server as a string rather than a Number. This means it is impossible to filter IDs with the $in operator. My changes fix this issue.

This pull request uses some existing logic that I found in the codebase:
https://github.com/vivekratnavel/omniboard/blob/master/web/src/components/RunsTable/runsTable.js#L272
It might be useful to move this logic to a new function, but I am not sure where that function should be defined.

Thanks for the very useful project! :)

@vivekratnavel vivekratnavel merged commit f243462 into vivekratnavel:master Dec 26, 2021
@vivekratnavel vivekratnavel added the bug Something isn't working label Dec 26, 2021
vivekratnavel pushed a commit that referenced this pull request Dec 26, 2021
## [2.16.1](2.16.0...2.16.1) (2021-12-26)

### Bug Fixes

* **runstable.js:** fix issue where numeric values are passed as strings to $in operator ([#290](#290)) ([f243462](f243462))
@vivekratnavel
Copy link
Owner

🎉 This PR is included in version 2.16.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants