Problem statement
Several request pages used within the Wikimedia community use level 3 (or more) headings for individual requests. This includes the steward request pages, for example:
- Steward requests/Permissions at meta.wikimedia (level 4 heading is used for individual requests)
- Steward requests/Global permissions at meta.wikimedia (level 3 heading is used for individual requests)
- Steward requests/Global at meta.wikimedia (level 3 heading is used for individual requests)
- and others within Steward requests/*
DiscussionTools only treats level 2 headings as topics you can subscribe to. In this case, it groups most of the requests on the page together. This means that if I post a comment in any of the requests, DiscussionTools subscribes me to the level 2 section, and then notifies me about every new comment in any request on the page. I can individually unsubscribe from this, but I need to do it after processing any request, which is annoying as well.
Possible workarounds
Those are the only options I see that do not require any code changes.
Option A: Turn off automated subscriptions for my account
Under Preferences → Editing → Discussion pages → "Automatically subscribe to topics", I can disable automated topic subscription. However, this applies everywhere (at all of metawiki), meaning I have to pick between:
- accepting no autosubscription at meta.wikimedia (and risking I miss an important update, because I forgot to subscribe and I don't receive the notification at all),
- accepting useless notifications from meta.wikimedia (and risking I miss an important update, because I receive too many notifications that are useless, and I learn to ignore them)
In both cases, it is the same effect at the end – the notifications and autosubscription from DiscussionTools wouldn't be helpful for me.
Option B: Mark the steward requests page with __NOTALK__
I can mark the steward request page with the __NOTALK__ keyword. While that disables automated topic subscription, it disables all other DiscussionTools features as well, for all users. This would mean I wouldn't be able to reply with the reply tool and so on, and it is likely a worse situation than the status quo.
Option C: Start using level 2 headlines on the pages
In theory, the community might switch to level 2 headings for main topics instead. However, this would mean the community would still need a higher headline to group the requests into sections. On pages like SRG, level 1 heading could be used for it (at the cost of accessibility, given there should be generally only one h1 per page). Unfortunately, for pages like Steward requests/Permissions, this is not a solution, as it needs two levels above the request. Furthermore, tools should be capable of handling pages as they are used (imposing changes on existing workflows typically doesn't tend to work very well).
Potential solutions
Those include acceptable solutions for the problem. Those do require some level of changes into DiscussionTools itself.
Option D: Allow users to opt out from autosubscription
The DiscussionTools extension would need to allow the users to opt out from automated topic subscription on per-page level. This should be relatively cheap to implement at least on the backend: HookUtils::shouldAddAutoSubscription already receives both the user and the title, so we would just need to store the opt out somewhere (a special row in discussiontools_subscription, perhaps) and figure out where to put the button for it (on the page itself might be too much, but maybe it would fit to Special:TopicSubscriptions, or we can create a new special page for it?).
This is more of a mitigation rather than a full fix. It would allow me to disable autosubscription where it hurts, while still benefiting from it in other places.
Option E: Allow pages to redefine what the "topic-level headline" should be
We could allow discussion pages to redefine the expected level of a topic level headline. For example, the SRG requests page could define that a topic is a level 3 headline. That way, DiscussionTools would display its tooling at that level instead, essentially ignoring the level 2 headlines altogether.
If I'm understanding things correctly, this would essentially be "declare a magic word for the page to make its decision" and editing HeadingItemTrait::isSubscribable to read the expected level of the headline rather than hardcoding level 2. That said, I'm not sure if the level 2 is hardcoded in other places too, as I don't know the DiscussionTools codebase that much.
This should not trigger any of the issues described at T275943, because it wouldn't be about "treating subdiscussions in a topic". Instead, it would be about redefining what a topic is (subsections in a topic would still be unhandled).
This is similar to T303541: Enable people to explicitly mark a section as capable of being subscribed to. I'm not sure how the other ticket thinks about this, but here, level 2 headlines wouldn't be subscriptable if the page redefines them. This would avoid having to resolve a conflict between subscriptions at headlines of various levels.
T287790: Let me mute pages that I don't want to be auto-subscribed to discussions on seems to be a fairly close fit for this idea as well.
Option F: Generic support for subsections
This is essentially described in T275943: Add support for subsection subscriptions, including potential problems and several open questions.
Relevant Phabricator tickets
- T275943: Add support for subsection subscriptions
- T303541: Enable people to explicitly mark a section as capable of being subscribed to
- T318028: DiscussionTools subscribed me to Steward requests/Permissions#Requests and does not let me to unsubscribe
- T403612: Enable subscription at third-level instead of second-level on discussion pages
- T287790: Let me mute pages that I don't want to be auto-subscribed to discussions on