Page MenuHomePhabricator

Threshold time/minutes for pages does not update during AJAX update
Closed, ResolvedPublicBUG REPORT

Description

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

  • Load https://en.wikipedia.org/wiki/Special:NewPagesFeed (using the new Vue.js interface, I believe based on its appearance and behavior)
  • Notice the newest pages created might be created something 1 minute ago, with a similar tooltip.
  • Wait several minutes
  • Click "refresh list"

What happens?:
If a new page was created more than a minute after initially loaded the page, it will show a negative time. The tooltip may say something like "This page was only created -3 minutes ago. Please don't rush to tag pages at the front of the queue. The author may still be working on it." incorrectly.

Once an new item is loaded during the AJAX-y refresh, it's time-ago tooltip does not update on later reloads. The time used to display the how many minutes ago a page was created stays fixed until you trigger a full page reload.

What should have happened instead?:
I think it is expected that that tooltip should always be based on the actual current time, or at least very close to it.

This use not occur on the old new page interface, https://en.wikipedia.org/wiki/Special:NewPagesFeed?pagetriage_ui=old , which updates the warning icon/tooltip with the current time when you click refresh.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Firefox 118.0.1 (64-bit) on Linux.

Example after page has been loaded for close to an hour, taken at approximately 15:11 UTC.

new-special-newpages-202310231512.png (2,400×536 px, 210 KB)

Event Timeline

Confirmed that this seems to be a regression as compared to the old UI.

Samwalton9-WMF moved this task from Backlog to Vue migration bugs on the PageTriage board.

Change 973446 had a related patch set uploaded (by MPGuy2824; author: MPGuy2824):

[mediawiki/extensions/PageTriage@master] Update the article age during every feed refresh

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

jsn.sherman changed the task status from Open to In Progress.Nov 20 2023, 5:17 PM
jsn.sherman moved this task from Code Review to Waiting for enwiki deploy on the PageTriage board.
jsn.sherman moved this task from Eng review to Done on the Moderator-Tools-Team (Kanban) board.

Change 973446 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] Update the article age during every feed refresh

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

MPGuy2824 moved this task from Waiting for enwiki deploy to Done on the PageTriage board.