Page MenuHomePhabricator

CentralNotice setting class=cn-undefined
Closed, ResolvedPublic

Description

I suspect it comes from this code:

https://github.com/wikimedia/mediawiki-extensions-CentralNotice/blob/19a4bcbda7273d17f053aa3336b4d4f241ab8066/resources/subscribing/ext.centralNotice.display.js#L166:

		$( 'div#centralNotice' )
			.attr( 'class',
			mw.html.escape( 'cn-' + cn.internal.state.getData().category ) )

Screen Shot 2015-11-10 at 22.44.34.png (936×2 px, 357 KB)

Event Timeline

Krinkle raised the priority of this task from to Needs Triage.
Krinkle updated the task description. (Show Details)
Krinkle subscribed.

@Krinkle how big of a deal is this? We're in code freeze for non-essential fixes to CentralNotice through the December fundraising campaign.

It means some part of CentralNotice frontend is broken. I don't know how severe.

  • It could mean that critical data such as buckets or categories are not available for many users and that banners are not shown per the intended criteria.
  • Or it could mean that the show criteria is fine, but that the display is only off. Which could result in e.g. fundraising designs being distorted or not rendering as intended if some of the layout classes they might use is not present unexpectedly.

Either way, I don't know. I merely saw the leak when debugging something unrelated. Where it's leaking from, how much, and what it is causing you'd have to ask someone who knows CentralNotice better.

awight triaged this task as Unbreak Now! priority.Nov 10 2015, 10:55 PM
awight subscribed.

All banners come with a default category of {{{campaign}}}, and we're using the category for an increasing amount of real stuff, so this needs fixin'.

Change 252768 had a related patch set uploaded (by AndyRussG):
ext.centralNotice.display: Fix class of CN div

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

Thanks @Krinkle and @awight! Yea fortunately it's nothing grave ;)

Change 252768 merged by jenkins-bot:
ext.centralNotice.display: Fix class of CN div

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

AndyRussG set Security to None.