Page MenuHomePhabricator

CentralNotice should do everything SiteNotice does
Closed, DeclinedPublic

Description

It seems that some admins prefer SiteNotice to CentralNotice, because it's the only way to target messages to a specific wiki.

Make sure CentralNotice can do anything SiteNotice can, so there's less reason to use duplicate and unmaintained code. SiteNotice can deliver a snippet of HTML on every pageview to a specific wiki, but currently CentralNotice can only target interface language, which is a totally different thing and will result in banners being delivered on wikis in every content language, when the interface language matches.

I believe that this workaround will no longer necessary if we can find an acceptable compromise for T53475. I don't want to argue for deprecating SiteNotice at that point however, cos it's probably still useful as a backup system.

Event Timeline

awight raised the priority of this task from to Needs Triage.
awight updated the task description. (Show Details)
awight added subscribers: awight, Trijnstel, Pine, Matanya.

Another reason people prefer SiteNotice is simply that access to it is much wider. You only need to be an admin on the site you want to target, so sitenotices can be arranged entirely by a local community. I don't think we'd ever want to deprecate that.

It seems like there are only two missing features, one is T53475: Offer contentlanguage targeting for CentralNotice banners or better yet per-site targeting, and the other is maybe to let site admins manage CentralNotice for their wikis. Closing this task, I suggest splitting out specific, desired features.