Page MenuHomePhabricator

Rebuildrecentchanges.php should set the previous revision size for page creations to zero, not null
Closed, ResolvedPublic

Description

When a new page is created, the rc_old_len value (previous revision size) for the creation is set to zero. To be consistent, the rebuildrecentchanges.php script should also set the rc_old_len value for page creations to zero, rather than null. Otherwise, the Main Page (by default 735 bytes) and other new pages will not show the size on Special:RecentChanges.

Event Timeline

Change 413073 had a related patch set uploaded (by GeoffreyT2000; owner: GeoffreyT2000):
[mediawiki/core@master] Set the previous size for page creations to zero in rebuildrecentchanges.php

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

We should have an integration test that makes a few contributors, checks the recent changes table, and then checks again after rebuilding the table. Right now it’s all manually checked.

Umherirrender assigned this task to GTrang.

Change 413073 merged by jenkins-bot:
[mediawiki/core@master] Set the previous size for page creations to zero in rebuildrecentchanges.php

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