-
-
Notifications
You must be signed in to change notification settings - Fork 747
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
BANDWIDTH_SAVER no longer works with resolve_resource_projection #1338
Comments
Not sure I get what you mean. Per BANDWIDTH_SAVER documentation:
Which seems coherent with the behavior you are getting. |
Sorry, I muddied the waters by including the output from my debug session. With |
Fix for pyeve#1338 Uncommented and updated unit tests Updated CONTRIBUTING.rst
Fix for #1338 Uncommented and updated unit tests Updated CONTRIBUTING.rst
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Since @nicolaiarocci merged this to master, and was able to resolve the travis failures by pinning the flask version, I'm closing this issue. |
eve/eve/methods/common.py
Line 677 in 6063b1a
The sense of the conditional
makes the BANDWIDTH_SAVER have no effect, as all of the document fields get removed, unless one has all the fields in the projection.
Example:
results in only the auto processed fields. If I force-jump while debugging to skip to the return statement on the second one, I get the expected entire document. Below is what I get with that skip to the return:
Python version: 3.7.1
Eve version: 0.9.2
Schema:
The text was updated successfully, but these errors were encountered: