[go: up one dir, main page]

Page MenuHomePhabricator

Kebab menu on Special:MyEvents not working
Closed, ResolvedPublic

Description

To reproduce:

  • Go to Special:MyEvents
  • Open the kebab menu (3 dots) for any event
  • Click "Close registration"

Expected: It should open a popup
Actual: You're sent to Special:EditEventRegistration, which is the no-JS fallback

Note: there are a couple errors in the console that are likely causing this:

Failed to load resource: the server responded with a status of 400 (Bad Request)
VM31:61 {"messageTranslations":{"en":"Mandatory field \"timezone\" missing from request body."},"httpCode":400,"httpReason":"Bad Request"}

Other options in the same menu that require JavaScript are equally broken.

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptOct 25 2022, 8:10 PM

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

[mediawiki/extensions/CampaignEvents@master] Pass 'timezone' to the "edit event registration" endpoint on MyEvents

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

Change 849167 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Pass 'timezone' to the "edit event registration" endpoint on MyEvents

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

Heya @Daimona the bubble notification is now displaying - this is what you meant by "a popup", correct?

Screen Recording 2022-10-28 at 10.32.37 AM.gif (1ร—2 px, 1 MB)

Heya @Daimona the bubble notification is now displaying - this is what you meant by "a popup", correct?

Yep, I got confused with the "delete registration" option that opens a confirmation dialog. But now it's working as intended AFAICS.

@Daimona On Firefox, when I close an event that is not in the same wiki (on en wiki, try to close an event in ar wiki) it displays the bubble notification that says it is closed, but then redirects me to the link that says to edit it on the wiki where it was created (so does not actually close the event).

Screen Recording 2022-10-28 at 10.46.07 AM.gif (1ร—2 px, 1011 KB)

@Daimona On Firefox, when I close an event that is not in the same wiki (on en wiki, try to close an event in ar wiki) it displays the bubble notification that says it is closed, but then redirects me to the link that says to edit it on the wiki where it was created (so does not actually close the event).

That's a separate issue, but I'm working on a fix.

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

[mediawiki/extensions/CampaignEvents@master] Fix kebab menu options on firefox

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

Change 850521 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Fix kebab menu options on firefox

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

vaughnwalters added a subscriber: ifried.

This a is functioning correctly now, including in firefox. I am moving this to product sign off. Note to @ifried for when you check this out that it opens a bubble notification not a confirmation dialog popup, so slight difference from the AC. but is functioning as expected.

Screen Recording 2022-10-28 at 10.32.37 AM.gif (1ร—2 px, 1 MB)

Looks good when I tested on the beta cluster, so marking this as Done.