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

Add support to the bitwise query operator. #1055

Closed
wants to merge 1 commit into from
Closed

Add support to the bitwise query operator. #1055

wants to merge 1 commit into from

Conversation

zhangtemplar
Copy link
Contributor

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.

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.
@zhangtemplar
Copy link
Contributor Author

#1053

Copy link

@Amedeo91 Amedeo91 left a 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

@zhangtemplar
Copy link
Contributor Author

@Amedeo91 sure, give me two days.

@zhangtemplar
Copy link
Contributor Author

@Amedeo91 do we have an example on how to write a test. I checked the tests for ge in eve/eve/tests/io/mongo.py, however they are tests for parsing which don't make too much sense for those bit operators.

@Amedeo91
Copy link

Amedeo91 commented Sep 3, 2017

Maybe add something in the test/method/get.py

@zhangtemplar
Copy link
Contributor Author

@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.

@Amedeo91
Copy link

Amedeo91 commented Sep 6, 2017

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.

@nicolaiarocci nicolaiarocci added this to the 0.8 milestone Oct 15, 2017
@nicolaiarocci
Copy link
Member

I will add the test myself.

nicolaiarocci added a commit that referenced this pull request Nov 7, 2017
@nicolaiarocci
Copy link
Member

Test added, rebased and merged (2d2ad29). Thanks.

lexhung added a commit to lexhung/eve that referenced this pull request Dec 10, 2017
* '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.
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants