Re-namespace RevisionStore and RevisionRecord classes
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 20 Sep 2018 17:29:04 +0000 (13:29 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 9 Oct 2018 14:22:48 +0000 (10:22 -0400)
commitdff469a408dac341da27c97eaac85df946140e30
tree19944440086384b09d0a17d79554af3ff7f65ce0
parent2f187ce749718073b17e12f4e90e7b5ac8b2061a
Re-namespace RevisionStore and RevisionRecord classes

During development a lot of classes were placed in MediaWiki\Storage\.
The precedent set would mean that every class relating to something
stored in a database table, plus all related value classes and such,
would go into that namespace.

Let's put them into MediaWiki\Revision\ instead. Then future classes
related to the 'page' table can go into MediaWiki\Page\, future classes
related to the 'user' table can go into MediaWiki\User\, and so on.

Note I didn't move DerivedPageDataUpdater, PageUpdateException,
PageUpdater, or RevisionSlotsUpdate in this patch. If these are kept
long-term, they probably belong in MediaWiki\Page\ or MediaWiki\Edit\
instead.

Bug: T204158
Change-Id: I16bea8927566a3c73c07e4f4afb3537e05aa04a5
143 files changed:
RELEASE-NOTES-1.32
autoload.php
includes/AutoLoader.php
includes/MediaWikiServices.php
includes/Revision.php
includes/Revision/IncompleteRevisionException.php [new file with mode: 0644]
includes/Revision/MutableRevisionRecord.php [new file with mode: 0644]
includes/Revision/MutableRevisionSlots.php [new file with mode: 0644]
includes/Revision/RenderedRevision.php
includes/Revision/RevisionAccessException.php [new file with mode: 0644]
includes/Revision/RevisionArchiveRecord.php [new file with mode: 0644]
includes/Revision/RevisionFactory.php [new file with mode: 0644]
includes/Revision/RevisionLookup.php [new file with mode: 0644]
includes/Revision/RevisionRecord.php [new file with mode: 0644]
includes/Revision/RevisionRenderer.php
includes/Revision/RevisionSlots.php [new file with mode: 0644]
includes/Revision/RevisionStore.php [new file with mode: 0644]
includes/Revision/RevisionStoreFactory.php [new file with mode: 0644]
includes/Revision/RevisionStoreRecord.php [new file with mode: 0644]
includes/Revision/SlotRecord.php [new file with mode: 0644]
includes/Revision/SlotRenderingProvider.php
includes/Revision/SuppressedDataException.php [new file with mode: 0644]
includes/ServiceWiring.php
includes/Storage/DerivedPageDataUpdater.php
includes/Storage/IncompleteRevisionException.php [deleted file]
includes/Storage/MutableRevisionRecord.php [deleted file]
includes/Storage/MutableRevisionSlots.php [deleted file]
includes/Storage/PageUpdater.php
includes/Storage/RevisionAccessException.php [deleted file]
includes/Storage/RevisionArchiveRecord.php [deleted file]
includes/Storage/RevisionFactory.php [deleted file]
includes/Storage/RevisionLookup.php [deleted file]
includes/Storage/RevisionRecord.php [deleted file]
includes/Storage/RevisionSlots.php [deleted file]
includes/Storage/RevisionSlotsUpdate.php
includes/Storage/RevisionStore.php [deleted file]
includes/Storage/RevisionStoreFactory.php [deleted file]
includes/Storage/RevisionStoreRecord.php [deleted file]
includes/Storage/SlotRecord.php [deleted file]
includes/Storage/SuppressedDataException.php [deleted file]
includes/actions/McrUndoAction.php
includes/api/ApiComparePages.php
includes/api/ApiFeedContributions.php
includes/api/ApiQueryAllDeletedRevisions.php
includes/api/ApiQueryAllRevisions.php
includes/api/ApiQueryContributors.php
includes/api/ApiQueryDeletedRevisions.php
includes/api/ApiQueryFilearchive.php
includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryRevisions.php
includes/api/ApiQueryRevisionsBase.php
includes/api/ApiQueryUserContribs.php
includes/api/ApiQueryWatchlist.php
includes/api/ApiRevisionDelete.php
includes/api/ApiTag.php
includes/diff/DifferenceEngine.php
includes/jobqueue/jobs/RefreshLinksJob.php
includes/page/Article.php
includes/page/PageArchive.php
includes/page/WikiPage.php
includes/poolcounter/PoolWorkArticleView.php
includes/specials/SpecialUndelete.php
maintenance/edit.php
maintenance/populateContentTables.php
maintenance/storage/dumpRev.php
tests/common/TestsAutoLoader.php
tests/phpunit/includes/Revision/McrReadNewRevisionStoreDbTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/McrReadNewSchemaOverride.php [new file with mode: 0644]
tests/phpunit/includes/Revision/McrRevisionStoreDbTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/McrSchemaDetection.php [new file with mode: 0644]
tests/phpunit/includes/Revision/McrSchemaOverride.php [new file with mode: 0644]
tests/phpunit/includes/Revision/McrWriteBothRevisionStoreDbTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/McrWriteBothSchemaOverride.php [new file with mode: 0644]
tests/phpunit/includes/Revision/MutableRevisionRecordTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/MutableRevisionSlotsTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/NoContentModelRevisionStoreDbTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/PreMcrRevisionStoreDbTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/PreMcrSchemaOverride.php [new file with mode: 0644]
tests/phpunit/includes/Revision/RenderedRevisionTest.php
tests/phpunit/includes/Revision/RevisionArchiveRecordTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/RevisionQueryInfoTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/RevisionRecordTests.php [new file with mode: 0644]
tests/phpunit/includes/Revision/RevisionRendererTest.php
tests/phpunit/includes/Revision/RevisionSlotsTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/RevisionStoreDbTestBase.php [new file with mode: 0644]
tests/phpunit/includes/Revision/RevisionStoreFactoryTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/RevisionStoreRecordTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/RevisionStoreTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/SlotRecordTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/create-pre-mcr-fields.sql [new file with mode: 0644]
tests/phpunit/includes/Revision/drop-mcr-tables.sql [new file with mode: 0644]
tests/phpunit/includes/Revision/drop-pre-mcr-fields.sql [new file with mode: 0644]
tests/phpunit/includes/Revision/drop-pre-mcr-fields.sqlite.sql [new file with mode: 0644]
tests/phpunit/includes/RevisionDbTestBase.php
tests/phpunit/includes/RevisionMcrDbTest.php
tests/phpunit/includes/RevisionMcrReadNewDbTest.php
tests/phpunit/includes/RevisionMcrWriteBothDbTest.php
tests/phpunit/includes/RevisionNoContentModelDbTest.php
tests/phpunit/includes/RevisionPreMcrDbTest.php
tests/phpunit/includes/RevisionTest.php
tests/phpunit/includes/Storage/DerivedPageDataUpdaterTest.php
tests/phpunit/includes/Storage/McrReadNewRevisionStoreDbTest.php [deleted file]
tests/phpunit/includes/Storage/McrReadNewSchemaOverride.php [deleted file]
tests/phpunit/includes/Storage/McrRevisionStoreDbTest.php [deleted file]
tests/phpunit/includes/Storage/McrSchemaDetection.php [deleted file]
tests/phpunit/includes/Storage/McrSchemaOverride.php [deleted file]
tests/phpunit/includes/Storage/McrWriteBothRevisionStoreDbTest.php [deleted file]
tests/phpunit/includes/Storage/McrWriteBothSchemaOverride.php [deleted file]
tests/phpunit/includes/Storage/MutableRevisionRecordTest.php [deleted file]
tests/phpunit/includes/Storage/MutableRevisionSlotsTest.php [deleted file]
tests/phpunit/includes/Storage/NoContentModelRevisionStoreDbTest.php [deleted file]
tests/phpunit/includes/Storage/PageUpdaterTest.php
tests/phpunit/includes/Storage/PreMcrRevisionStoreDbTest.php [deleted file]
tests/phpunit/includes/Storage/PreMcrSchemaOverride.php [deleted file]
tests/phpunit/includes/Storage/RevisionArchiveRecordTest.php [deleted file]
tests/phpunit/includes/Storage/RevisionQueryInfoTest.php [deleted file]
tests/phpunit/includes/Storage/RevisionRecordTests.php [deleted file]
tests/phpunit/includes/Storage/RevisionSlotsTest.php [deleted file]
tests/phpunit/includes/Storage/RevisionSlotsUpdateTest.php
tests/phpunit/includes/Storage/RevisionStoreDbTestBase.php [deleted file]
tests/phpunit/includes/Storage/RevisionStoreFactoryTest.php [deleted file]
tests/phpunit/includes/Storage/RevisionStoreRecordTest.php [deleted file]
tests/phpunit/includes/Storage/RevisionStoreTest.php [deleted file]
tests/phpunit/includes/Storage/SlotRecordTest.php [deleted file]
tests/phpunit/includes/Storage/create-pre-mcr-fields.sql [deleted file]
tests/phpunit/includes/Storage/drop-mcr-tables.sql [deleted file]
tests/phpunit/includes/Storage/drop-pre-mcr-fields.sql [deleted file]
tests/phpunit/includes/Storage/drop-pre-mcr-fields.sqlite.sql [deleted file]
tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php
tests/phpunit/includes/content/WikitextContentHandlerTest.php
tests/phpunit/includes/diff/DifferenceEngineTest.php
tests/phpunit/includes/page/ArticleViewTest.php
tests/phpunit/includes/page/PageArchiveMcrTest.php
tests/phpunit/includes/page/PageArchivePreMcrTest.php
tests/phpunit/includes/page/PageArchiveTestBase.php
tests/phpunit/includes/page/WikiPageDbTestBase.php
tests/phpunit/includes/page/WikiPageMcrDbTest.php
tests/phpunit/includes/page/WikiPageMcrReadNewDbTest.php
tests/phpunit/includes/page/WikiPageMcrWriteBothDbTest.php
tests/phpunit/includes/page/WikiPageNoContentModelDbTest.php
tests/phpunit/includes/page/WikiPagePreMcrDbTest.php
tests/phpunit/includes/parser/ParserMethodsTest.php
tests/phpunit/includes/poolcounter/PoolWorkArticleViewTest.php