Skip to content

Conversation

@ajnelson-nist
Copy link
Contributor

This PR clears TODOs that noted certain branches needed to merge in to the schema. Given the schema testing being used in file generation--parse round-tripping, all branches are assumed to have been merged.

This patch clears TODOs that noted certain branches needed to merge in
to the schema.  Given the schema testing being used in file
generation--parse round-tripping, all branches are assumed to have been
merged.

Signed-off-by: Alex Nelson <[email protected]>
@ajnelson-nist
Copy link
Contributor Author

Absent feedback, I will merge this change Tuesday morning.

Copy link
Contributor

@simsong simsong left a comment

Choose a reason for hiding this comment

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

I recommend putting all of the version numbers in a single place, perhaps a file called constants.py in a class called C. Like this:
https://github.com/Plant-Tracer/webapp/blob/main/constants.py

it will make it easier to maintain...


def test_blank_file_object_filename() -> None:
dobj = Objects.DFXMLObject(version="1.2.0")
dobj = Objects.DFXMLObject(version="2.0.0-beta.0")
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we have all of these strings in a single location?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll put the value into /dfxml/__init__.py, next to the XMLNS constants.

I think I'll also just have the version keyword argument default to that constant string.

Copy link
Contributor

Choose a reason for hiding this comment

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

I want a single constant string... Should I wait off on merging this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, please. I was mid-stream on something else, will handle now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is addressed now. If you have no other feedback, I'm fine with this being merged at your convenience.

Copy link
Contributor

@simsong simsong left a comment

Choose a reason for hiding this comment

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

yay!

@simsong simsong merged commit 92e0cfc into main Jun 24, 2024
@simsong simsong deleted the bump_dfxml_version_references branch June 24, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants