Page MenuHomePhabricator

PageTriage does not immediately show copyvio issue on tagging
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Tag a revision of a page using the pagetriagetagcopyvio API
  • Open the article that has the tagged revision

What happens?:
Copyvio tag does not show up

What should have happened instead?:
Copyvio tags should show up immediately

Event Timeline

Change 988141 had a related patch set uploaded (by Sohom Datta; author: Sohom Datta):

[mediawiki/extensions/PageTriage@master] Reset cache after tagging as copyvio

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

Change 988141 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] Reset cache after tagging as copyvio

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

Despite Sohom's patch, I am still having issues with the copyvio tag displaying in Special:NewPagesFeed and the Page Curation toolbar info flyout immediately after an API query. If I review then unreview the article, I can force a refresh.

Maybe we need to do this:

$acp = ArticleCompileProcessor::newFromPageId( [
	$page->getId()
] );
$acp->compileMetadata();

Instead of or in addition to what we did in the previous patch:

$metadata = new ArticleMetadata( [ $pageId ] );
$metadata->flushMetadataFromCache();

Never mind. I think it was a rebase problem with the patch I was working on. Is working now.

Soda claimed this task.

Based on a few tests wrt to EranBot this appears to work.