| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
This makes the code easier to read to avoid jumps and improves
encapsulation by not allowing the rest of the class having access to the
logic. Of course, if needed then some code can be refactored out again
but for now let's not do YAGNI.
Change-Id: Ic37524e386fc04fd67e33768417ff8425f85b0ca
|
|\ |
|
| |
| |
| |
| |
| | |
Bug: T353418
Change-Id: I3ff0c856751e7f71cf574da56acea508e0e02069
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add a note to disable the use of Rosetta if the user
encounters a 503 error.
https://phabricator.wikimedia.org/P49617
Change-Id: I8257b3767ab92d4b4ebc1201e712fe00b735bdab
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Bug: T353458
Change-Id: I31f7cba42c02701e462eb3ed6bcc3928d438c1ef
|
|\ \ \ \ |
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This code should only be executed in development environments, never
in production, so it should be safe to mess with it.
Bug: T313841
Change-Id: I8cab7704b244db1432f4266b2e06e03452ffc98f
|
|\ \ \ \
| |_|/ /
|/| | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
In our JS, especially around watchlisting, we use both 'infinity' and
'infinite' as infinity values, depending on if we're talking about the
expiry dropdown (which uses 'infinite') or API interaction (which more
commonly uses 'infinity').
This patch adds a stable method to test if a string is infinity so that
we don't need to worry about which context the value is coming from.
Bug: T353389
Change-Id: If53a88b20deb09998281794028704a64d1379f92
|
| |/ /
|/| |
| | |
| | | |
Change-Id: I819de8dfc40526544f9bf129495424625fc0cdc9
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
SHOW has some odd conventions and caveats which make the code
surrounding it more complicated. Use information_schema instead, with a
SelectQueryBuilder.
Exclude views from DatabaseMySQL::listTables(), for consistency with the
other DBMSes. This is an alternate fix for T45571 and renders
listViews() unnecessary.
Remove failing unit test for listViews(). I will deprecate listViews()
in a followup commit.
Change-Id: Id9ab64fc8b09d9d61dc64253b7c9ea5a955ca50b
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Bug: T353307
Change-Id: I8389b7d02befcd664f121b962ef010bc90b972d3
|
| |/ /
|/| |
| | |
| | | |
Change-Id: I758e6650451f8a4a0e81ddc7e70ca70d18cd3e3c
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Instead of quoting any possible input as an identifier, validate the
input and fail if it contains a special character. This allows us to
simplify the implementation of the corresponding unquoting in
SQLPlatform::extractTableNameComponents.
* Add getIdentifierQuoteChar(), and unify the implementations except
for this one detail.
* addIdentifierQuotes() was/is not abstract. Remove the incorrect
comment about this from DatabaseTest. I tried removing the stub from
SQLPlatformTestHelper but there were 170 test failures, so it gets a
TODO for now.
Change-Id: I711968b17b303bbb5efd2882bc676b695d25ef7f
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Changes:
* Addresses eslint warnings relating to multiple @return
types
* Adopt ES6 shorthand function for return values
Bug: T352308
Change-Id: I43cb7e8e5f8c9ded46249e5f26a60a314b7d8cb1
|
|\ \ \ \ |
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Adds a SQLPlatform::extractTableNameComponents() helper method
to replace the buggy explode() call in in qualifiedTableComponents().
Make qualifiedTableComponents() handle the job of filtering out empty
table name qualifier components. This also avoids the 4-tuple return
value where $database and $schema could be flipped depending on the
RDBMS type.
Remove SQLPlatform::prependDatabaseOrSchema() helper method by putting
the quoting log in tableName() directly.
Bug: T352316
Change-Id: I8c071cc19d99339484960f737a42287ad626736f
|
|\ \ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Parsoid is renaming SiteConfig::mainpage() to
SiteConfig::mainPageLinkTarget() (with a parameter type change to
match). The core-side implementation of the new method misspelled
its name.
Change-Id: I22f10ed25a9e4f8ce38c08cdeb10c69a54229a9c
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Creation of dynamic property ApiQueryImageInfoTest::$tempUser is
deprecated in php8.2
Follow-Up: I7986dea5ccd0dc942bf133040c4ac715487f29b9
Change-Id: Ifa2b1fc46a30edb12266d46b71d8916c53397cc0
|
|\ \ \ \ \ |
|
| | |_|_|/
| |/| | |
| | | | |
| | | | | |
Change-Id: I2055d56a185c64b2ee1da6ab2e985b5a8f771352
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Currently there are two @return annotations meaning this is not
correctly documented. eslint flags this as a warning.
Instead use a @typedef to describe the return type.
Follow up to Ia709de48cbc0f00ff832eb4666e6abcffdb6f710
Bug: T352308
Change-Id: I960a4569335c35b4a60fd9dbc1d1ab7cdcc0cf82
|
|\ \ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Breaking change is only dropping PHP 7.2 & 7.3 support, which we
already don't support here.
Full list of changes (as no 'upstream' changelog):
d260476 build: Updating ockcyp/covers-validator to 1.3.1
c5f7bf0 build: Updating mediawiki/mediawiki-codesniffer to 34.0.0
27e4b91 Remove unneeded \ with ReflectionException
52d95d0 build: Updating composer dependencies
4502843 Add tests to cover currently uncovered lines
19c8b76 build: Updating composer dependencies
2ecdc9d build: Cleanup and improve .phpcs.xml
98375ff build: Updating mediawiki/mediawiki-codesniffer to 37.0.0
a4813ea build: Updating composer dependencies
b62e9d6 build: Updating composer dependencies
9c5f87e build: Updating composer dependencies
7b31aab [BREAKING CHANGE] Drop PHP 7.2 and PHP 7.3 support
89423ac build: Upgrade PHPUnit from ^8.5 to 9.5.28
f100e7f build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
a06a1e5 tests: Make data provider a static method
e3c0ef8 build: add phan
975c15c Add TestingAccessWrapper::construct() to use non-public constructors
975e899 Avoid deprecation warning for static properties
Bug: T352789
Bug: T287972
Change-Id: Ie4b93e737d98242fbad33f7b690a2412bdce543d
Depends-On: Iff3556dbff2cc1d9333d83f09d21765ee83bf1e9
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This merely cleans up the file a bit, and will make reviewing
I383b5a9fd2 considerably easier.
Change-Id: Ida983d138365aca279a1949b7f92650a5f139dc1
|
|\ \ \ \ \ |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Bug: T352308
Change-Id: Ie415603420b818bb3aa20215965d488b538a0931
|
|\ \ \ \ \ \ |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Bug: T352308
Change-Id: I3bccaab232647f2c368758bd6c7e395d9b009bae
|
|\ \ \ \ \ \ \ |
|
| |/ / / / / /
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: I6a90dcd0ef12bfc2745cae79d20dc5d80d91b744
|
|\ \ \ \ \ \ \ |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
When running tests together with the CheckUser extension there is a
database error, for RC_LOG both fields must be not-null
Error 1048: Column 'cupe_log_type' cannot be null
Function: MediaWiki\CheckUser\Hooks::updateCheckUserData
Change-Id: I188df89b75a57aa1cc82c77f5c925bee634501cb
|
|\ \ \ \ \ \ \ \
| |_|/ / / / / /
|/| | | | | | | |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Temporary accounts are now distinct from users or anonymous.
Add a flag to reflect that to:
- ApiQueryImageInfo
- ApiQueryLogEvents
- ApiQueryRecentChanges
- ApiQueryRevisionsBase
Bug: T351636
Change-Id: I7986dea5ccd0dc942bf133040c4ac715487f29b9
|
|\ \ \ \ \ \ \ \ |
|
| | |_|/ / / / /
| |/| | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Bug: T350615
Change-Id: Iee6c5506623a370485755e3377b1199dc8ceb0de
|
|\ \ \ \ \ \ \ \ |
|
| |/ / / / / / /
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
The description gets truncated after the full stop + space.
This patch reformats it so the entire thing will display.
Bug: T353285
Change-Id: I43a217ff9867883e4041ef0ceb707a884faf906f
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
It is not perfect, but it's a major improvement compared the existing
one. We need to clean up a lot more once it has landed but it's a good
start.
Bug: T337435
Change-Id: I1f85110e754546c797d3325b8dd6878093790266
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
|