NASA-PDS / registry-sweepers

Scripts that run regularly on the registry database, to clean and consolidate information
Apache License 2.0
0 stars 1 forks source link

implement graceful handling of malformed registry documents #23

Closed alexdunnjpl closed 1 year ago

alexdunnjpl commented 1 year ago

🗒️ Summary

Test against prod db suggests that registry docs cannot be relied upon to be invariably well-formed. This PR prevents malformed docs from preventing successful execution of sweepers. Erroneous docs are logged in as helpful a way as we reasonably can.

⚙️ Test Data and/or Report

Unit tests pass. New tests added for malformed documents

♻️ Related Issues

fixes #20