Page MenuHomePhabricator

CentralNotice reloads old translatable messages on form submit
Closed, ResolvedPublic2 Estimated Story Points

Description

After submitting updated translatable messages of a banner, the page reloads and displays the old messages.

After reloading again, the updated messages are being displayed.


Version: unspecified
Severity: normal

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:50 AM
bzimport set Reference to bz70939.
bzimport added a subscriber: Unknown Object (MLST).

Not sure if this is actually a code issue, or some caching on the server / syncing with translations issue, or a client browser cache issue.

Do you have a specific example where this happened (banner and language and website)?

This happens on meta.wikimedia.org/wiki/Special:CentralNotice. Most probably it is a translation sync issue. I'm just editing the default language, though.

This actually happens in every case:

(In reply to Kai Nissen from comment #2)

Most probably it is a translation sync issue.

So somewhere between Language Engineering and Deployment Systems...

Pcoombe raised the priority of this task from Low to Medium.Sep 11 2015, 10:05 AM
Pcoombe subscribed.

Raising priority to normal, this is a rather annoying bug.

Pretty sure this is actually a CentralNotice issue. I noticed that the "Included templates" list doesn't update after changing the banner code either, until the page is reloaded again.

Thanks!! Messages for this CentralNotice banner, currently live in Argentina, are empty... Possibly related?

Change 484809 had a related patch set uploaded (by Awight; owner: Awight):
[mediawiki/extensions/CentralNotice@master] Don't use custom caching for the banner message fields

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

Change 535133 had a related patch set uploaded (by AndyRussG; owner: AndyRussG):
[mediawiki/extensions/CentralNotice@master] In SpecialCentralNoticeBanners use $this->banner in processSaveBannerAction()

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

Change 535133 merged by jenkins-bot:
[mediawiki/extensions/CentralNotice@master] In SpecialCentralNoticeBanners use $this->banner in processSaveBannerAction()

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

Ooops! It looks like the attached change targeted a different bug than the one described in this change... And while it fixed the issue for me locally, it's still occurring intermittently on production and on the Beta cluster.

Here's a bug for the issue that that patch intended to fix: T232793.

Also here's an updated bug for the issue that I think this bug is about: T232430.

Thanks!!!

AndyRussG changed the task status from Duplicate to Resolved.Sep 13 2019, 12:56 AM

For current discussion of possible causes, please see T232430. Thanks!!!

Change 484809 abandoned by Thiemo Kreuz (WMDE):

[mediawiki/extensions/CentralNotice@master] Don't use custom caching for the banner message fields

Reason:

* Since Ibdcd41b there is a new invalidateCache() method called in a few places. I suspect this might have solved the issue.
* I also looked into the reason for the caching. The payload is not terribly expensive. All it does is a Parser::parse(). But that alone appears to be worth it. The caching was introduced via I82c8b0e in 2013. The commit message explains the reasoning in more detail.
* T72939 is marked as resolved.

Let's clean up our review queues a bit.

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