Commit graph

108769 commits

Author SHA1 Message Date
Timo Tijhof
8a0afc31b1 EtcdConfig: Remove YAML from available 'encoding' options
This appears impossible to use because the request is always made
with `Content-Type: application/json`.

* It seems unreasonable for an Etcd server to not support JSON.
* It seems unreasonable for an Etcd server to respond with YAML
  to a JSON request.
* It seems unlikely that anyone would prefer YAML over JSON for
  the automated encoding and decoding of fully automated inter-service
  communication.

Change-Id: I290e03e17d547c3dc675820bb024c940e02e097a
2022-03-11 12:45:18 +00:00
Timo Tijhof
aebeccc01b composer.json: Document what the suggested php extensions enable
Follows-up I795e785dd70f10.

Bug: T302540
Change-Id: I3436bda1e3fa930b92addbb3412af5a7ac64f431
2022-03-11 12:44:33 +00:00
jenkins-bot
ccd9788774 Merge "Set page id to 0 for pages in virtual namespaces" 2022-03-11 09:21:57 +00:00
Translation updater bot
b2ab37286a Localisation updates from https://translatewiki.net.
Change-Id: I61cbdd8370036cfaf1d6478a223d7f3efe13f507
2022-03-11 08:10:37 +01:00
jenkins-bot
6be43019d9 Merge "Re-apply "preferences: Use a faster and simpler form descriptor when validating"" 2022-03-10 23:17:32 +00:00
Func
ab3ff34c47 Re-apply "preferences: Use a faster and simpler form descriptor when validating"
Previously attempted in 07b4daf85d,
reverted in 8763d8e911.

Message parsing used to be the biggest part of loads during
DefaultPreferencesFactory::loadPreferenceValues(), since it need to
load form fields to validate existing user preferences.

Message names in form descriptor can be unset as much as possible,
but special cases should be carefully handled.

The attempt of loading value for info fields is skipped to avoid
issues described in T302643.

Bug: T58633
Bug: T302643
Change-Id: I05dcfd60d4103b447dea71851b8e4db9a5d0e1e6
2022-03-10 23:00:53 +00:00
jenkins-bot
801428d347 Merge "Tests: expected value goes first in PHPUnit assertions" 2022-03-10 20:55:22 +00:00
jenkins-bot
7f1b3c1efd Merge "Follow-up 26109fb098: Switch order of icon and main logo, and re-export SVGs" 2022-03-10 20:36:05 +00:00
Nikki Nikkhoui
f6780de058 Set page id to 0 for pages in virtual namespaces
If we are creating a Mock title, the ID should be set to 0
for any Titles that are in "virtual" namespaces (e.g.
any with a namespace ID < 0, which is Special: or
Media:)

Change-Id: I6aae00ae8f68ad3a93d9edd1194e828735e2a878
2022-03-10 20:12:27 +00:00
James D. Forrester
2d0cfced99 Follow-up 26109fb098: Switch order of icon and main logo, and re-export SVGs
Change-Id: I05e242ed8ec1a5287f95dac6eb588e92cca40d95
2022-03-10 15:05:23 -05:00
Umherirrender
4de76550a3 Fix various real types related to scalar types
Swap null/false or use real strings if needed

Found by phan strict checks

Change-Id: Id82ea609f05a76c5cb8c661d5cf2b7922d6cfbc1
2022-03-10 19:35:34 +00:00
James D. Forrester
26109fb098 logos: Set default install icon to be an SVG one
Change-Id: I5cd715a0c220667827cde99f0296280110c78631
2022-03-10 12:54:59 -05:00
jenkins-bot
48c08aa255 Merge "Update installer to reflect modern logos" 2022-03-10 17:36:54 +00:00
jenkins-bot
0170d893a8 Merge "stats: Implement interface in BufferingStatsdDataFactory correctly" 2022-03-10 17:23:14 +00:00
Jon Robson
9bd3af32fc Update installer to reflect modern logos
There are now 4 types of logos, only one of which is needed.
Update documentation in installer to reflect this.
Also make it possible to drag and drop files into the installer
and see live previews of what the logos will look like to aid
setup.

The 1x is no longer required.

Bug: T255913
Change-Id: I58226ae8fb02c32d2eeea65a50aaabbc193cb51c
2022-03-10 16:48:39 +00:00
Translation updater bot
da7bb46849 Localisation updates from https://translatewiki.net.
Change-Id: I8c84bcb268fb12be71f726ee27bdf4b9bf2829e6
2022-03-10 07:54:21 +01:00
jenkins-bot
8d2e09d2bf Merge "database: Fix various scalar and null types" 2022-03-10 05:56:31 +00:00
Tim Starling
89cfcb3cfd rdbms: Followups to automatic connection recovery patch
Change-Id: I5d51224a49937a2ca4bb09a8304fef358a91db9c
2022-03-10 05:30:22 +00:00
jenkins-bot
f55817d497 Merge "Allow ContentHandler to "override" non-existent actions" 2022-03-10 03:08:09 +00:00
jenkins-bot
6dc084d228 Merge "Refactor preview frontend logic into JavaScript API" 2022-03-10 00:40:37 +00:00
jenkins-bot
b9b75d9613 Merge "rdbms: make automatic connection recovery apply to more cases" 2022-03-10 00:08:35 +00:00
jenkins-bot
a68feffebd Merge "In BackupDumperPageTest, don't overwrite self::$dbClone" 2022-03-10 00:08:27 +00:00
jenkins-bot
6eb102c990 Merge "Allow users with sufficient permissions to access Special:RevisionDelete" 2022-03-09 23:45:48 +00:00
jenkins-bot
0200221a93 Merge "Fix various documentation related to null types (part II)" 2022-03-09 22:42:42 +00:00
jenkins-bot
96393c492e Merge "Add various fallback values for null return values" 2022-03-09 22:32:29 +00:00
jenkins-bot
e31b1fbe20 Merge "interwiki: Adjust documentation for InterwikiLookup::getAllPrefixes" 2022-03-09 22:28:04 +00:00
jenkins-bot
8f618cf551 Merge "Avoid use of null, bool or Status in log messages" 2022-03-09 22:15:20 +00:00
jenkins-bot
a3ad451a23 Merge "snapshot: Add @var documentation for class properties" 2022-03-09 22:15:12 +00:00
jenkins-bot
9faaabaf21 Merge "scripts: Use real bool in options for FileBackend::doOperations" 2022-03-09 22:08:59 +00:00
jenkins-bot
fc8b8e77fe Merge "Fix various documentation related to scalar types" 2022-03-09 21:58:03 +00:00
Umherirrender
5410a5691d snapshot: Add @var documentation for class properties
Change-Id: I80ba53bdeb730a115ab3eec4849a38a13a896cdb
2022-03-09 21:54:18 +00:00
jenkins-bot
65b95dfa1e Merge "SQLBagOStuff: Fix dbdomain argument in getConnectionViaLoadBalancer" 2022-03-09 20:56:53 +00:00
Umherirrender
d30b3d8926 Fix various documentation related to scalar types
Found by phan strict checks

Change-Id: If41d16b473baddd92cc4261cdc2bfbe65fedcb19
2022-03-09 20:49:51 +00:00
Umherirrender
e4829c6ea3 SQLBagOStuff: Fix dbdomain argument in getConnectionViaLoadBalancer
getMaintenanceConnectionRef second parameter is the group,
not the domain
Break another line to make the argument order more visible

Follow-Up: 618b61a4c6
Change-Id: Id6dd0c2f8e5aded759fe403f8435ee7251a46b8c
2022-03-09 20:36:34 +00:00
jenkins-bot
65ba7e2560 Merge "Allow the user to set a default number of search results" 2022-03-09 20:13:45 +00:00
Umherirrender
478c4892f6 database: Fix various scalar and null types
Fix return values to match documentation
Provide fallback if no null value is allowed
Return from inside of try/finally makes it clear for static analyzer

Change-Id: I8bdfa453fc56dc50749cbd324b3d0d36e8e7065e
2022-03-09 20:28:00 +01:00
Umherirrender
375d2b7a17 stats: Implement interface in BufferingStatsdDataFactory correctly
IBufferingStatsdDataFactory::set and ::increment are documented to
return an array

Found by phan strict checks

Change-Id: I13ac98615d4ff1bf86cb08790739f5a94ef21017
2022-03-09 20:25:41 +01:00
Umherirrender
19925ef026 Add various fallback values for null return values
Found by phan strict checks

Change-Id: I83187b5fd25b015d2c75e22d4b5202803653d743
2022-03-09 20:15:36 +01:00
jenkins-bot
0cf01bc091 Merge "purgeList.php: Swap usleep() to sleep()" 2022-03-09 19:08:52 +00:00
MusikAnimal
8780b503f6 Refactor preview frontend logic into JavaScript API
This moves the preview logic that was part of
mediawiki.action.edit.preview.js into a dedicated module with a JS
entrypoint so it can be used by other systems such as the upcoming
Real Time Preview.

Bug: T294319
Change-Id: Ifbd57a74375c556bf09d5eee40c2d6396062d1a0
2022-03-09 13:43:47 -05:00
jenkins-bot
8973b02425 Merge "docs: Clarify that SpecialVersion's extension credit labels are text" 2022-03-09 16:39:02 +00:00
Timo Tijhof
6715f6c188 docs: Clarify that SpecialVersion's extension credit labels are text
All core entries are assigned via Message::text(), and stores not
raw HTML, but text to be outputted as literal after escaping.

Change-Id: I0abda0abbc9eead02d5833f315d73adb9b95004c
2022-03-09 16:24:38 +00:00
jenkins-bot
5ce113a799 Merge "title: Restore boolean false Title::getTouched() for nonexistent page" 2022-03-09 15:16:34 +00:00
jenkins-bot
4acd28a17c Merge "rdbms: Hard-deprecate LoadBalancer::getLazyConnectionRef" 2022-03-09 15:14:53 +00:00
daniel
00c489cd18 title: Restore boolean false Title::getTouched() for nonexistent page
Feeding the return value of the DB query through timstamp conversion
made it so that false was turned into the current timestamp, causing
confusion and cache churn.

Bug: T298520
Change-Id: I6e10b21f6b0e40ce7e3403ffc9a41a307e945354
2022-03-09 14:56:23 +00:00
Umherirrender
31bfc71c37 purgeList.php: Swap usleep() to sleep()
sleep is sleeping for seconds, while usleep sleeps for microseconds.
But the value is multiply by 1e6, which makes it real seconds.
The option is also documented to take seconds and not fraction of
seconds.

Change-Id: I507fa549729456a05ba45e9b3ee2e0bf04c49d14
2022-03-09 13:33:53 +00:00
jenkins-bot
ed547a5be5 Merge "search: Fix various scalar types to match documentation" 2022-03-09 10:20:42 +00:00
Amir Sarabadani
49a9d44b18 rdbms: Hard-deprecate LoadBalancer::getLazyConnectionRef
All deployed usages have been migrated.

Bug: T255493
Change-Id: I82683596d644bb61a109e79dde6b0cb22c72b399
2022-03-09 10:45:00 +01:00
Translation updater bot
eaaa1fbbd9 Localisation updates from https://translatewiki.net.
Change-Id: Ibbeb83ee7aee6c066ef14e8e00a263eef2b4bb40
2022-03-09 07:57:53 +01:00
jenkins-bot
d6170c9e20 Merge "In wfArrayInsertAfter(), skip insert on missing key" 2022-03-09 05:42:36 +00:00