Code Monkey home page Code Monkey logo

Comments (7)

TheLastProject avatar TheLastProject commented on July 20, 2024

Comment by brarcher
Sunday Sep 10, 2017 at 16:24 GMT


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.

from android.

TheLastProject avatar TheLastProject commented on July 20, 2024

Comment by github-kp
Monday Sep 11, 2017 at 10:12 GMT


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.

from android.

TheLastProject avatar TheLastProject commented on July 20, 2024

I do think that multi-selecting in the home screen would be a huge improvement. I don't want to add a "delete all cards" button, but deleting in bulk is definitely something I will implement.

from android.

arshbeerSingh avatar arshbeerSingh commented on July 20, 2024

Can I work on this issue?

from android.

TheLastProject avatar TheLastProject commented on July 20, 2024

That would be great @arshbeerSingh :)

from android.

TheLastProject avatar TheLastProject commented on July 20, 2024

Haven't heard from you in quite some months, so I'm un-assigning you in case someone else wants to pick this up. If you want to give it another try just tell me :)

from android.

TheLastProject avatar TheLastProject commented on July 20, 2024

Fixed in d57cb30.

from android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.