1km.co.il icon indicating copy to clipboard operation
1km.co.il copied to clipboard

Delete protest button doesn't work on admin page

Open guytepper opened this issue 3 years ago • 1 comments

When trying to delete an existing protest, clicking on the delete button pop up an alert that says that the protest have been deleted, but it does not.

Screen Shot 2020-10-15 at 8 16 47

guytepper avatar Oct 15 '20 05:10 guytepper

It happens because it doesn't really delete the protest, but sets an archived property on it, which we don't condition when we retrieve protests. We should run a migration to add an archived property on each document (so it'd be easier to query).

guytepper avatar Oct 15 '20 05:10 guytepper