Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Update the remote_settings create subcommand to validate major version bumps #229

@nordzilla

Description

@nordzilla

Description

In addition to checking that the same record version does not exist (#225), we should also check that the new record version is only the next available version bump, if it is bumped.


Expectations

When uploading a new major-version bump, we must validate that the minor version is 0.
We must also validate that the previous major version, if it exists, is exactly one less than the new major version.

Examples

Existing Models New Model Outcome Reason
None 2.1 failure The new major version does not have a minor version of zero.
[1.0, 1.1] 2.1 failure The new major version does not have a minor version of zero.
[1.0, 1.1] 3.0 failure The new major version is not exactly one more than the previous major version.
None 2.0 success The new major version has a minor version of zero.
[1.0, 1.1] 2.0 success The new major version has a minor version of zero and is exactly one more than the previous major version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions