Page MenuHomePhabricator

Can not delete participants from Special:EventDetails participants tab
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):
Create an event on test.wikipedia.org (or meta.wikimedia.org)
Add one private participant
Add one public participant
As an organizer, delete one of the users on Special:EventDetails participant tab

What happens?:
The user does not delete and there is an error:

{"error":"parameter-validation-failed","name":"include_private","value":null,"failureCode":"missingparam","failureData":null,"errorKey":"missingparam","messageTranslations":{"en":"The \"include_private\" parameter must be set."},"httpCode":400,"httpReason":"Bad Request"}

Screenshot 2024-09-03 at 5.11.25 PM.png (228×552 px, 31 KB)

What should have happened instead?:
Participant should be deleted by organizer

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
1.43.0-wmf.21 (b7b9c62)

Other information (browser name/version, screenshots, etc.):
Chrome

Screen Recording 2024-09-03 at 5.00.58 PM.gif (1×2 px, 1 MB)

Event Timeline

This is caused by an incompatibility between OOUI and the new validation in core. OOUI Input widget "getValue()" always returns a string regardless of the underlying type and the API is expecting an integer.

Change #1070605 had a related patch set uploaded (by Mhorsey; author: Mhorsey):

[mediawiki/extensions/CampaignEvents@master] fix type bug when deleting user from participants list

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

Change #1070605 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] fix type bug when deleting user from participants list

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

AC:
✅ Participant should be deleted by organizer

This fix is live on testwiki now and is functioning correctly.

Screen Recording 2024-09-11 at 12.58.03 PM.gif (1×1 px, 647 KB)

Marking as done / resolved