-
Notifications
You must be signed in to change notification settings - Fork 28
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
Implement a request fingerprinter that accounts for dependencies #172
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #172 +/- ##
==========================================
+ Coverage 85.11% 86.83% +1.71%
==========================================
Files 14 15 +1
Lines 786 896 +110
==========================================
+ Hits 669 778 +109
- Misses 117 118 +1
|
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.
I was thinking earlier today if there are other approaches aside from this but it seems the Request Fingerprinter route is the best way to go 👍
I’m adding a test, I assume this is OK given how messy dependency resolution is due to ItemProvider, and how unlikely such cases are (having 2 callbacks on the same spider that request the same deps indirectly). However, if we ever get rid of ItemProvider, it might be worth considering. |
One more thing: page params. I have just realized that we should probably alter the fingerprint based on their presence in
|
Pending decisions:
DummyResponse
(ignore)ItemProvider
is gone)