Add task to update kudos count on indexed works

Description

The migration in will de-duplicate kudos on works, and we need to reindex them to keep the kudos sorting option on work searches/filters accurate. One more After task.

  • The task should only consider works with kudos.

  • The task should use StatCounterIndexer. We want to update the existing indexed works, we don't have to reindex whole works. The task should not reindex bookmarked works (a different index that doesn't track kudos count).

  • The task should process in batches and sensibly print its progress.

How to test:

  • Admins can edit a work's stat_counter to have some absurd kudos count.

  • Reindex the work to put it at the top of any kudos descending list.

  • Run the task.

  • Check that the work is positioned correctly in kudos descending lists.

On beta, this task should be run after AO3-5869.

Environment

None

Assignee

Sarken

Reporter

redsummernight

Roadmap

Misc
Search

Priority

Medium

Affects versions

Fix versions

Components

BackEnd

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9
Configure