Note: we will need to check the organizer's permissions. And to do this, we will likely need to ask them to make the change on the wiki where the event was created, like for most other write actions. Note that they would still be able to add edits made on other wikis.
User stories:
As an organizer of an event, I want to be able to add edits done by participants that I 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 add edits done by me that I 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.
Notes:
* Whoever takes on this ticket will determine the best way to identify an edit to add.
- Take note of this Slack conversation for alternative options
Acceptance Criteria:
- Given that a user is on the Contributions tab,
- And they are an organizer of the event,
- Or they are a registered participant
- They should see a button in the top corner, with the label: "Add edit to this event"
- And if they click on the button, they should see the following text:
- Header: "Add an edit to [event name]"
- Line 1: "Add an edit"
- Line 2: Text box to add in edit
- Line 3: "You can enter a revision ID (oldid)"
- Note: Instructional text may change, depending on the solution that is implemented.
- And the dialog should have the following options as buttons:
- Cancel
- Add edit (in blue)
- And if they select Cancel,
- The dialog disappears and no further action needs to be done
- And if they select "Add edit,"
- The edit is added if valid,
- And they receive a confirmation message: "Edit added, It will appear here soon."
- And if the edit is not valid, add an error message, which includes:
- Edit not done by the editor or organizer
- If editor: "Add an edit that you did only."
- If organizer: "Add an edit by an event participant only."
- Edit not on a target wiki of event
- "Add an edit on a target wiki of the event."
- Edit not during event period (i.e., between start & end date of event)
- "This event is not currently active, so you cannot associate this edit with it."
- Edit id/text is not valid in general (such as gibberish or not identified in the db)
- "This edit is not recognized. Please try again."
- Edit not done by the editor or organizer
- And if they try to add the same edit twice (e.g., before the first job was processed)
- The edit should still only be added once, and the second submission should be ignored (ignoreDuplicates on the job could suffice)
- And if they click on the button, they should see the following text:
Design proposal:
- Participant/organizer clicks on 'Add edit to this event
- Once that button is clicked, a dialog comes up prompting the user to insert an edit identifier: revision ID, or full diff link ( e.g. https://en.wikipedia.org/w/index.php?title=User_talk:PralineCoffee&oldid=1308319125)
- After the user adds their edit, they receive a confirmation message.
{F66081226}
Out of scope:
- Bulk add
- Separate column/view to show added 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 added associations (i.e., who & when added), 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.



