Skip to content

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

Merged
albertvaka merged 7 commits intomasterfrom
albertvaka/disk-check-include-exclude
Sep 29, 2020
Merged

disk check: rename whitelist/blacklist to include/exclude#7627
albertvaka merged 7 commits intomasterfrom
albertvaka/disk-check-include-exclude

Conversation

@albertvaka
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

codecov Bot commented Sep 21, 2020

Comment thread datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/config.py Outdated
Comment thread disk/datadog_checks/disk/disk.py Outdated
Comment thread disk/datadog_checks/disk/disk.py Outdated
Comment thread disk/tests/test_filter_deprecated.py Outdated
@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
Copy Markdown
Member

mx-psi commented Sep 24, 2020

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

@hithwen
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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