Page MenuHomePhabricator

Set organizers endpoint: Check if the event belongs to the current wiki
Closed, ResolvedPublic2 Estimated Story Points

Description

Acceptance criteria

  • Given a user tries to change the organizers using the "Update the list of organizers" API endpoint
    • And the event does not belong to the current wiki
    • Then they should receive a 4xx response with an error message similar to that used in T358781
    • And this new error should be documented on mediawiki.org

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptMar 6 2024, 11:05 PM
ifried set the point value for this task to 2.Mar 7 2024, 3:19 PM
Daimona changed the task status from In Progress to Stalled.Mar 21 2024, 1:26 PM

Blocked on T312568.

ifried subscribed.

Moved to in review after team discussion on how we will unblock this work, which is: Remove open/close in all cases (whether on the local or foreign wiki) from the kebab menu, and redirect users to special delete page if on a foreign wiki

Daimona changed the task status from Stalled to Open.Apr 4 2024, 2:31 PM

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

[mediawiki/extensions/CampaignEvents@master] SetOrganizersHandler: fail if the event is not local

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

Change #1012400 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] SetOrganizersHandler: fail if the event is not local

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

Given a user tries to change the organizers using the "Update the list of organizers" API endpoint
And the event does not belong to the current wiki
โœ… Then they should receive a 4xx response with an error message similar to that used in T358781

T359493.png (970ร—1 px, 182 KB)

โŒ And this new error should be documented on mediawiki.org
@MHorsey-WMF Please set organizers on XXX, the wiki where the event was created. needs added to Update the list of organizers endpoint on mediawiki.org

Given a user tries to change the organizers using the "Update the list of organizers" API endpoint
And the event does not belong to the current wiki
โœ… Then they should receive a 4xx response with an error message similar to that used in T358781

T359493.png (970ร—1 px, 182 KB)

โŒ And this new error should be documented on mediawiki.org
@MHorsey-WMF Please set organizers on XXX, the wiki where the event was created. needs added to Update the list of organizers endpoint on mediawiki.org

โœ… Error message is now documented on mediawiki.org

Sending to product sign off

The global implementation work is complete and we have released to another wiki (Igbo Wikipedia), so I'm marking this work as Done.