Page MenuHomePhabricator

[Bug] mobile-html cache not invalidated when associated wikidata item is edited
Closed, ResolvedPublic

Description

It appears that mobile-html pages aren't cleared from the cache when the associated Wikidata item is edited. It seems like this task would be resolved if the configuration was similar to the summary endpoint, where edits to the Wikidata item should purge the cache for the associated articles.

Original bug:

Steps to reproduce

  1. Go to Suggested edits (Android app) and find articles that need descriptions
  2. Add descriptions
  3. Check the articles

Expected

See the description on the mobile-html page

Actual

Still shows "Add description" on the page

Screenshot at Apr 14 10-18-31.png (930×1 px, 223 KB)

Screenshot at Apr 14 10-18-13.png (654×1 px, 179 KB)

To confirm that the whether the description is added or not, please check with the wikidata page.

Event Timeline

JoeWalsh renamed this task from [Bug] Article description does not show on the mobile-html page immediately after adding it to [Bug] mobile-html cache not invalidated when associated wikidata item is edited.Apr 15 2020, 3:57 PM
JoeWalsh removed Pchelolo as the assignee of this task.
JoeWalsh assigned this task to Pchelolo.
JoeWalsh updated the task description. (Show Details)
JoeWalsh added a subscriber: Pchelolo.

Change 593066 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[operations/deployment-charts@master] Rerender mobile-html on wikidata description changes

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

The patch above should fix the problem. I was not aware mobile-html had a dependency on Wikidata description.

Change 593066 merged by jenkins-bot:
[operations/deployment-charts@master] Rerender mobile-html on wikidata description changes

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

I believe the fix for this was deployed yesterday. @cooltey would you mind checking now in the app?

The content that was already stored will not be regenerated right away after this change. If you want to regenerate all the content, I guess we'd have to truncate mobile-html table, or do a dump or bump the mobile-html version

Thanks, @Pchelolo

The processes I went through was:
Submitted a description (wikidata) to a page -> visited the mobile-html page for the first time and didn't see the wikidata -> tried to refresh the page and still didn't see the wikidata.

I didn't visit the page before adding the description (wikidata) to the page, and I believe we should see the added/updated description to be shown on the page right away otherwise it will be like a broken function to the users.

Ok, heh.. the fix wasn't actually deployed it seems. It's been merged, but not yet moved into production. I'll ping you when it is.

@Pchelolo My comment above at T250209#6097450 was based on having seen that hnowlan did a changeprop deployment after https://gerrit.wikimedia.org/r/593066 was merged. But I guess you'll need to do a new chart release and deploy that in order for the new config to take effect — is that correct?

But I guess you'll need to do a new chart release and deploy that in order for the new config to take effect — is that correct?

Yeah.

Hmm, but wait a minute. It looks like the 0.9.30 release was created after that patch was merged. I guess it just needs to be deployed, then.

But I guess you'll need to do a new chart release and deploy that in order for the new config to take effect — is that correct?

Yeah.

@Pchelolo is there a scheduled or estimated date for when that will happen?

Apologies for the delays. It has happened this morning.

Apologies for the delays. It has happened this morning.

Thanks for the update! It looks like I'm still seeing the same issue. I added a title description to this article with this edit and the page is still outdated. It's properly updated on labs. It looks like the summary hasn't been updated either.

Apologies for the delays. It has happened this morning.

Thanks for the update! It looks like I'm still seeing the same issue. I added a title description to this article with this edit and the page is still outdated. It's properly updated on labs. It looks like the summary hasn't been updated either.

I'm seeing the description: https://en.wikipedia.org/api/rest_v1/page/mobile-html/HDR10+

Apologies for the delays. It has happened this morning.

Thanks for the update! It looks like I'm still seeing the same issue. I added a title description to this article with this edit and the page is still outdated. It's properly updated on labs. It looks like the summary hasn't been updated either.

I'm seeing the description: https://en.wikipedia.org/api/rest_v1/page/mobile-html/HDR10+

OK - It looks like that might be the same URL encoding bug as before. I'm seeing the description with https://en.wikipedia.org/api/rest_v1/page/mobile-html/HDR10%2B but not on https://en.wikipedia.org/api/rest_v1/page/mobile-html/HDR10+

Maybe a client side caching issue or it has been updated since. I'm seeing the description with both URLs.

We've actually broken purging again, bu fixed now. We are going to finish working on purges soon, so we would stop breaking this.