neopostmodern / structure

Structure is a knowledge management tool
https://structure.love
GNU Affero General Public License v3.0
18 stars 0 forks source link

Cross-check data consistency by sending a server data hash #232

Open neopostmodern opened 9 months ago

neopostmodern commented 9 months ago

Could e.g. md5 the JSON of all notes sorted by createdAt, mapped to objects with only _id and updatedAt on the server, send that along with every request for updated entities and after merging the changes the client could calculate the hash locally and notify the user if it mismatches to allow refetching