Page MenuHomePhabricator

Do not write to database in GET request context when updating personaldashboard-eligible
Closed, ResolvedPublic2 Estimated Story Points

Description

We're seeing a lot of warnings from our newly created OpenSearch Dashboard:

This is because a database write is happening on render/GET, we should figure out a way to save this preference outside of the GET request lifecycle.
Since this preference relies on server side data checks, I bumped it up to 2 points as there's a bit more complexity to handling this.

Acceptance Criteria:

  • Warning is no longer appearing in our logstash dashboard
  • Database write happening in correct context

Event Timeline

Kgraessle triaged this task as High priority.
Kgraessle moved this task from Ready to In Progress on the Moderator-Tools-Team (Kanban) board.
Kgraessle set the point value for this task to 1.

Change #1268931 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/PersonalDashboard@master] Use Deferred Updates when saving user preference personaldashboard-eligible

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

Change #1268931 merged by jenkins-bot:

[mediawiki/extensions/PersonalDashboard@master] Use Deferred Updates when saving user preference personaldashboard-eligible

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

Kgraessle renamed this task from Use Deferred Updates when saving user preference personaldashboard-eligible to Do not write to database in GET request context when updating personaldashboard-eligible.Apr 17 2026, 9:42 AM
Kgraessle removed Kgraessle as the assignee of this task.
Kgraessle updated the task description. (Show Details)
Kgraessle changed the point value for this task from 1 to 2.
Kgraessle moved this task from QA to Ready on the Moderator-Tools-Team (Kanban) board.
Scardenasmolinar changed the task status from Open to In Progress.Apr 24 2026, 1:10 AM
Scardenasmolinar claimed this task.
Scardenasmolinar moved this task from Ready to In Progress on the Moderator-Tools-Team (Kanban) board.

Change #1276842 had a related patch set uploaded (by Scardenasmolinar; author: Scardenasmolinar):

[mediawiki/extensions/PersonalDashboard@master] Move save user option for personaldashboard-eligible to client side

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

Change #1276842 merged by jenkins-bot:

[mediawiki/extensions/PersonalDashboard@master] Move save user option for personaldashboard-eligible to client side

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

Scardenasmolinar moved this task from QA to Done on the Moderator-Tools-Team (Kanban) board.

Logstash seems to have no errors anymore. See screenshot for satisfying results:

Screenshot 2026-05-13 at 12.07.23.png (197×484 px, 17 KB)