Skip to content
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

New feature: Delete all cards #140

Open
github-kp opened this issue Sep 10, 2017 · 2 comments
Open

New feature: Delete all cards #140

github-kp opened this issue Sep 10, 2017 · 2 comments

Comments

@github-kp
Copy link

github-kp commented Sep 10, 2017

Suggestion:
Add menu entry "Delete all cards" to the main menu.

Why is this useful?

Scenario A:
Deleting all cards one after the other is cumbersome.

Scenario B: "Clean import"

  • User wants the same cards on 2 devices.
  • User adds or modifies cards on device 1.
  • User exports the cards of device 1 to a file.
  • User deletes all cards on device 2.
  • User imports the file on device 2.

This feature would also solve the following issue I observed:

  • The same cards exists on 2 devices.
  • User modifies a card name on device 1.
  • User exports the cards of device 1 to a file.
  • User imports the file on device 2.
  • Card name on device 2 does not get updated.
@brarcher
Copy link
Owner

I'm not opposed to adding this option. Being able to remove all cards may be useful. Note though that a user has the ability to do this now by removing all data from the app from Settings, which has the same effect:

image

Is the goal to have imports be clean, where all pre-existing data is wiped and only the imported data remains? Right now all imports attempt to insert items into the database, instead of update them. The assumption is that the data on the phone may be more up-to-date that the backup, and the backup should only restore data instead of overwrite it. However, to enable a clean import, would it suffice to have an option on the import screen which asks if all data should be wiped before the import? The only risk here is that if the import fails (perhaps it is corrupted) there will be no data left on the phone.

@github-kp
Copy link
Author

github-kp commented Sep 11, 2017

Thanks for the quick reply.

Cool, I did not think of using "Clear data". I tried it -- it works and this basically solves my problem. Nevertheless, I believe it would still be a nice feature as deleting all cards would be more convenient from within the app (e.g. right before a subsequent import). Also, not every user knows or thinks of the "Clear data" option, including myself ;-)

Yes, I was looking for a way to wipe all pre-existing data on the device before importing (newer) data from another device. This results in having exactly the same / latest data on both devices. I kind of maintain the cards on one device and want to keep other devices in sync. And an option for deleting all cards allows me to do so.

Actually I like the current implementation / idea of the import. If I understand correctly, it does kind of a merge if there is pre-existing data, which is nice.

In my opinion it would be suffice to have a separate menu option for deleting all cards. And this function could be used before importing cards, if the user likes to do so. I believe it does not necessarily need to be part of the import procedure. But it could be, of course. However, my personal preference would be a unique feature because it allows both

  • deleting all cards -- for any reason,
  • and a "clean import".

I believe you are right with the import-failure-risk -- in case the pre-existing data on the device is more up-to-date. Actually this risk might be yet another reason for having a separate menu option for deleting all cards, instead of letting it be part of the import procedure, right? Also, the user could check the "Delete all cards" option during the import by accident. At least these are my thoughts to this.

In my case however, I do not care if all data is lost due to an import-failure because I attempted to do a "clean import" anyway and the latest data is still in the backup (and on another device as well).

In case the user chooses to delete all cards, it would be good to validate the decision by asking "All cards will be deleted. Continue?" or something like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants