itcgames / celiapp

Celiapp: An app to help people with coeliac disease control their intake of gluten.
https://github.com/itcgames/celiapp/projects/1
5 stars 1 forks source link

Delete event #43

Open kenpower opened 4 years ago

kenpower commented 4 years ago

As a user I want to be able to delete an event (meal, symptom or emotion or GIP) so that I can remove incorrect entries from the record.

User should be able to swipe left on an entry to delete it with a confirmation. The gesture should be as close as possible to standard delete gesture

https://miro.medium.com/max/260/1*OvRHf4U4GA50YDEojIrjyQ.gif

kenpower commented 4 years ago

@itcmartin how does the DB sync work if a record is removed from the local table?

setumartin commented 4 years ago

At the moment it is ignored since there is no functionality for deleting events. If we add this, it might be best to mark an event as deleted rather than actually deleting it. Individual columns could still be scrubbed (e.g. images) if needed.

kenpower commented 3 years ago

From https://docs.google.com/document/d/1fH5cDWmOwoiLCL-MLBvNkZyNv5nRR7xp6k-ZocOTGr4/edit#heading=h.mz6fwwyg8x6t

Delete meal As a user I want to be able to delete a meal so that I can remove incorrect entries from the record.

User Interaction: Go to trackings screen Select a tracked meal Press the delete button (this button needs to be added)

In DB: Modified time of the event is updated to the current time In DB: The is_deleted column of the local database is set to True (so need to add new column with a default of False)