openbeta-graphql icon indicating copy to clipboard operation
openbeta-graphql copied to clipboard

feat: topo data API

Open btmccord opened this issue 1 year ago • 6 comments

We need the ability to to assign and retrieve a JSON object to photos/photo tags for the topo feature

btmccord avatar Feb 06 '24 15:02 btmccord

Do you have some sample data so that we can figure out how to store/retrieve it in the backend?

vnugent avatar Feb 07 '24 15:02 vnugent

Yep. Here you go

testdata.json

btmccord avatar Feb 07 '24 20:02 btmccord

I would think we can just store it as a string. The paper import function works with a string and the export function returns a JSON object or string. See http://paperjs.org/reference/path/#exportjson

btmccord avatar Feb 07 '24 20:02 btmccord

do you expect the internal structure to change? Another word should we store a version number along with the data?

vnugent avatar Feb 09 '24 20:02 vnugent

I think its likely to change structure, especially as we implement new features. A version number seems like a good idea. Although the version could also be put into the topo data itself, which might be better?

btmccord avatar Feb 09 '24 20:02 btmccord

Sure. We can make it an internal field for now. The version can help the frontend rendering code differentiate changes.

vnugent avatar Feb 10 '24 17:02 vnugent