Page MenuHomePhabricator

Special:NewPagesFeed and Page Curation toolbar must share and persist state
Closed, ResolvedPublicBUG REPORT

Description

Reported by @Hey_man_im_josh on Discord

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

What happens?:

  • no redirects are shown

What should have happened instead?:

  • redirects should be shown

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

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

  • should investigate how the old Special:NewPagesFeed saves this (LocalStorage?) and use the exact same technique, because both Special:NewPagesFeed and the Page Curation toolbar have code that depends on this
  • please note comment below about the "Next" button in the page curation toolbar loading the wrong articles

Acceptance criteria

  • Special:NewPagesFeed remembers filters on page refresh
  • Page Curation toolbar "next" button works as expected (e.g. if you filter by redirects only, then visit an unpatrolled redirect, hitting "next" on the toolbar should load a redirect and not an article)

Related Objects

StatusSubtypeAssignedTask
ResolvedSamwalton9-WMF
ResolvedBUG REPORTjsn.sherman
ResolvedSpikejsn.sherman
DuplicateNone
ResolvedBUG REPORTScardenasmolinar
ResolvedBUG REPORTScardenasmolinar
ResolvedBUG REPORTScardenasmolinar
ResolvedBUG REPORTScardenasmolinar
ResolvedBUG REPORTScardenasmolinar
ResolvedSpikejsn.sherman
ResolvedMPGuy2824
ResolvedBUG REPORTScardenasmolinar
ResolvedBUG REPORTjsn.sherman
ResolvedBUG REPORTScardenasmolinar
ResolvedBUG REPORTScardenasmolinar
ResolvedBUG REPORTjsn.sherman
ResolvedBUG REPORTjsn.sherman
ResolvedBUG REPORTjsn.sherman
ResolvedBUG REPORTjsn.sherman
ResolvedBUG REPORTjsn.sherman
ResolvedScardenasmolinar
ResolvedSpikeScardenasmolinar

Event Timeline

This also causes the next button in the toolbar to not work as one would expect.

Novem_Linguae renamed this task from Special:NewPagesFeed forgets filter settings on page refresh to Special:NewPagesFeed forgets filter settings on page refresh, and Page Curation toolbar "next" button loads wrong articles.Jul 23 2023, 7:47 AM
Novem_Linguae updated the task description. (Show Details)

Yeah, this is connected to the new toolbar implementation. To fully resolve this, I need to:

  • move the state store to the utility module
  • make it persist to local storage
  • replace the toolbar itself with Vue and populate existing tools from the state store in T340130: Implement Curation Toolbar container in Vue.js (I'll need to slightly change what ui_version=1 does there)
jsn.sherman renamed this task from Special:NewPagesFeed forgets filter settings on page refresh, and Page Curation toolbar "next" button loads wrong articles to Special:NewPagesFeed and Page Curation toolbar must share and persist state.Jul 31 2023, 4:37 PM
jsn.sherman claimed this task.
jsn.sherman changed the task status from Open to In Progress.Jul 31 2023, 4:40 PM
jsn.sherman moved this task from Ready to In Progress on the Moderator-Tools-Team (Kanban) board.

Change 943635 had a related patch set uploaded (by Jsn.sherman; author: Jsn.sherman):

[mediawiki/extensions/PageTriage@master] Settings store should persist state

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

Okay, I now have separate patches out for persisting state and moving it to the util module. I'll rebase my toolbar patch against those tomorrow and do the necessary cleanup.

Change 938956 had a related patch set uploaded (by Jsn.sherman; author: Jsn.sherman):

[mediawiki/extensions/PageTriage@master] Vue.js Curation Toolbar container

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

Change 943635 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] Settings store should persist state

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

Change 945631 had a related patch set uploaded (by Jsn.sherman; author: Jsn.sherman):

[mediawiki/extensions/PageTriage@master] Persistent state followup

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

Change 945631 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] Persistent state followup

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

Change 952279 had a related patch set uploaded (by Jsn.sherman; author: Jsn.sherman):

[mediawiki/extensions/PageTriage@master] Save state with mw.Api instead of LocalStorage

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

Test wiki created on Patch demo by SCardenas (WMF) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/de5974d4d8/w

Test wiki created on Patch demo by SCardenas (WMF) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/bda3f73aef/w

Test wiki on Patch demo by SCardenas (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/bda3f73aef/w/

Test wiki on Patch demo by SCardenas (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/de5974d4d8/w/

Test wiki created on Patch demo by SCardenas (WMF) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/fa53b46016/w

Change 954958 had a related patch set uploaded (by Jsn.sherman; author: Jsn.sherman):

[mediawiki/extensions/PageTriage@master] revert "mv settings store to ext.pageTriage.util"

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

Change 954958 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] revert "mv settings store to ext.pageTriage.util"

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

Test wiki on Patch demo by SCardenas (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/fa53b46016/w/

Change 952279 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] new ui stores settings the same way as old ui

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

Scardenasmolinar subscribed.

I will move this to Done because the curation toolbar patch is also linked to T340130.

jsn.sherman updated the task description. (Show Details)

This has been resolved for some time now.

Change 938956 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] Vue.js Curation Toolbar container

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