aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/filebackend/filejournal
Commit message (Collapse)AuthorAgeFilesLines
* Drop experimental FileJournal system without deprecationJames D. Forrester2021-11-012-265/+0
| | | | | | | The feature was introduced in 2012 with d19f54602f (just before the gerrit migration). Change-Id: Ia3f59ad0ddeb1f610947b14e22b0694ff4c6ed84
* build: Updating mediawiki/mediawiki-phan-config to 0.10.5Umherirrender2020-12-121-0/+1
| | | | Change-Id: I343d2bae626a3903eb1e67c05bf5caef4314b7dd
* Improve docs in FileJournal classUmherirrender2020-11-272-11/+11
| | | | Change-Id: Ib3aaec1a9ea33c227b3002816907e42d1a970b76
* Merge "Replace "@stable for subclassing" with "@stable to extend""jenkins-bot2020-07-131-1/+1
|\
| * Replace "@stable for subclassing" with "@stable to extend"daniel2020-07-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | For compliance with the new version of the table interface policy (T255803). This patch was created by an automated search & replace operation on the includes/ directory. Bug: T257789 Change-Id: Ie32c1b11b3d16ddfc0c83a757327d449ff80b2e4
* | Replace "@stable for calling" by "@stable to call"daniel2020-07-131-1/+1
|/ | | | | | | | | | | For compliance with the new version of the table interface policy (T255803). This patch was created by an automated search & replace operation on the includes/ directory. Bug: T257789 Change-Id: If560596f5e1e0a3da91afc36e656e7c27f040968
* Mark file backend base classes as stable for subclassingdaniel2020-07-101-0/+2
| | | | | Bug: T247862 Change-Id: Iee9a655f29f499fb6ace6f9d5bb1e01432bd70e1
* Deprecate FileJournal::factoryAryeh Gregor2019-11-041-4/+8
| | | | | | | | | Instead, the constructors for FileJournal and NullFileJournal should be treated as stable. I would have added @stable, but our linting doesn't recognize it yet and doesn't let. Bug: T235066 Change-Id: I7741055b4f00197d1346ebbfebc14f20238a06f3
* Unit tests for FileBackendAryeh Gregor2019-10-301-0/+4
| | | | | | | | | | | Currently 62.79% coverage, 108/172 lines. One oddity discovered during testing was that the "quick" variants of most methods don't have an $opts parameter. It seems like just an oversight, so I added it. Bug: T234227 Change-Id: If2978065392cd6dcf693a588bb1ce6b5d43828f2
* Fix new phan errors, part 4Daimona Eaytoy2019-10-121-1/+2
| | | | | | | Still doc-only, this ends the easy part. Bug: T231636 Change-Id: I51f180edc57d96322b9cd46e6a32aeffcbdc3bed
* FileJournal testsAryeh Gregor2019-09-031-2/+2
| | | | | | | | | | | | | 100% unit test coverage for FileJournal and NullFileJournal. 100% integration test coverage for DBFileJournal. Unit tests for DBFileJournal once it supports injection. I removed FileJournal and NullFileJournal from the list of classes that FileBackendTest tests. It doesn't actually test them, it just happens to run code from them without checking its correctness at all. Depends-On: Ic22075bb5e81b7c2c4c1b8647547aa55306a10a7 Change-Id: I46d10ab7b87c23937aa04d7ec1922abfcf3bd611
* Integration tests for FileBackendGroupAryeh Gregor2019-08-281-7/+7
| | | | | | | 100% coverage except for one bit of the code that I didn't understand. Unit tests to come, together with rewrite as a service. Change-Id: Ib01758d994a9e5587a4fcb5edc3d80010ef05615
* filebackend: remove wfTimestamp() dependency from FileJournalAaron Schulz2019-06-291-3/+6
| | | | Change-Id: Ia9b9e1d2d40d240566a37012fa01e5db0c276ec0
* Safe replacement of a lot of `!count()` with `=== []`Thiemo Kreuz2019-01-151-1/+1
| | | | | | | | | | | | | | | This was originally a global search and replace. I manually checked all replacements and reverted them if (due to the lack of type hints) either null (that would be 0 when counted) or a Countable object can end in the variable or property in question. Now this patch only touches places where I'm sure nothing can break. For the sanity of the honorable reviewers this patch is exclusively touching negated counts. You should not find a single `!== []` in this patch, that would be a mistake. Change-Id: I5eafd4d8fccdb53a668be8e6f25a566f9c3a0a95
* Fix PhanTypeMismatchDeclaredParamUmherirrender2018-07-071-2/+2
| | | | | | Auto fix MediaWiki.Commenting.FunctionComment.DefaultNullTypeParam sniff Change-Id: I865323fd0295aabd06f3e3c75e0e5043fb31069e
* Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenientBartosz DziewoƄski2018-05-301-1/+1
| | | | | | | | | | | | | | Find: /isset\(\s*([^()]+?)\s*\)\s*\?\s*\1\s*:\s*/ Replace with: '\1 ?? ' (Everywhere except includes/PHPVersionCheck.php) (Then, manually fix some line length and indentation issues) Then manually reviewed the replacements for cases where confusing operator precedence would result in incorrect results (fixing those in I478db046a1cc162c6767003ce45c9b56270f3372). Change-Id: I33b421c8cb11cdd4ce896488c9ff5313f03a38cf
* Remove "@author Aaron Schulz" annotationsAaron Schulz2017-06-271-1/+0
| | | | | Bug: T139301 Change-Id: Ib5248e8e27d60611c7373bce4b29dd5e85aa3489
* Move some FileBackend related classes to /libsAaron Schulz2016-09-192-0/+251
Change-Id: I0c3a84c2ed8b869519f4d38475a77539c24a88a8