Pokerole-Software-Development / Pokerole-Data

A repository of Pokerole data in application consumable formats. Key Maintainer: Willowlark
3 stars 5 forks source link

Generate more accurate IDs for Foundry #37

Closed tech-ticks closed 1 year ago

tech-ticks commented 1 year ago

The Foundry compendium generator uses the _id field in the JSON documents, which doesn't match Foundry's usual ID format (16 alphanumeric characters, upper- and lowercase). This might be the reason why the source ID is broken once a document is imported to the world:

image

This is problematic since it prevents potential future data migrations where documents could be updated with new data from the compendium. Additionally, not being compliant with the expected ID format might lead to issues with the new database format introduced with v11 (not tested yet).

Willowlark commented 1 year ago

I ran into an issue with this on something else I was working on in foundry, I have a bit of code that can generate a better id to slap in

Willowlark commented 1 year ago

Implemented