####User stories:
As an organizer of an event, I want to be able to remove any edits done by participants that I do not think are valid event edits, so that the contribution data for the event can be reliable and accurate.
As an event participant who made an edit, I want to be able to remove any edits done by me that I do not think are valid event edits, so that I can be properly recognized for the contributions that I made and have a clear understanding of my impact.
####Acceptance Criteria:
* Given that a user is on the Contributions tab,
** They should see a new "Actions" column in the table view,
*** And the column should be the last column in the table view,
** And if they are an organizer of the event,
*** They should see a trash icon for each edit in the Actions column,
** And if they are a participant who made an edit during the event,
*** They should see a trash icon for each edit they made in the Actions column,
* And if they click on the trash icon,
** They should see a dialog to verify their choice,
*** And the dialog should have the following text:
**** Header: "Remove this edit from [event name]"
**** Line 1: "Are you sure you want to remove this edit from the event?"
**** Line 2: "It won't be deleted, but it will no longer be associated with the event."
*** And the dialog should have the following options as buttons:
** Cancel
** Remove (in red)
* And, if they select "Remove,"
** The association should be soft deleted
*** Note: In the future, we will want to have some way to show deleted associations (i.e., who deleted + when deleted), such as a new column or new tab with the data. This way, organizers or participants can stay up-to-date on changes that they may want to monitor. But we do not need to show this data in the UI for this ticket.
** The user should get a confirmation/success message informing that their edit was successfully removed from the event, with the following text: "Your edit was successfully removed from the event."
* And, if they select "Cancel,"
** The dialog should disappear and no other action will need to occur
* The new DELETE endpoint should be [[https://www.mediawiki.org/wiki/Extension:CampaignEvents/Api | documented ]]
###Design proposal:
add an 'actions' column to the contributions table, where we'll have Remove as an action (represented with `cdxIconTrash`) - participants will only see the remove action for edits that they have made, not edits that others have made:
{F65780207}
if they click on the Remove action, a dialog comes up that asks if they want to remove their edit from the event, informing the user that the edit will not be deleted, but it will be unassociated with the event:
{F65780209}
if they click on "Remove" on the action, they'll get a confirmation/success message informing that their edit was successfully removed from the event:
{F65780211}
####Out of scope:
* Bulk delete
* Separate column/view to show deleted associations
* Support for who has final "vote" in an "association war"
* Logging: This will be handled separately. In the future, we will want to have some way to show deleted associations (i.e., who deleted + when deleted), such as a new column or new tab with the data. This way, organizers or participants can stay up-to-date on changes that they may want to monitor. But we do not need to show this data in the UI for this ticket.