als-computing / splash-server

Server code for the Splash system.
Other
1 stars 4 forks source link

Make it so that the only duplicate DOI allowed is no DOI #99

Closed J-avery32 closed 3 years ago

J-avery32 commented 3 years ago

Currently two different references could be inserted into the system with two of the same DOIs. We should make it so that a document must either have a unique DOI or no DOI.

J-avery32 commented 3 years ago

To do this we can make a partial index: https://docs.mongodb.com/manual/core/index-partial/#std-label-index-type-partial