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

♻️ Reorganize Config.version_defaults creation #412

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

nevans
Copy link
Collaborator

@nevans nevans commented Feb 26, 2025

This reorganizes the creation of Config.version_defaults to make it easier to cherry-pick backported config changes to stable branches, and to require fewer updates for new x.y.0 releases:

  • Sets Config[0.5] as a diff from the previous versioned default, just like the other versioned defaults.
  • Sets Config[:current] = Config[VERSION.to_f], so it will not need to be updated for any x.y.0 release. Likewise, sets Config[:next] and Config[:future] to Config[VERSION.to_f + 0.1] or + 0.2, so they which will only rarely need to be changed.
  • Because Config[:default] and Config[:current] are now derived two different ways, both a warning and a test have been added to ensure they remain synchronized.
  • A few other Config.version_defaults tests were added or updated.

This reorganizes the creation of `Config.version_defaults` to make it
easier to cherry-pick backported config changes to stable branches:
* Sets `Config[0.5]` as a diff from the previous versioned default, just
  like the other versioned defaults.
* Sets `Config[:current] = Config[VERSION.to_f]`, so it will not need to
  be updated for any x.y.0 release.  Likewise, sets `Config[:next]` and
  `Config[:future]` to `Config[VERSION.to_f + 0.1]` or `+ 0.2`, so they
  which will only rarely need to be changed.
* Because `Config[:default]` and `Config[:current]` are now derived two
  different ways, both a warning and a test have been added to ensure
  they remain synchronized.
* A few other `Config.version_defaults` tests were added or updated.
@nevans nevans changed the title ♻️ Update versioned default configs ♻️ Reorganize Config.version_defaults creation Feb 26, 2025
@nevans nevans merged commit d10881e into master Feb 26, 2025
37 checks passed
@nevans nevans deleted the config-reorder-version-defaults branch February 26, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant