Allow event fetched on diffs#475#1224
Closed
einarhuseby wants to merge 9 commits into
Closed
Conversation
Feature new event hook for diffs, merged branch instead of new PR to pyeve/eve
Contributor
Author
|
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 |
Member
Can you please investigate further on this, and report back. Thanks. |
nicolaiarocci
added a commit
that referenced
this pull request
Feb 9, 2019
Member
|
rebased and merged, thank you |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See PR #1223 for the other alternative introducing
on_fetched_diffs.This PR allows
version=diffsto 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=diffswill return partial documents which can have unexpected results if it's not handled correctly in the callback.