LogEntry: Make associated rev id persistent (store in logging and log_search)
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 29 Dec 2015 00:21:50 +0000 (01:21 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 7 Jan 2016 02:19:51 +0000 (02:19 +0000)
commitf66ff602447c200eef76cad55f195ff6c11954aa
tree985d9d2441247b429354347a7c9b04d63f2c1be9
parentc34682d3e94b37fa8874f757d0fcea0ece92537a
LogEntry: Make associated rev id persistent (store in logging and log_search)

The implementation from 0160b410bd514681b1637ccab2b7c79158fbfb29 only
stored the associated rev id in the `recentchanges` table, which was
sufficient for its purpose of allowing patrol of these log entries and
provided some change tagging improvements, but ephemeral.

Now we also store it in `logging` and `log_search` tables, which makes
it possible to find a revision for the log entry and vice versa.

* For `log_search` we just add a row with 'associated_rev_id' as key,
  it was designed for exactly this purpose.
* For `logging` we store it in log_params field in ManualLogEntry, and
  transparently remove it from there when building a DatabaseLogEntry.

Bug: T122089
Change-Id: I559587ff77b3c94b31a6c5951287b6f9c1e167ce
includes/filerepo/file/LocalFile.php
includes/logging/LogEntry.php