Commit graph

34 commits

Author SHA1 Message Date
Umherirrender ce2920a0d5 Replace deprecated wfGetDB
Emits deprecation warnings since 1.42 (30795cda4f59)
Not replacing with IConnectionProvider for compatibility (needs 1.40)

Change-Id: I253e0c373a2e0d45bbd25b1b6b816ac9d63c9077
2024-09-21 20:20:01 +02:00
Jack Phoenix de1fa0ef27 Revert "LoadExtensionSchemaUpdates: Remove unused path from 'runMaintenance' action"
This reverts commit bab4d43206.

Reason for revert: breaks stated, advertised LTS compatibility that end-users expect (see https://www.mediawiki.org/wiki/Social_tools/MediaWiki_compatibility) (well, technically AJAXPoll isn't really a social tool per se, but some listings include it anyway, so...)

Change-Id: Ib0c4bde7040cdbb893acb200aa053fb1280078ff
2024-07-10 07:40:34 +00:00
Bartosz Dziewoński bab4d43206 LoadExtensionSchemaUpdates: Remove unused path from 'runMaintenance' action
MediaWiki has never used this path for running the maintenance
scripts, only the class name provided in the other parameter.
Providing the parameter is no longer needed in MediaWiki 1.43.

Also, remove outdated pitfall warning, it was fixed by marking
the method as protected in MediaWiki 1.35 (Ie73e6143bb).

Bug: T367918
Change-Id: I1818cf882e820bca9d7ec22b9bd30a86b81970f5
2024-06-19 19:58:22 +02:00
zoranzoki21 e93f63f472 Update commented-out code to reflect T189222
Bug: T189222
Change-Id: I4301fda9fb1001ef845327ee385aa73a8a606633
2023-11-03 23:28:18 +01:00
TehKittyCat eb4c4f8cc7 Avoid writing to DB if poll-show-results-before-voting has not changed.
Change-Id: Iaec0cc9f3e9af5b35699618f57843722472436af
2023-04-22 22:37:48 -04:00
Kunal Mehta b6cddae91d Don't set a default value for $args
It'll always be passed by the Parser when invoking the hook.

Change-Id: I16efdfc733e89be2b810ee7b143a1ca54ad1ff26
2022-10-08 20:44:18 -04:00
Alexander Vorwerk 5f740abae5 Access row object correctly
Follow-Up: I27803218e440f541bfd1352d72ce0ad3cadf96d7

Bug: T302223
Change-Id: Ie2053ac7078cb7453cc4c624b7161b24353f21a0
2022-02-21 14:23:13 +00:00
Umherirrender 2b477a92e0 Use array style on adding modules to ParserOutput
String is deprecated

Bug: T296123
Change-Id: I6eb23d299ea922935b514e545af971ee06bb48da
2022-02-12 02:10:21 +01:00
Umherirrender d5eacbcba6 Replace deprecated IDatabase::fetchRow
Bug: T286694
Change-Id: I27803218e440f541bfd1352d72ce0ad3cadf96d7
2022-02-05 20:56:47 +01:00
Umherirrender 4deb1760f6 Replace removed Parser::getUser
Change-Id: I50cfeef97402d2b718d0fbe6254b6bd7ac48a810
2021-12-09 12:54:09 +01:00
Alexander Vorwerk e37a2fd2be Use DB_PRIMARY instead of deprecated DB_MASTER
Raise support floor to 1.35.3 for this.

Change-Id: Ieb1651d5934772fd207d42f70167cd993af0a54b
2021-09-18 14:40:40 +02:00
Jack Phoenix 86bf2319be Remove Database#(start|end)Atomic method calls to prevent deadlocks
Change-Id: Id10de191d03673c6445b1f971d7cf9407392f129
2021-07-14 18:16:02 +03:00
Umherirrender 4ab46c250f build: Remove unneeded @codingStandardsIgnore
Instead split long lines

Bug: T278594
Change-Id: I3ddab608254ac4f09dcef0519d952e208f263930
2021-04-04 20:13:02 +02:00
zoranzoki21 4e4a2c36f2 Fix MediaWiki.Files.ClassMatchesFilename.NotMatch
Change-Id: Ib9779e15ade2832b57bcd96112daa7a70a31482c
2020-09-10 19:30:46 +02:00
zoranzoki21 7f1a1ff75c Fix MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic
Change-Id: I671831fff70680ca67ba43063bbd620677967b14
2020-09-10 19:29:15 +02:00
Jack Phoenix b08fe9b870 Remove use of global $wgUser
Bug: T243568
Change-Id: Ib0749163e304f19f4067b8c4f997688be4d4b268
2020-02-08 15:51:46 +02:00
Jack Phoenix cfba15fde7 Run timestamps through Database#timestamp, for PostgreSQL
Bug: T87542
Change-Id: I2826fbd2c6b096ef849f972f8d25503155d42345
2020-02-05 15:43:55 +02:00
jenkins-bot 6ddd43282b Merge "PostgreSQL support" 2020-02-05 01:13:48 +00:00
Jack Phoenix 525a37a284 PostgreSQL support
Bug: T87542
Change-Id: I1089667c7228412fcb8f98702a8bad19abe76aa1
2020-02-01 07:33:08 +00:00
Ostrzyciel 949d97cdb6 Fix errors when using the DB readonly mode
AJAXPoll used to throw random DB errors when the DB is in readonly
mode, that should be fixed now. Also fixed a few minor bugs
encountered on the way.

Bug: T205219
Change-Id: I079b2876e01ab8e9916fcc8121d7f4c9a23f00a8
2020-01-29 10:57:08 +01:00
Jack Phoenix 125e943aa2 Actor support, now requires MW 1.34(+)
Bug: T227345
Change-Id: I6b3cefb37efe770f7dcb7f7c093bf71e1e8bb543
2020-01-14 16:32:56 +02:00
Jack Phoenix 71da36ea9c Don't pass variables around if you have no need for 'em
Change-Id: Id9fe08adcd1ba14477b84b469586e56ac9376025
2020-01-02 06:31:13 +02:00
Aaron Schulz b1ba4ceb39 Replace Database type hints with IDatabase
Change-Id: I0ee89a291f60ecde673386d726d6e27b87ad7ef2
2019-06-25 13:19:38 -07:00
Paladox 3cbe1779e2 Remove begin/commit from buildStats
This avoids notices like "Implicit transaction already active" and
"Explicit commit of implicit transaction" in the DBQuery log.

Bug: T198023
Change-Id: I8a91ac9f3bbb8d8042bc5f91cd5c44b3e8c92942
2018-07-04 14:49:17 +00:00
Jack Phoenix 0469665d77 Version 2.0: somewhat more properly convert the AJAX function into an API module to ensure continued post-1.30 compatibility
MW 1.30.0+ is now explicitly required; as such, dropped pre-1.17 support
from AJAXPoll#onLoadExtensionSchemaUpdates.

Also "fixed" T163625 by changing an INSERT INTO query into INSERT IGNORE
INTO, swapped some "double quotes" to 'single quotes', refactored some
stuff, etc.

Bug: T163625
Change-Id: Ifbabf3bf5da25c602fe5873539520c517573890c
2018-05-12 15:50:02 +03:00
Paladox 19b11b54d5 Move AjaxExportList to callback
Change-Id: I7f44b3ea0d5460cecfa358fe0a7f437f5d800b8b
2018-05-10 17:50:17 +00:00
Umherirrender 30940ad94e Improve some parameter docs
Change-Id: I11cdca3812a6bb6d93ffbc916a632b6589ca70b9
2018-01-19 14:09:30 +00:00
SamanthaNguyen ff8313e706 Replace deprecated Parser::disableCache() function
Deprecated in 1.28 in favor of CacheTime::updateCacheExpiry().

Change-Id: Iaffa63bb8e90e4d5853e47a59133d5b720ce89b1
2018-01-06 12:45:44 -06:00
Jack Phoenix 96537f9592 Removing my email address
Change-Id: Id1fe70f53a7622e852f2b70f2970cbaa740285fb
2017-11-11 23:51:27 +02:00
SamanthaNguyen 5e51a1e485 Replace deprecated bot permission check
Change-Id: I61905947f63bdfe1b73289105fb6bfa65e7f4683
2017-09-16 14:42:03 -05:00
jenkins-bot 21b4c94cd0 Merge "DB_SLAVE -> DB_REPLICA" 2017-09-02 00:14:08 +00:00
Max Semenik b43b07df00 DB_SLAVE -> DB_REPLICA
Change-Id: I7eeb1910cc98149aaab94f1d9f0a9562d13bf25b
2017-09-01 16:39:33 -07:00
libraryupgrader 5b44862b42 build: Updating mediawiki/mediawiki-codesniffer to 0.12.0
The following sniffs are failing and were disabled:
* MediaWiki.Files.ClassMatchesFilename.NotMatch

Change-Id: I5aae60568b7c9a59fabdfbdc1a262beec4a59a5c
2017-09-01 04:43:41 +00:00
SamanthaNguyen 4c4348557c Reorganize directory structure + file renaming
Bug: T160849
Change-Id: I4c7ec4d2c5e1dfcc65c4236c8b5d625c6e0e0f12
2017-07-13 15:25:45 +00:00