OpenTreeOfLife / opentree

Opentree browsing and curation web site. For overarching or cross-repo concerns, please see the 'germinator' repo.
http://tree.opentreeoflife.org/
BSD 2-Clause "Simplified" License
108 stars 26 forks source link

Use a simpler scheme for safe element IDs #1304

Closed jimallman closed 1 year ago

jimallman commented 1 year ago

As discussed, we'd like to have single- or double-digit IDs for elements (esp. trees). This scheme will keep track of the highest minted IDs for each element type and store it in phylesystem. Addresses #1302.

jimallman commented 1 year ago

I'm still testing this on devtree, so holding it in draft mode for now.

jimallman commented 1 year ago

OK, this seems to be working as intended on devtree. Studies now save with accurate highest-minted-id information, reload properly, and skip any minted-then-deleted IDs. Done, I think.

jimallman commented 1 year ago

See the history of study tt_266 for a series of test commits.