zetkin / organize.zetk.in

Organizer front-end of the Zetkin system for organizing activism
21 stars 14 forks source link

Delete survey submission #1261

Closed niklasva82 closed 3 years ago

niklasva82 commented 3 years ago

Resolves #665

richardolsson commented 3 years ago

In case anyone's interested, here is how I tested that this works and does what one would expected.

I set up a call assignment to quickly respond to the survey that is part of the dummy data, on behalf of six dummy people. I then created three Smart Search queries, one of each type that is related to survey submissions: survey_submission, survey_response and survey_option.

I then set up a view containing columns for the three smart searches, and one of each of the view columns that relate to survey submissions. I added all the six respondents to the view.

I then tried to delete two submissions, and looked at the view to verify that all indications of the submissions ever having existed were no longer in the view:

image

This way, it tests both the deleting itself, but also the survey-related Smart Search and view features.