Refactor edit stashing into a PageEditStash service
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 13 Apr 2019 04:38:55 +0000 (21:38 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 17 Apr 2019 19:53:03 +0000 (12:53 -0700)
commit285930668495b47e3ffe4ca7a0ddebe3135dce52
treec1386eeba7c3bed191e36f9861c24e50349d7265
parent63591baccce89e34dddb6a6b227f4e024111327b
Refactor edit stashing into a PageEditStash service

Additional code cleanup:
* Call setCacheTime() in parseAndStash instead of relying
  on the one in DerivedPageDataUpdater.
* Improve the SPI logging by adding more extra fields.
* Treat requests in CLI/job mode (aside from tests) like
  those from bots with regard to checking the stash.
  This should avoid stats/logging pollution.

Change-Id: I8c6be919e399378e401a60502add0ecec7764d2d
includes/MediaWikiServices.php
includes/ServiceWiring.php
includes/Storage/DerivedPageDataUpdater.php
includes/Storage/PageEditStash.php [new file with mode: 0644]
includes/api/ApiFormatFeedWrapper.php
includes/api/ApiStashEdit.php
maintenance/runJobs.php
tests/phpunit/includes/api/ApiStashEditTest.php