Commit graph

95959 commits

Author SHA1 Message Date
jenkins-bot
aedff87cd1 Merge "resourceloader: Move RL hooks to own namespace, use PSR-4" 2020-05-04 22:58:03 +00:00
jenkins-bot
f8031674f5 Merge "resources: Upgrade qunit from 2.9.3 to 2.10.0" 2020-05-04 22:57:04 +00:00
Timo Tijhof
b7ac554304 resourceloader: Move RL hooks to own namespace, use PSR-4
Follows-up f5aaf75ad1.

* Improve some docs for these hooks.
* Add type hints.
* Add them as a subgroup within the ResourceLoader docgroup
  for easy navigation.

Bug: T246855
Change-Id: I52f31e2b63dcf265b27e68ba8fd4f885d82088ac
2020-05-04 22:42:00 +00:00
jenkins-bot
a24f8e9173 Merge "mediawiki.toc: Fix cookie persistence and remove redundant code" 2020-05-04 22:05:04 +00:00
James D. Forrester
9a868a0b99 resources: Upgrade qunit from 2.9.3 to 2.10.0
Change-Id: Ib0a0ab2465946fbedf120ebb506a038c526fc78e
2020-05-04 13:49:51 -07:00
Reedy
cb72a5e737 Update AUTHOR/CREDITS/COPYING/LICENSE comments to match expected case
Change-Id: I26a7405f00fafba2fbbe9f7c5d82ddae7e3e1f1c
2020-05-04 20:47:20 +00:00
jenkins-bot
9509b006ee Merge "vue: Add support for parameters to the i18n plugin" 2020-05-04 20:15:29 +00:00
jenkins-bot
94eab4696e Merge "language: Avoid LCStoreStaticArray::decode() recursion for arrays" 2020-05-04 20:00:45 +00:00
jenkins-bot
bad3d0da36 Merge "language: Add test coverage for LCStoreStaticArray" 2020-05-04 19:56:56 +00:00
jenkins-bot
3f042c43f0 Merge "Fix Postgres user_newtalk table" 2020-05-04 19:33:20 +00:00
jenkins-bot
b6567b38c1 Merge "SpecialVersion: Call static functions statically" 2020-05-04 19:30:44 +00:00
Timo Tijhof
09de9f34ed mediawiki.toc: Fix cookie persistence and remove redundant code
* Remove fallback for creating link toggles the "old" way.
  This obsolete with the checkbox-based implementation we've had for over
  a year now. This means that any server- or user-produced TOC-like
  elements without a toggle, will continue to be non-toggleable.

* Remove obsolete "tochidden" styling and print style. This is all
  taken care by mediawiki.toc.styles already.

* Fix the bug where the "Hide" state cookie was not applied after reload
  or when visiting other pages.This logic was trapped inside fallback
  which is no longer triggered on page views today.

* Reduce the JS code to just:
  - On initial load, if cookie says to hide, hide.
  - On click, flip a cookie.
  - Remove use of jQuery. This is simple stuff :)

* Testing:
 - Update tests to assert the code we actually use (checkbox),
   and not the fallback logic that has now been removed.
 - Add new test to confirm that initial hidden state works.

Bug: T210789
Change-Id: I49014af70982a16f178ad0495469154751215755
2020-05-04 18:32:27 +00:00
Petr Pchelko
d6084c9dcd Fix Postgres user_newtalk table
In mysql the user_id and user_ip fields are not nullable,
but include a default 0 and '', however in Postgress the default
was not set, while user_id was set to not nullable. In the
code that uses this table, we set either user_id or user_ip
depending on whether the user is anon or registered. Thus both
fields should either be nullable, or contain a default.
Given that mysql has defaults set, I've opted for bringing
Postgress closer to what mysql does.

This was always broken and was discovered by adding new tests
for this functionality.

Bug: T239640
Change-Id: I75bf469a30225687a4b0cb550a4068cb07208c01
2020-05-04 11:17:03 -07:00
Reedy
956cd210d4 SpecialVersion: Call static functions statically
Change-Id: I2ee10966a5a5481144469ab955c3534f8a65bebc
2020-05-04 17:49:31 +00:00
Reedy
e25e5ec738 user: Close a bracket in a User.php doc comment
Change-Id: I3905a22201fc713f15aecaa50f20ec4fe23c8bad
2020-05-04 17:41:13 +00:00
Timo Tijhof
161fab3a9c language: Avoid LCStoreStaticArray::decode() recursion for arrays
In looking at early flame graphs and XHGui profiles, I noticed
code paths like `decode -> decode@2 -> decode@3`, for example for
magic words arrays and special page names.

Rather than storing these as `[a, [a, [a, ..], [a, ..], [a, ..], .. ] ]`
store them instead as `[v, [ .. ]]`. This makes for smaller files,
but more important it further reduces runtime overhead.

Bug: T218207
Change-Id: I492e5d32106ba7fd1b22075cf026fee2e3d1944e
2020-05-04 17:46:04 +01:00
Timo Tijhof
08791d1c1d language: Add test coverage for LCStoreStaticArray
Bug: T218207
Change-Id: I2e4c95139153f206b5317a4efe1e9b324ecce225
2020-05-04 17:34:21 +01:00
jenkins-bot
96866bf335 Merge "Hooks.txt - remove two Localisation hooks that have no callers" 2020-05-04 09:42:21 +00:00
Translation updater bot
a7658a8156 Localisation updates from https://translatewiki.net.
Change-Id: Iddda662d39d9bcca4475a09d715d884e271aa7ec
2020-05-04 09:12:55 +02:00
DannyS712
e5066d0bbf Hooks.txt - remove two Localisation hooks that have no callers
LocalisationChecksBlacklist and LocalisationIgnoredOptionalMessages
were removed, update hooks.txt

Change-Id: Ia2dc083a70bf5a7e0c121702cc09ace5bbb2b817
2020-05-04 07:06:34 +00:00
jenkins-bot
a2062269e1 Merge "Fix typo: 'the the' -> 'the'" 2020-05-03 20:25:41 +00:00
Ed Sanders
387f3c2a20 Fix typo: 'the the' -> 'the'
Change-Id: Ia57fb787b43c8e49da4f33a65c265cbc37ee1f77
2020-05-03 20:45:36 +01:00
jenkins-bot
7ac4ec51cc Merge "jquery.textSelection: Make jsdoc happier about the @ignore syntax" 2020-05-02 18:46:34 +00:00
jenkins-bot
8829ce7973 Merge "registration: Move SearchMappings to CORE_ATTRIBS from NOT_ATTRIBS" 2020-05-02 18:45:50 +00:00
jenkins-bot
b57a947ddd Merge "skins: Refactor and split up SkinTemplate::prepareQuickTemplate" 2020-05-02 18:45:27 +00:00
James D. Forrester
d2bf70592c jquery.textSelection: Make jsdoc happier about the @ignore syntax
Change-Id: I62b4d69be0610233eebbe88147081ee193d2676e
2020-05-02 18:32:21 +00:00
jdlrobson
f5d50c1503 skins: Refactor and split up SkinTemplate::prepareQuickTemplate
Separate HTML generation from the huge prepareQuickTemplate function.
This allows reuse inside skin classes.
All methods will be used shortly in Ibb2a69801d3b004a0a174308d3ac04d1.

Bug: T251212
Change-Id: I1dd897419effd4bda2ecb7fcbe58e082693cce9b
2020-05-02 18:28:12 +00:00
James D. Forrester
3310d6b904 Follow-up c030dacfb: Drop documentation mentions of $wgLocalInterwiki too
Change-Id: I7f09e14e84a4b612e17ee45bebdbca6b0814fa2e
2020-05-01 17:56:36 -07:00
James D. Forrester
385ab8870e Finish dropping wgContentHandlerUseDB; unused anywhere
Change-Id: I89ac9f43005975403225b43099561d3b6f147361
2020-05-01 17:11:22 -07:00
jenkins-bot
af990ab38b Merge "Drop wfIsHHVM, deprecated in 1.34" 2020-05-02 00:01:30 +00:00
jenkins-bot
094e93b629 Merge "Drop wfSetupSession, deprecated in 1.27" 2020-05-02 00:01:23 +00:00
DannyS712
bb108d1349 Update description of ParserFirstCallInitHook per hooks.txt
Change-Id: I900975ad73a64bf7b9d83df4ee728005d4fb5d70
2020-05-01 21:34:05 +00:00
jenkins-bot
e2d7f9b490 Merge "Hard deprecate $wgParser" 2020-05-01 21:31:26 +00:00
jenkins-bot
09c182abba Merge "Update OOUI to v0.38.1" 2020-05-01 21:31:16 +00:00
Volker E
8588345dbd Update OOUI to v0.38.1
Release notes:
 https://gerrit.wikimedia.org/g/oojs/ui/+/v0.38.1/History.md

Bug: T208184
Bug: T244444
Bug: T246044
Bug: T248630
Depends-On: Iaf8fddc006d24e02e43f2634004a72b5948a8d2d
Change-Id: If005f4f71d043d70feab1dae6217fcf1dd2ab602
2020-05-01 14:13:24 -07:00
jenkins-bot
be5a6763b0 Merge "Fix variable clash in ExtensionProcessor::extractHooks" 2020-05-01 20:48:11 +00:00
jenkins-bot
3cfaa194ed Merge "Introduce UserOptionsManager and DefaultOptionsManager" 2020-05-01 20:22:56 +00:00
DannyS712
3eeb2e235b Update release notes: WikiPage::updateRevisionOn with Revision is deprecated
Follow up to 8a88d51536

Change-Id: Idc3566d489ea4b0eeadf4920675ac115be6472ab
2020-05-01 19:52:02 +00:00
jenkins-bot
47b3238f4b Merge "WikiPage::updateRevisionOn - replace uses, hard deprecate Revision use" 2020-05-01 19:14:28 +00:00
jenkins-bot
7a59f4fb01 Merge "Article::setOldSubtitle - reduce use of Revision objects" 2020-05-01 19:09:44 +00:00
jenkins-bot
0a3c1db83b Merge "SpecialComparePages: Remove use of Revision objects" 2020-05-01 19:08:17 +00:00
jenkins-bot
cd961546e0 Merge "FeedUtils: Remove use of Revision objects" 2020-05-01 19:07:04 +00:00
DannyS712
02e1285c1a Hard deprecate ContribsPager::tryToCreateValidRevision
Bug: T250431
Change-Id: Icffe4c407f46e068fb27b0632d93fcaac2b6cfa9
2020-05-01 18:30:56 +00:00
DannyS712
618ae61ff5 Fix variable clash in ExtensionProcessor::extractHooks
Bug: T251631
Change-Id: If4866fcf262dd7cb268d5fa49b7558bbd9394c00
2020-05-01 18:25:29 +00:00
Reedy
aed1e72c96 registration: Move SearchMappings to CORE_ATTRIBS from NOT_ATTRIBS
Also remove SearchMappings from extension.v1.json

Bug: T250977
Change-Id: I010ac37a869ad12c4dcbe65805a19ee0662a34e3
Follows-Up: Ib9634128f07d428276e80a6f2f492b850eef17e8
2020-05-01 18:23:12 +00:00
jenkins-bot
8495a356ea Merge "MediaWikiIntegrationTestCase: Remove use of Revision objects" 2020-05-01 18:13:37 +00:00
jenkins-bot
eb8efad345 Merge "registration: Use array_merge() when merging CORE_ATTRIBS" 2020-05-01 17:59:56 +00:00
jenkins-bot
49ee413b38 Merge "Replace various uses of Revision objects" 2020-05-01 17:55:24 +00:00
jenkins-bot
b314cc9e5b Merge "namespaceDupes.php: Delete links if they still exist after UPDATE" 2020-05-01 17:44:39 +00:00
jenkins-bot
4cf6ea78bf Merge "auth: Use a 'use' statement rather than \ for class import" 2020-05-01 17:40:34 +00:00