ajboni / drafft-docs

drafft documentation site
https://drafft.aboni.dev
GNU Affero General Public License v3.0
1 stars 0 forks source link

enable editing remote database name in sync settings #15

Open toyfoo opened 3 years ago

toyfoo commented 3 years ago

for purposes of syncing flexibly, it would be useful to be able to change the remote database name. now, the only way to edit a remote database name is to change it in a json export and re-import the file.

ajboni commented 3 years ago

this is tricky, as we are using the project name to create/sync the remote database. Maybe loose this relationship.

toyfoo commented 3 years ago

I understand. But it's a limitation if you want to create a remote backup, relink, have another version,... and you already have a project with a similar name. because then you have to delete your local project to be able to sync with the remote one.

ajboni commented 3 years ago

I understand. But it's a limitation if you want to create a remote backup, relink, have another version,... and you already have a project with a similar name. because then you have to delete your local project to be able to sync with the remote one.

Yes, I think this behavior was planned like this to avoid someone mistakenly changing and corrupting another similar named project. For example a typo may cause overwriting of another project. But I agree this should be more flexible / handled differently.

toyfoo commented 3 years ago

maybe a check, that if data already exists at the remote server, the application asks if the local database can be emptied first. and at that time the name is locked. maybe that is a middle way between locking the user completely out of different names for remote db and local db, but ensuring that once a sync has been established it is not messed up.

ajboni commented 3 years ago

but ensuring that once a sync has been established it is not messed up.

I like it, thanks for the idea.