globaldothealth / turnkey-curator-portal

MIT License
0 stars 0 forks source link

Revisit integers as identifiers #61

Open stanislaw-zakrzewski opened 6 months ago

stanislaw-zakrzewski commented 6 months ago

A while ago we introduced integers as identifiers for cases in Turnkey Curator Portal. This can be an issue in the future as Abhishek pointed out:

Not a blocker for this, but we should re-visit ID as integers - can make it difficult to integrate external cases into the databases that also need to be updated, e.g. for mpox, we used N and E prefixes to integrate two different line lists into one.

jim-sheldon commented 6 months ago

I think we should discuss this further. I would tend toward using a separate curation-specific field, as this seems to be a curation-specific action we would want to keep an audit trail for. The document object ID is created and managed by Mongo, changing it is janky and may bring about unintended side-effects.