Page MenuHomePhabricator

Allow participants to opt out of post-publication dialogue
Open, In Progress, Needs TriagePublic3 Estimated Story Points

Description

As an event participant, I want to be able to opt out of seeing a post-publication dialogue, so that I can remove any annoying or inconvenient modal displays, especially if I am registered for events that last for a long period of time.

Acceptance Criteria:
  • Given that a user is registered for an event that has not yet ended,
    • They should be able to see a new section in Manage Registration, which is called “Contribution statistics”
    • With the label to a checkbox: “After I publish an edit, ask me whether the edit is for this event.”
    • And description: “This makes it easier to see your impact and share your work with others. If you opt out, you can still add or remove edit associations in the contribution list."
      • "contribution list" should link to the Contributions tab for the event
    • Checkbox should be checked by default
    • And if the user unchecks the box,
      • The event will not have any post-publication dialogue associated with it
  • And if the event has ended,
    • Then the Contribution Statistics section should not be displayed.
  • And the Special:RegisterForEvent special page should have an analogous toggle (exact design up to engineers as usual for that page)

Notes:

  • If the user is registered for more than one active event on a given wiki at a time, they can still see the post-publication dialogue for other events in which they have not changed the behavior.
  • The user will still be able to add edits to the event manually.
Designs
MobileDesktop
edit registration (2).png (851×393 px, 99 KB)
edit registration desktop (1).png (1×1 px, 250 KB)
Schema change checklist
NOTE: Further progress on the task cannot be made (in the sense of patches merged) until the schema change is applied in production.

Event Timeline

ifried renamed this task from Placeholder: Allow participants to opt out of modal after edit to Allow participants to opt out of modal after edit.Oct 30 2025, 4:30 PM

Notes about ticket:

  • Maybe we can update the copy:
    • "Ask me every time whether my edits are for the event."
    • "This makes it easier for your edits to be counted towards event impact."
    • "This makes it easier to show my edits in the contributions tab."
  • How can we improve discoverability? Maybe it can be explained in email sent to registered participants.
  • How do we store this? As a user preference (which would not require a database task)? Or would it be a database task? We probably do need a database task, since user preference may not be a good idea.
ifried set the point value for this task to 3.Oct 30 2025, 4:43 PM
ifried updated the task description. (Show Details)
ifried updated the task description. (Show Details)
ifried updated the task description. (Show Details)
ifried renamed this task from Allow participants to opt out of modal after edit to Allow participants to opt out of post-publication dialogue.Oct 31 2025, 5:33 PM
ifried updated the task description. (Show Details)
ifried updated the task description. (Show Details)
ifried added a subscriber: MHorsey-WMF.

Change #1208349 had a related patch set uploaded (by Cmelo; author: Cmelo):

[mediawiki/extensions/CampaignEvents@master] Add opt out of post-publication dialogue in edit registration

https://gerrit.wikimedia.org/r/1208349

Change #1208366 had a related patch set uploaded (by Cmelo; author: Cmelo):

[mediawiki/extensions/CampaignEvents@master] Add opt out of post-publication on Special:RegisterForEvent

https://gerrit.wikimedia.org/r/1208366

Change #1208387 had a related patch set uploaded (by Cmelo; author: Cmelo):

[mediawiki/extensions/CampaignEvents@master] Add hidePostEditModal parameter to participant registration

https://gerrit.wikimedia.org/r/1208387

Change #1208403 had a related patch set uploaded (by Cmelo; author: Cmelo):

[mediawiki/extensions/CampaignEvents@master] Load participant post-edit modal preference from database

https://gerrit.wikimedia.org/r/1208403

Test wiki created on Patch demo by CMelo (WMF) using patch(es) linked to this task:
https://96c9d36d7a.catalyst.wmcloud.org/w/

ifried removed cmelo as the assignee of this task.Mon, Nov 24, 7:22 PM
ifried added a subscriber: cmelo.

Change #1206070 had a related patch set uploaded (by Daimona Eaytoy; author: Cmelo):

[mediawiki/extensions/CampaignEvents@master] db: add column to store opt out of contribution association prompt

https://gerrit.wikimedia.org/r/1206070

Daimona added projects: Schema-change, DBA.
Daimona subscribed.

Hi DBA, tagging you for review of the following schema change, as per items 1 and 2 of the workflow.

ALTER TABLE /*_*/ce_participants
  ADD cep_hide_contribution_association_prompt TINYINT(1) DEFAULT 0 NOT NULL;

Note: once this is approved and merged, I will update T410241 with the correct info and add it to your board for applying this in prod.

Thanks!

(Also: moving this task to code review for review of the schema change and associated patch. Further progress will then be blocked until the schema change is applied in production)

LGTM. No concerns from our side. nitpick: The name of the field is quite a mouthful. Maybe a shorter name? :P

nitpick: The name of the field is quite a mouthful. Maybe a shorter name? :P

Yeeeeah I know :( I spent some time bikeshedding on this yesterday but I'm not sure what else to call it. The previous name (cep_hide_post_edit_modal) was shorter, but I wanted to avoid it because 1) The feature and underlying DB table are named after "contributions", not "edits", because they will track things other than edits in future, and 2) I didn't want the DB to have a hardcoded reference to a specific UI style ("modal"). Soooooo I don't know :D

Change #1213591 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Add contribution association opt-out flag to the Participant entity

https://gerrit.wikimedia.org/r/1213591

Change #1213592 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Check participant opt-out when listing events for association

https://gerrit.wikimedia.org/r/1213592

Change #1214171 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Update API handlers for contribution association dialog opt-out

https://gerrit.wikimedia.org/r/1214171

Change #1208403 abandoned by Daimona Eaytoy:

[mediawiki/extensions/CampaignEvents@master] Load participant post-edit modal preference from database

Reason:

Squashed separately into various parent patches.

https://gerrit.wikimedia.org/r/1208403