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

Remove use of deprecated code and defaults in config #3956

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Nov 22, 2023

This will unblock #3954: it removes the use of deprecated code. As part of this removal, I have removed the defaults set on the field so they are no longer interpreted and tests no longer need to refer to them.

@atoulme atoulme requested review from a team as code owners November 22, 2023 01:22
@atoulme atoulme force-pushed the remove_use_of_deprecated_code branch from 4cb03bd to d2740e5 Compare November 23, 2023 00:12
@@ -218,7 +218,6 @@ type CollectdConfig struct {
// If you won't be using any collectd monitors, this can be set to true to
// prevent collectd from pre-initializing
DisableCollectd bool `yaml:"disableCollectd" default:"false"`
// Deprecated: this setting has no effect and will be removed.
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we removing the deprecated notices here?

(This might be a duplicate of @pjanotti's question, so feel free to ignore if that's the case)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because I made a mistake. While this code has no usage in go, it is serialized to represent collectd config on disk, and removing it breaks tests. I should not have deprecated it in the first place.

@atoulme atoulme merged commit af4f156 into main Nov 29, 2023
44 checks passed
@delete-merged-branch delete-merged-branch bot deleted the remove_use_of_deprecated_code branch November 29, 2023 18:50
@github-actions github-actions bot locked and limited conversation to collaborators Nov 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants