User story:
As an organizer, I want to be able to choose if collaborative contribution data is collected for my event, so that I can report on impact when wanted and keep contribution data more private when not wanted.
Acceptance Criteria:
- Given that an organizer has created an event that focuses on contributions (i.e., Editing event, Media upload event, Backlog drive or Contest selected as at least one option in "Event type"),
- And if hybrid or in person, it is not in a country that is considered "no publish" or "high risk" (see list)
- The organizer should see the option to toggle on "Show contribution statistics," with the following helper text: "Enable contribution statistics, so that you can share and understand the impact of the event. A summary and full list of edits is provided."
- And this toggle should be placed between Participation Options and P&E Dashboard link
- And it should be toggled on by default
- The organizer should see the option to toggle on "Show contribution statistics," with the following helper text: "Enable contribution statistics, so that you can share and understand the impact of the event. A summary and full list of edits is provided."
- And if the organizer tries to enable contribution tracking for an invalid event type,
- They should see the following error message: "Contribution statistics can only be enabled for events with the following types: <list>"
- And if the organizer tried to enable contribution tracking for an invalid country,
- They should see the following error message: "Contribution statistics cannot be enabled for the selected country."
- And if hybrid or in person, it is not in a country that is considered "no publish" or "high risk" (see list)
- And the API endpoints (enable/edit/get registration) should have equivalent functionality and be documented in https://www.mediawiki.org/wiki/Extension:CampaignEvents/Api
- The CampaignEventsContributionTrackingDisallowedCountries config flag is documented in https://www.mediawiki.org/wiki/Extension:CampaignEvents#Parameters













