Skip to content

Remove deprecated configs #1712

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

Merged
merged 8 commits into from
Jul 20, 2023
Merged

Remove deprecated configs #1712

merged 8 commits into from
Jul 20, 2023

Conversation

ceyonur
Copy link
Contributor

@ceyonur ceyonur commented Jul 12, 2023

Why this should be merged

Removes deprecated flags, which were deprecated for ~2 months

How this works

Removes deprecated flags from keys and configs.

How this was documented

ava-labs/builders-hub#1450

@ceyonur ceyonur added the cleanup Code quality improvement label Jul 12, 2023
@ceyonur ceyonur requested a review from StephenButtolph as a code owner July 12, 2023 16:49
@ceyonur ceyonur self-assigned this Jul 12, 2023
@ceyonur
Copy link
Contributor Author

ceyonur commented Jul 14, 2023

We need a new ANR release to fix those tests.

ramilexe pushed a commit to ConsiderItDone/avalanchego that referenced this pull request Jul 14, 2023
Co-authored-by: Dan Laine <daniel.laine@avalabs.org>
Co-authored-by: Stephen <stephen@avalabs.org>
@StephenButtolph StephenButtolph added this to the v1.10.6 milestone Jul 19, 2023
@StephenButtolph StephenButtolph changed the title remove deprecated configs Remove deprecated configs Jul 20, 2023
Copy link
Contributor

@joshua-kim joshua-kim left a comment

Choose a reason for hiding this comment

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

I think we will need a corresponding docs PR to remove the deprecated configs

@@ -1509,12 +1485,3 @@ func providedFlags(v *viper.Viper) map[string]interface{} {
}
return customSettings
}

// getRenamedKey returns the new key if it is set, otherwise it returns the deprecated key.
func getRenamedKey(v *viper.Viper, deprecatedKey string, newKey string) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

This might be still useful to keep around if we deprecate keys in the future

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would fail linting as dead code

@@ -14,7 +14,7 @@ AVALANCHE_PATH=$(
# https://github.com/ava-labs/avalanche-network-runner
GOARCH=$(go env GOARCH)
GOOS=$(go env GOOS)
NETWORK_RUNNER_VERSION=1.3.9
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this in the diff?

Copy link
Contributor

Choose a reason for hiding this comment

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

The older ANR versions used the deprecated genesis key.

@StephenButtolph StephenButtolph merged commit 25db3c5 into dev Jul 20, 2023
@StephenButtolph StephenButtolph deleted the remove-deprecated-configs branch July 20, 2023 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants