Enable read new support in Special:Investigate's 'Timeline' tab
Closed, ResolvedPublic3 Estimated Story Points

Description

Now that CheckUser writes to the new tables for event table migration (T330158), reading from these tables when the migration stage is set to read new can commence.

This task is to add support to read new in Special:Investigate's 'Timeline' tab.

Acceptance criteria
  • Alias the current query info fields in TimelineService, TimelinePager and TimelineRowFormatter use aliases for the cu_changes fields that are selected (T347102)
  • Update the TimelineService to select results from the three tables if read new is set
  • Use LogFormatter generated actiontext for entries that are read from the new tables.
  • Link to the specific log ID for entries that are read from the new tables.

Event Timeline

Dreamy_Jazz moved this task from General / Unsorted to Investigate on the CheckUser board.

Change 940252 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] [WIP] Implement read new support for Investigate timeline mode

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

Dreamy_Jazz renamed this task from Use the CheckUserUnionSelectQueryBuilder in Special:Investigate timeline tab to Enable read new support in Special:Investigate's 'Timeline' tab.Sep 21 2023, 5:52 PM
Dreamy_Jazz updated the task description. (Show Details)

Change 940252 abandoned by Dreamy Jazz:

[mediawiki/extensions/CheckUser@master] [WIP] Implement read new support for Investigate timeline mode

Reason:

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

Moving out of the current sprint.

Change #1026550 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Use IExpression objects in ChangeService

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

Dreamy_Jazz set the point value for this task to 3.

Change #1034100 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] [WIP] Add read new support to Timeline pager

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

Change #1034524 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Update TimelineRowFormatter to read new for event table migration

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

Change #1034550 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Pass ServiceOptions to ChangeService::__construct

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

Change #1034515 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Remove outdated note in TimelineRowFormatter::getUserLinks

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

Change #1034893 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Add test data for new result tables in TimelinePagerTest

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

Change #1034550 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Pass ServiceOptions to ChangeService

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

Change #1034524 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Update TimelineRowFormatter to read new for event table migration

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

Change #1034515 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Remove outdated note in TimelineRowFormatter::getUserLinks

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

Change #1034893 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Add test data for new result tables in TimelinePagerTest

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

Change #1034100 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Add read new support to the TimelineService

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

dom_walden subscribed.

I have compared the results in the Timeline tab before and after this change. Direct comparison is a bit difficult but I have only seen a few differences.

  • For log events, we now include a link to Special:Log?page=<target> (where <target> includes things like the name of an article or User:<user>)
  • For log events, the performer and target names are links to their user pages (or Special:Contributions if they are a temp user)
  • For log events, we show the log reason
  • Edit summaries and log reasons are no longer in parentheses

Test environment: local docker CheckUser 2.5 (e98e323) 19:37, 3 June 2024.

Dreamy_Jazz updated the task description. (Show Details)