Skip to content

Bump all generated-file and reviewed-file DFXML version references - #45

Merged
simsong merged 4 commits into
mainfrom
bump_dfxml_version_references
Jun 24, 2024
Merged

Bump all generated-file and reviewed-file DFXML version references#45
simsong merged 4 commits into
mainfrom
bump_dfxml_version_references

Conversation

@ajnelson-nist

Copy link
Copy Markdown
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 <alexander.nelson@nist.gov>
@ajnelson-nist

Copy link
Copy Markdown
ContributorAuthor

Absent feedback, I will merge this change Tuesday morning.

@simsongsimsong left a comment

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown
ContributorAuthor

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
Copy Markdown

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
Copy Markdown
ContributorAuthor

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
Copy Markdown
ContributorAuthor

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.

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>

@simsongsimsong left a comment

Copy link
Copy Markdown

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 mainJun 24, 2024
@simsong
simsong deleted the bump_dfxml_version_references branch June 24, 2024 20:29
Sign up for freeto 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.

2 participants

@ajnelson-nist@simsong