Page MenuHomePhabricator

API to get the status of topic subscriptions on a page (action=discussiontoolsgetsubscriptions)
Closed, ResolvedPublic

Description

For T284836, we'll need an API to get the status of topic subscriptions on a page, so that we can update the [subscribe]/[unsubscribe] buttons if an auto-subscription is added after the page has been loaded.

I'm splitting this off to a separate task, because there are other use cases for this API, and we might want to do this part separately and earlier than the rest of the work.

Event Timeline

Change 719299 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/DiscussionTools@master] API to get the status of topic subscriptions on a page

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

Change 719299 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Add API to get the status of topic subscriptions on a page

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

@Jack_who_built_the_house This will become available on MediaWiki wikis in the next week, on 28-30 September, per the usual deployment schedule; and can be tested on the beta cluster now. (Although it could probably be backported, if anyone wanted to.)

Actually, it will become available this week, 21-23 September. The weekly branch is usually created as midnight, but it was created late today, so the patch made it in. (According to "Included In" on Gerrit.)

ppelberg claimed this task.

I'm going to resolve this considering it not working as expected will surface when we test automatic topic subscriptions (T282636)