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 the icon has a tooltip with the message "Remove contribution" on mouse over
- 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 the icon has a tooltip with the message "Remove contribution" on mouse over
- They should see a new "Actions" column in the table view,
- 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:
- And the dialog should have the following text:
- Cancel
- Remove (in red)
- They should see a dialog to verify their choice,
- And, if they select "Remove,"
- The association should be hard deleted
- Note: This may be changed to soft deletion when we enable logging (see T406633)
- The user should get a confirmation message informing that their edit was removed from the event, with the following text: "The edit was removed from the event."
- The association should be hard deleted
- And, if they select "Cancel,"
- The dialog should disappear and no other action will need to occur
- If there is an error when trying to delete
- The user should get an error message with the following text: "Error removing contribution."
- The new DELETE endpoint should be 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:
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:
if they click on "Remove" on the action, they'll get a confirmation/success message informing that their edit was removed from the event:
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 T406633. 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.


