Page MenuHomePhabricator

UI to toggle "featured" status of a published list
Closed, ResolvedPublicFeature

Description

Add a UI button that will use PATCH
/api/lists/{id}/feature/ and PATCH
/api/lists/{id}/unfeature/ to toggle the "featured list" status of a list when the user has the appropriate permissions. This can be added to the list detail view in a way that is similar to the "favorite" button which is present on tool detail screens.

The frontend permission to use as a guard condition for both actions is $can( 'feature', 'lists/toollist' )

Related Objects

StatusSubtypeAssignedTask
ResolvedGoalbd808
ResolvedFeatureSlst2020

Event Timeline

bd808 changed the subtype of this task from "Task" to "Feature Request".
bd808 triaged this task as Medium priority.Feb 10 2022, 6:48 PM
bd808 moved this task from Backlog to Groomed/Ready on the Toolhub board.

Might as well do this too while I'm working on other list stuff.

Slst2020 changed the task status from Open to In Progress.Feb 11 2022, 2:30 PM
Slst2020 moved this task from To Do to Doing on the User-Slst2020 board.

Change 762809 had a related patch set uploaded (by Slavina Stefanova; author: Slavina Stefanova):

[wikimedia/toolhub@main] ui: Add a \"featured\" button to list detail view

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

Slst2020 changed the task status from In Progress to Open.Feb 15 2022, 1:15 PM
Slst2020 moved this task from Doing to Done on the User-Slst2020 board.

Change 762809 merged by jenkins-bot:

[wikimedia/toolhub@main] ui: Add a \"featured\" button to list detail view

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

Change 770638 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[operations/deployment-charts@master] toolhub: Bump container version to 2022-03-15-002555-production

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

Change 770638 merged by jenkins-bot:

[operations/deployment-charts@master] toolhub: Bump container version to 2022-03-15-002555-production

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