Page MenuHomePhabricator

Write maintenance script to recover lost moderation logs
Closed, ResolvedPublic

Description

Deployment needs to be coordinated with T89428: Flow logging is broken.

Event Timeline

I realized when testing this that the dates were wrong. I can think of a couple approaches:

  1. Use LogEntry->setTimestamp when the revision's date (not really necessary for normal logging, but a general way to deal with this problem).
  2. Pass an optional timestamp field that is only used for scripts like this (e.g. in the metadata parameter)

I think #1 is cleaner, but I'm open to suggestions.

Change 191543 had a related patch set uploaded (by Mattflaschen):
WIP: Backfill moderation (delete, suppress) logging that was dropped

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

Patch-For-Review

generally we should be setting any timestamp about a revision to match the timestamp within the revision, in additon to being cleaner we have had off by one errors in tests because of the timestamps differing.

Change 191543 merged by jenkins-bot:
Backfill moderation (delete, suppress) logging that was dropped

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