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
Add support to the bitwise query operator. #1055
Conversation
Bitwise query operator e.g., `$bitsAllClear` can be useful for query over number. However, `eve` doesn't support it yet. This PR add the supports of bitwise query operator.
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.
Can you please update the documentation and provide test coverage?
Regards,
Amedeo
@Amedeo91 sure, give me two days. |
@Amedeo91 do we have an example on how to write a test. I checked the tests for |
Maybe add something in the test/method/get.py |
@Amedeo91 after reading more on the code, I feel writing an effective test on those bitwise operations may not be trivial work. The current code doesn't consider testing for those operators, e.g., $ge. |
I see. Maybe let us check with @nicolaiarocci if it might be wiser to track a milestone to add a more extensive test coverage for this operators. |
I will add the test myself. |
Test added, rebased and merged (2d2ad29). Thanks. |
* 'master' of https://github.com/pyeve/eve: (23 commits) Remove twitter and add StackOverflow from support options Add Codemotion Rome 2017 to sessions list Add sphinxcontrib-embedly to dev-requirements.txt v0.7.5 release date Moritz Schneider Changelog for pyeve#1091 Bump version to 0.7.5 Fix sanitization of nested queries. Fix: serialization failure with schema registries. Remove flake8 from travis matrix flake8 runs on CI with py35 Improve robustness on ObjectId validation Re-add flake8 to test runs Make sure non-dict schema definitions are correctly handled New: media endpoint secured by default auth class. Fix test which was broken by previous PR Qiang Zhang Changelog update for pyeve#1055 Add test for bitwise query operator feature. Add support to the bitwise query operator. ...
Bitwise query operator e.g.,
$bitsAllClear
can be useful for query over number. However,eve
doesn't support it yet. This PR add the supports of bitwise query operator.