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

disk check: rename whitelist/blacklist to include/exclude #7627

Merged
merged 7 commits into from
Sep 29, 2020

Conversation

albertvaka
Copy link
Contributor

What does this PR do?

Rename, keeping compatibility with the old names and adding a deprecation warning. We already had some deprecation warnings, so I've put them all together.

ofek
ofek previously requested changes Sep 18, 2020
Copy link
Contributor

@ofek ofek left a comment

Choose a reason for hiding this comment

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

Let's remove the old options from config as they won't matter for fresh installs.

@codecov
Copy link

codecov bot commented Sep 21, 2020

disk/datadog_checks/disk/disk.py Outdated Show resolved Hide resolved
disk/datadog_checks/disk/disk.py Outdated Show resolved Hide resolved
disk/tests/test_filter_deprecated.py Outdated Show resolved Hide resolved
@albertvaka albertvaka force-pushed the albertvaka/disk-check-include-exclude branch from 5bf53ab to 8328f49 Compare September 21, 2020 10:40
@mx-psi
Copy link
Member

mx-psi commented Sep 24, 2020

#7648 adds new options that need to be renamed too.

@hithwen
Copy link
Contributor

hithwen commented Sep 25, 2020

There are conflicts on the PR

…ck-include-exclude

# Conflicts:
#	disk/datadog_checks/disk/disk.py
#	disk/tests/test_filter.py
#	disk/tests/test_unit.py
@albertvaka albertvaka force-pushed the albertvaka/disk-check-include-exclude branch from 249494b to f333c3b Compare September 25, 2020 10:10
@albertvaka
Copy link
Contributor Author

Updated the PR to include the new global config options. The failing test seems unrelated to my changes. I think this PR can wait to be merged for 7.24.

Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

LGTM! I think we should remove the datadog_checks_dev tag

@albertvaka albertvaka merged commit f8e78f7 into master Sep 29, 2020
@albertvaka albertvaka deleted the albertvaka/disk-check-include-exclude branch September 29, 2020 13:06
albertvaka added a commit that referenced this pull request Sep 30, 2020
Fixes deprecation warnings added by myself in PR #7627
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants