Skip to content

Config Version Downgrade is irrational #1769

Open
@gbjk

Description

Originally posted by @gloriousCode in #1735 (comment)

TL;DR

Config Downgrade is an irrational mess

Problem

Downgrades are currently part of the usual upgrade path.
That's impossible. If the latest registered is less than the config version, there is no downgrade code available to run.
Additionally, downgrades need to stop before the target version.

Solution

  • Downgrades to a version need to be run on a branch that contains the existing current version
  • Downgrades should not be invoked automatically
  • Upgrade and Downgrade invoked from cmd/config should not use json marshalling, which will introduce stateful representation
  • Upgrading to a specific version can be supported, but we won't brag about it highlight it specifically as a feature

Metadata

Assignees

Labels

Type

No type

Projects

  • Status

    In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions