NASA-PDS / doi-service

Service and tools for generating DOIs for PDS bundles, collections, and data sets
https://nasa-pds.github.io/doi-service
Other
2 stars 3 forks source link

Use DOI as Primary Key for Transaction Database #285

Closed collinss-jpl closed 2 years ago

collinss-jpl commented 2 years ago

🗒️ Summary

This PR modifies the schema of the local DOI transaction database to use an assigned DOI value as the primary key or handle for each row written. This takes the responsibility off of the PDS identifier value such that it can be updated when necessary during a DOI submission. The ability to perform the actual update will be included in a future PR.

⚙️ Test Data and/or Report

Unit tests have been modified where necessary to account for the new database schema. Many unit tests from the draft action have been moved to the test suite for the reserve action, as these tests did not provide a DOI value with the input. tox.log

♻️ Related Issues

Partially address #278 fixes #286