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

[MRG+1] Update depth middleware stats (fixes #3245) #3253

Merged
merged 2 commits into from Jul 11, 2018
Merged

[MRG+1] Update depth middleware stats (fixes #3245) #3253

merged 2 commits into from Jul 11, 2018

Conversation

rpkilby
Copy link
Contributor

@rpkilby rpkilby commented May 9, 2018

  • Update the docs & default settings to reference DEPTH_STATS_VERBOSE instead of DEPTH_STATS, which is not currently used.
  • Remove unneeded branches for self.stats checks, as stats are always provided (no way to not provide a stats object).

(fixes #3245)

@whalebot-helmsman
Copy link
Contributor

@rpkilby Problem with unit-tests was fixed in master. Can you merge master to this PR?

@codecov
Copy link

codecov bot commented May 17, 2018

Codecov Report

Merging #3253 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3253      +/-   ##
==========================================
+ Coverage   82.12%   82.13%   +<.01%     
==========================================
  Files         228      228              
  Lines        9599     9598       -1     
  Branches     1385     1384       -1     
==========================================
  Hits         7883     7883              
  Misses       1457     1457              
+ Partials      259      258       -1
Impacted Files Coverage Δ
scrapy/spidermiddlewares/depth.py 100% <100%> (+2.85%) ⬆️
scrapy/settings/default_settings.py 98.62% <100%> (ø) ⬆️

@rpkilby
Copy link
Contributor Author

rpkilby commented May 19, 2018

Updated

@kmike
Copy link
Member

kmike commented Jul 9, 2018

Thanks @rpkilby, it looks good!

@kmike kmike changed the title Update depth middleware stats (fixes #3245) [MRG+1] Update depth middleware stats (fixes #3245) Jul 9, 2018
@kmike kmike added this to the v1.6 milestone Jul 9, 2018
@dangra dangra merged commit f8f5f46 into scrapy:master Jul 11, 2018
@rpkilby rpkilby deleted the depth-stats branch July 11, 2018 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEPTH_STATS has no effect
4 participants