idno / known

A social publishing platform.
https://withknown.com/opensource
Other
1.06k stars 194 forks source link

Datamodel: Annotations are stored wrong #2461

Open mapkyca opened 5 years ago

mapkyca commented 5 years ago

While trying to do this:

List, edit, delete or otherwise manage annotations and comments

I encountered this error:

It's not really possible, as annotations are stored directly on the object

Some other notes:

The current data model is very heavily influenced by the fact it was originally stored in mongo only. Storing annotations on the actual object is utterly crazy when you're in a relational world.

Redesign the data model to store annotations in its own table.

Give us some context:

mediaformat commented 9 months ago

Storing annotations on the actual object...

I'm encountering this very issue while trying to fetch individual reply annotations, the whole object is returned...

3186

mediaformat commented 7 months ago

While we are refactoring relations between tables, I would also make annotations have a relation to their (remote) user entity.

This will ensure remote user info such as owner_name & owner_image are always current, for example.