Skip to content

Conversation

@MyPyDavid
Copy link
Member

@MyPyDavid MyPyDavid commented Jan 23, 2025

Description

Related issue: #1205

This PR adds the field required to the exported XML files. This field sets the minimal compatible RDMO version with which this file can be imported. A validation error will be raised when the RDMO version is lower than the required version. When this field is missing, it is ignored.
The field version is still used for version dependent conversions at import but not for compatibility validation.

The minimal compatible version is defined in the setting EXPORT_MIN_REQUIRED_VERSION.

Motivation and Context

How has this been tested?

Screenshots (if appropriate)

…ally validate it at import

Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
@MyPyDavid MyPyDavid self-assigned this Jan 23, 2025
@MyPyDavid MyPyDavid added this to the RDMO 2.3.0 milestone Jan 23, 2025
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
@MyPyDavid MyPyDavid marked this pull request as ready for review January 30, 2025 10:46
@MyPyDavid MyPyDavid requested a review from jochenklar January 30, 2025 10:47
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
@MyPyDavid MyPyDavid requested a review from jochenklar February 18, 2025 10:41
rdmo/core/xml.py Outdated
_('This RDMO XML file does not have a valid version number.'),
f'XML Version ({root_version}) is greater than RDMO instance version {rdmo_version}'
_('This RDMO XML file was created with a newer version of RDMO and cannot be imported.'),
_('Backwards compatibility is not supported for RDMO versions lower than 2.0.0.')
Copy link
Member

Choose a reason for hiding this comment

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

I think "Backwards compatibility" is the wrong term here. It is more like forward compatibility. Actually the whole block makes no sense, since it will only be shipped with RDMO 2.3.0 which is > 2.0.0, right? (Did I get something wrong?)

Copy link
Member Author

Choose a reason for hiding this comment

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

This is for the case when a RDMO 1.x tries to import an XML from RDMO 2.x.
It is maybe an edge-.. Ohw now I see 🙃, this code will not even exist in the RDMO 1.x 🤣

I'll remove this, thanks for noticing!

Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Copy link
Member

@jochenklar jochenklar left a comment

Choose a reason for hiding this comment

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

Thanks!

@MyPyDavid MyPyDavid merged commit 61aa6cb into 2.3.0 Feb 20, 2025
19 checks passed
@MyPyDavid MyPyDavid mentioned this pull request Feb 20, 2025
@MyPyDavid MyPyDavid deleted the 1205-add-minimum-version-to-rdmo-xml-exports branch February 20, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants