sampie777 / hymnbook2

Mobile hymn book app.
https://hymnbook.sajansen.nl/
Other
2 stars 0 forks source link

[feature] Auto update databases #76

Closed sync-by-unito[bot] closed 1 month ago

sync-by-unito[bot] commented 1 year ago

Only after ‘Remember default melody settings over database update’ #73 and #174 .

┆Issue is synchronized with this Trello card by Unito ┆Attachments: https://trello.com/c/ByMMVAZ4/87-remember-default-melody-settings-over-database-update

sampie777 commented 1 year ago

Some requirements:

sampie777 commented 8 months ago

A way to do the update checking: Send a list with the uuid's of all local song bundles to the server. The server responds with the current hash for each of these ID's. If a hash doesn't match, that bundle needs to update.

More mobile data can be saved by hashing the returned array of hashes in the same order the uuid's were sent.

sampie777 commented 2 months ago

Or just let the server return a list of UUID -> hash maps of ALL bundles.

Let's start with the server returning all bundles. Later we can implement a filter send by the client to reduce this list's length.

The list should include UUID and hash:

[
   {"uuid": "", "hash": ""},
   ....
]