prkng/api

Delete entries from Checkin history

Closed this issue · 3 comments

mudar commented

@ArnaudA

Currently, the app doesn't allow the user to delete a checkin. Do we want to allow that in the future?
It could be helpful for privacy reasons, or simply if the user likes to have a clean history with only his favorite spots.

Yes, in the history, if we can "with a swipe" on a checkin remove it it can be nice.
However, it only disappear on the app-side. We keep everything on our side.
ps : if swipe isn't a natural behavior on android we can add a small cross icon on the right side :)

Je dirais c’est pas une mauvaise idée, facile à faire. On pourrait juste avoir un “hidden” flag sur les éléments retourné. Plus un endpoint qui les marques “hidden”.

A call to DELETE /v1/checkins will now clear the user's history, making sure nothing gets returned on GET /v1/checkins. This does not delete the checkin server-side, rather just hides them. The checkin is still available when fetched via GET /v1/checkins/{id}.