AndBible / and-bible

AndBible: Bible Study
https://andbible.org
GNU General Public License v3.0
549 stars 193 forks source link

Option to merge database (instead of replacing) #3259

Closed tuomas2 closed 3 weeks ago

tuomas2 commented 1 month ago

With new .abdb format, we can offer option to merge database instead of replacing the current one.

UI: When restoring Database, we should give option: "Do you want to replace current database, or import entities to current database?". Buttons: "Replace", "Import"

Related: #3141

agrogers commented 1 month ago

Do you mean merge notes, labels etc?

tuomas2 commented 1 month ago

Merge content of another database, so yes, notes, labels, bookmarks etc. Each entity has their UUIDs so there will be no conflicts. If there's item with same UUID, it will be skipped.

tuomas2 commented 1 month ago

Will ask question

Restore -> Restore or Import image

No changes image

Then ask this question for syncable databases (bookmarks, readingplans, workspaces): image

agrogers commented 1 month ago

Got it. So merging missing records not existing records.

On Thu, 23 May 2024, 21:24 Tuomas Airaksinen, @.***> wrote:

Will ask question

Restore -> Restore or Import image.png (view on web) https://github.com/AndBible/and-bible/assets/5811789/4a258ce2-077f-4ad9-83b1-c8bfe70d2b01

No changes image.png (view on web) https://github.com/AndBible/and-bible/assets/5811789/82b1ba23-0c6c-44e5-99e3-e7c73b665672

Then ask this question for syncable databases (bookmarks, readingplans, workspaces): image.png (view on web) https://github.com/AndBible/and-bible/assets/5811789/c281f242-08e2-4a38-b8d0-1369646f0ec7

— Reply to this email directly, view it on GitHub https://github.com/AndBible/and-bible/issues/3259#issuecomment-2127346997, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADKGTJQ6TG2GR5CCSXON7O3ZDX7LJAVCNFSM6AAAAABIFEJQVSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGM2DMOJZG4 . You are receiving this because you commented.Message ID: @.***>