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
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
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
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
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
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
IBufferingStatsdDataFactory::set and ::increment are documented to
return an array
Found by phan strict checks
Change-Id: I13ac98615d4ff1bf86cb08790739f5a94ef21017
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
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
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
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