Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML file matadata #125

Merged
merged 11 commits into from
Apr 10, 2024
Merged

XML file matadata #125

merged 11 commits into from
Apr 10, 2024

Conversation

ollietulloch
Copy link
Contributor

@ollietulloch ollietulloch commented Apr 8, 2024

This PR allows storage of XML metadata at the File and then Table level.

Config in table mappings tells the file handler where the metadata is and what to label it as. The File handler then passes the metadata to the Table, where it can be accessed downstream.

This constitues a minor revision bump, functionality has been added in a backward compatible manner

@ollietulloch ollietulloch force-pushed the feature/xml_file_matadata branch from 2fa0380 to d6c2c58 Compare April 8, 2024 22:53
Copy link
Contributor

@bshand bshand left a comment

Choose a reason for hiding this comment

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

This broadly looks good to me. A few typos and corrections requested in individual comments.

Overall, I think, given how we use streaming only for files, it'll work fine, but it might be worth an additional test case, in which we have to try a second file encoding.

lib/ndr_import/file/base.rb Outdated Show resolved Hide resolved
lib/ndr_import/file/xml.rb Show resolved Hide resolved
lib/ndr_import/file/xml.rb Outdated Show resolved Hide resolved
lib/ndr_import/file/xml.rb Show resolved Hide resolved
Copy link
Contributor

@bshand bshand left a comment

Choose a reason for hiding this comment

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

All looks good now, thank you. I've also pushed a small commit e633e277c5d70cf42d1d5a02a4c03569fb3ba07e to fix a few typos in the new documentation.

@ollietulloch ollietulloch merged commit 7378771 into main Apr 10, 2024
8 of 9 checks passed
@ollietulloch ollietulloch deleted the feature/xml_file_matadata branch April 10, 2024 13:19
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.

2 participants