-
-
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
Allow event fetched on diffs#475 #1224
Allow event fetched on diffs#475 #1224
Conversation
Feature new event hook for diffs, merged branch instead of new PR to pyeve/eve
Merged the changes as discussed in #1223 to this PR instead of making another PR since this is labelled for 0.8.2. The callback now gets the entire list of diffs, which I think makes sense. Also updated the tests in TestCompleteVersioning; Hateos _links seems to get an extra |
Can you please investigate further on this, and report back. Thanks. |
Looks like Lines 622 to 634 in 7a8a6c2
other_params in Line 296 in 7a8a6c2
Only observed for Also, maybe |
rebased and merged, thank you |
See PR #1223 for the other alternative introducing
on_fetched_diffs
.This PR allows
version=diffs
to run whenon_fetched*
event hooks are wired up.This makes all item and resource fetches fire the callback. A use case could be anonymizing documents via on_fetched_*. Accessing with version=diffs would expose the documents.
As discussed in #475 and inline code notes
version=diffs
will return partial documents which can have unexpected results if it's not handled correctly in the callback.