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

LIBFCREPO-1345. Treat MetadataError when parsing a row as an invalid row. #296

Merged

Conversation

peichman-umd
Copy link
Member

  • catch the MetadataError when creating the Row object, and yield an InvalidRow
  • encapsulated the internal handling of invalid rows into a _handle_invalid_row() method of MetadataSpreadsheet
  • updated tests
  • updated documentation of the build_file_groups() function
  • fixed type annotation error
  • change build_file_groups() to return a regular dict, since as of Python 3.7 regular dicts preserve insertion order

https://umd-dit.atlassian.net/browse/LIBFCREPO-1345

…row.

- catch the MetadataError when creating the Row object, and yield an InvalidRow
- encapsulated the internal handling of invalid rows into a `_handle_invalid_row()` method of MetadataSpreadsheet
- updated tests
- updated documentation of the `build_file_groups()` function
- fixed type annotation error
- change `build_file_groups()` to return a regular dict, since as of Python 3.7 regular dicts preserve insertion order

https://umd-dit.atlassian.net/browse/LIBFCREPO-1345
@aguilarm-umd aguilarm-umd merged commit a725917 into umd-lib:release/4.2 May 6, 2024
1 check passed
@peichman-umd peichman-umd deleted the feature/LIBFCREPO-1345 branch May 6, 2024 17:55
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