[server] webui DB import and export#14347
Conversation
ngxson
left a comment
There was a problem hiding this comment.
I'm a bit concern that this is import/export at raw database level, not at DAO level.
This can be problematic if we introduce db migration in the future. For example, if the export is from an older version and it's imported in a newer version of the code, it will be messed up
|
The solution and this PR depends on how much we want to rely on Dexie. Dexie and dexie-export-import track the database version afaict, so it would error on incompatible db imports. It also enables database migrations: https://dexie.org/docs/Tutorial/Design#database-versioning Otoh, Dexie probably also isn't bug-free in this regard, and more abstractions/dependent. I tend to prefer fewer abstractions (no Dexie, just IndexedDB, lower-level import, export, migrations), but since Dexie was already used, i went with it for this PR. |
…gml-org#618) * Webui: add Rename/Upload conversation in header and sidebar webui: don't change modified date when renaming conversation * webui: add a preset feature to the settings ggml-org#14649 * webui: Add editing assistant messages ggml-org#13522 Webui: keep the following message while editing assistance response. webui: change icon to edit message * webui: DB import and export ggml-org#14347 * webui: Wrap long numbers instead of infinite horizontal scroll (ggml-org#14062) fix sidebar being covered by main content ggml-org#14082 --------- Co-authored-by: firecoperana <firecoperana>
addresses #11718