Open kenpower opened 4 years ago
@itcmartin how does the DB sync work if a record is removed from the local table?
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.
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)
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