Skip to content

Remove unused and untested log filter helpers#6747

Merged
yarikoptic merged 1 commit intodatalad:masterfrom
mih:mnt-progresslog
Jun 6, 2022
Merged

Remove unused and untested log filter helpers#6747
yarikoptic merged 1 commit intodatalad:masterfrom
mih:mnt-progresslog

Conversation

@mih
Copy link
Copy Markdown
Member

@mih mih commented Jun 4, 2022

Changelog

🪓 Deprecations and removals

NoProgressLog and OnlyProgressLog.

They seem to be left-overs from a ProgressHandler-related
implementation that is no longer useful. There is no trace
of this trivial code being used in any extention.

Fixes datalad#6732
@mih mih added the semver-minor Increment the minor version when merged label Jun 4, 2022
@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit 85e02d8 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Security 2

View more on Code Climate.

Comment thread datalad/log.py
pb.clear()


class NoProgressLog(logging.Filter):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There only is a comment referring to it in l. 235 of this file ((filtered away by NoProgressLog)), maybe it should be removed, too, to avoid future confusion?

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 4, 2022

Codecov Report

Merging #6747 (85e02d8) into master (d657c17) will increase coverage by 1.62%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #6747      +/-   ##
==========================================
+ Coverage   88.79%   90.41%   +1.62%     
==========================================
  Files         353      353              
  Lines       45744    45755      +11     
==========================================
+ Hits        40617    41370     +753     
+ Misses       5127     4385     -742     
Impacted Files Coverage Δ
datalad/log.py 88.35% <ø> (+0.51%) ⬆️
datalad/local/unlock.py 100.00% <0.00%> (ø)
datalad/interface/common_opts.py 100.00% <0.00%> (ø)
datalad/support/tests/test_annexrepo.py 97.87% <0.00%> (+<0.01%) ⬆️
datalad/core/distributed/tests/test_clone.py 97.59% <0.00%> (+0.01%) ⬆️
datalad/local/tests/test_wtf.py 98.80% <0.00%> (+0.02%) ⬆️
datalad/core/distributed/clone.py 91.24% <0.00%> (+0.03%) ⬆️
datalad/support/annexrepo.py 90.37% <0.00%> (+0.08%) ⬆️
datalad/tests/utils_pytest.py 89.72% <0.00%> (+0.49%) ⬆️
datalad/_version.py 47.70% <0.00%> (+0.56%) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d657c17...85e02d8. Read the comment docs.

@yarikoptic yarikoptic merged commit dc9a61d into datalad:master Jun 6, 2022
@mih mih mentioned this pull request Jul 1, 2022
40 tasks
@mih mih deleted the mnt-progresslog branch July 19, 2022 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-minor Increment the minor version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log filters datalad.log.(Only|No)ProgressLog are unused and untested

3 participants