Skip to content

Remove temporary latest->v4.0 pin in getModelVersion once v5.0 is supported #83

@ehennestad

Description

@ehennestad

Summary

openminds.getModelVersion currently rewrites latest to v4.0 as a temporary workaround because v5.0 is not supported yet.

Source: code/internal/+openminds/getModelVersion.m

% Todo: remove. Pin latest version to v4.0 as v5.0 is not supported yet.
if versionNum == "latest"
    versionNum = openminds.internal.utility.VersionNumber("4.0");
    versionNum.Format = "vX.Y";
end

Problem

The current behavior is a hidden override of latest, which can diverge from user expectations and from actual available model versions.

Proposed change

  • Remove the temporary latest -> v4.0 rewrite once v5.0 support is implemented.
  • Ensure latest resolves to the true latest supported version.
  • Add/update tests to cover latest resolution behavior.

Acceptance criteria

  • The TODO block above is removed.
  • openminds.version() / openminds.getModelVersion() return the correct latest supported version without hardcoded fallback to v4.0.
  • Regression tests verify behavior for both explicit version selection and latest.

Notes

If v5.0 support is still pending, consider tracking this issue as blocked-by that support work and referencing the relevant milestone/PR.

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