ContribsPager: Disallow looking too far in the past for 'newbies' queries
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 18 Jul 2016 16:43:37 +0000 (18:43 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 18 Jul 2016 16:46:57 +0000 (18:46 +0200)
commitb0c0fb9459aea8ddbcab2c75f8d41d59ae7c1d3b
tree5b24c5be5936805c891686968656ceaa42e2677d
parent6037bc5893ab2fe0dad970ac30510f5363c4f3e7
ContribsPager: Disallow looking too far in the past for 'newbies' queries

If the user requested a timestamp offset far in the past such that
there are no edits by users with user_ids in the range, we would end
up scanning all revisions from that offset until start of time.

This might end up generating funny queries with redundant conditions
on rev_timestamp, but that should not be a problem, and trying to
tweak paging logic would probably be more difficult than this.

Bug: T140537
Change-Id: I2ac9abee09529620588923bbafbcac07ebe466b2
includes/specials/pagers/ContribsPager.php