-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imported boards change ID #13
Comments
That's by design actually, to allow cloning a board. I am not particularly attached to this though. What's the use-case exactly? Are you using export-import cycle to move a board between two browsers, repeatedly? My original intent from export/import was to be a backup/restore facility, i.e. something that's used only once in a while. |
Ah, that was the idea ... I was wondering 😁 Basically, I like to work with actual files. Having my data in the browser cache is neat because it's persistent across sessions, but I also want to know where that data is on my hard drive. Specifically, I don't want to have to worry about forgetting to back up my boards before I clear my cache, so I want to save them regularly in a place I know. Also, files are much more versatile than a blob in In short, I think the export/import feature is fantastic and offers a lot of use cases. (Especially as it exports to a standard text format.) |
However, I can also see the value in being able to clone a board. Would it perhaps be an option to ask the user, on importing a board with a pre-existing ID, whether he wants to overwrite or clone the current board? |
We try to keep files out of |
@veddox @davhe see #62 (982e26384f), in here: which does exactly as proposed: there would be an confirmation dialog asking whether do you want to generate a new board id. Choosing "Cancel" will overwrite the board instead. I would agree that this isn't very user oriented, but I needed this as well, and I was short on time ) |
OK, so this should now be resolved with a456a76. The logic now is as follows -
|
Expected behaviour: Import/Export behaves like Save/Load in a desktop software. (To facilitate data preservation after cache clearing, and the sharing of boards between users/browsers.)
Problem: Saving a board by exporting it works as expected. However, reimporting doesn't replace the original board but opens up a new board with a different internal ID. Result: two boards with the same name but possibly differing contents in the board list, one of which then has to be deleted manually.
Requested solution: Importing a board preserves the internal ID (-> change
importBoard
). If there is already a board with this ID open, replace it after asking for confirmation from the user.The text was updated successfully, but these errors were encountered: