Page MenuHomePhabricator

Hide Special pages that do not have default form or provide one
Open, In Progress, Needs TriagePublicBUG REPORT

Description

https://meta.wikimedia.org/wiki/Special:SpecialPages#mw-specialpagesgroup-campaignevents

CampaignEvents lists 7 special pages on Special:SpecialPages, but only 2 work by default.

Screen Shot 2023-10-05 at 10.22.31 PM.png (1,918×358 px, 173 KB)

The other five lead to error page, like below, because they require parameter which is impossible to provide from Special:SpecialPages. There's also no way to provide that when we reach the error page, save by manually modifying the URL

Screen Shot 2023-10-05 at 10.28.14 PM.png (1,586×410 px, 34 KB)

They should either be unlisted (I believe they're already accessible via more approproate entry points) or they should provide default input form instead of the error they show.

Acceptance Criteria:

  • Keep the special pages as listed
  • If there is no valid id, include the following text: "This page has no valid event ID. Enter a valid event ID or view all events in the Collaboration list."
  • Link "Collaboration list" to Special:AllEvents in the wiki that the user is on

Event Timeline

Daimona subscribed.

I think it would be nice to leave them in the list but, as you suggest, there should be a way to enter the input if none was specified, à la Special:Permalink.

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

[mediawiki/extensions/CampaignEvents@master] Add redirect form to all registration edit forms

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

ifried subscribed.

This is being moved back to Upcoming because this was a "Fix-It" week task, and Fix-It Week is now over. It is not high priority now, since we're focused on wrapping up the 4 improvements to the Collaboration List now as the #1 priority. We can take on this work again soon, most likely, but we need to focus on implementing the improvements first.

Change #1109074 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Add redirect form to all registration edit forms

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

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

[mediawiki/extensions/CampaignEvents@master] Minor tweaks for event ID redirection form in special pages

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

Change #1113524 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Minor tweaks for event ID redirection form in special pages

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

ifried added a subscriber: MHorsey-WMF.

Memo for when we finish this: Special:RegisterForEvent still shows the error at the top, before the input. Also, the page uses the campaignevents-edit-no-event-id message instead of campaignevents-register-error-no-event-id, which however lacks a link to the collab list.