Commit graph

75485 commits

Author SHA1 Message Date
Aaron Schulz
17c686a802 Make sure Swift store operations close the source file handle
Bug: T159607
Change-Id: I9a8907a20ba83f33cc5fc96bc15a1728770f656a
2017-03-14 20:08:46 +00:00
Timo Tijhof
475e0f2243 postEdit: Only call mw.cookie.get() if needed
Avoid synchronous document.cookie reads unconditionally during page load.
At least avoid the read where it isn't needed, such as non-view actions
and special pages.

Ideally this would happen in mw.requestIdleCallback, but unfurtunately
various extensions have a fragile dependency on reading mw.config
wgPostEdit at initialitation time which would likely fail if this is no
longer set synchronously. To be revisited...

Change-Id: Ib655bf6507333c1a9845a05eb436dca522efbab7
2017-03-14 19:19:27 +00:00
jenkins-bot
130641ff14 Merge "Add image.img_user, image.img_timestamp index" 2017-03-14 17:53:51 +00:00
jenkins-bot
24e421e2a2 Merge "Minor fixes for second sister search AB test" 2017-03-14 16:12:38 +00:00
jenkins-bot
03c0a12b8b Merge "Make the title of Special:UserRights more generic" 2017-03-14 15:27:56 +00:00
jenkins-bot
7722acc0dd Merge "Update CREDITS and .mailmap files" 2017-03-14 15:09:57 +00:00
Matthias Mullie
792555fcee Add image.img_user, image.img_timestamp index
This will allow searching on user id instead of just the name.
This is how ContribsPager, LogPager, ... all work already.

Bug: T160415
Change-Id: I4db7bd0f917a428f40eb315246f89d49c7ae5b6a
2017-03-14 15:37:27 +01:00
Huji Lee
dd416e529b Make the title of Special:UserRights more generic
Bug: T154575
Change-Id: If9899040c88cefeb64a09444ef0f6f42e91ebca6
2017-03-14 10:23:31 -04:00
Jan Drewniak
dfac17c488 Minor fixes for second sister search AB test
These are a few minor fixes to improved the
UX of the new sister search sidebar.

- Making the link color on sister search results blue
- Fixing the order of the multimedia search results widget
- added a more explicit 'more results' message instead
of the current '(more)' message.
- aligning the top of the sidebar with the top of the regular
search results.
- fixing a typo in the multimedia widget.

Bug: T158935
Change-Id: Iaae603cc217b7847bebfa61b050b7c86bdd19f14
2017-03-14 12:26:28 +01:00
Bartosz Dziewoński
8dd52aa4dc Title: Remove outdated comment in loadRestrictionsFromRows()
It has been refactored, and decodeExpiry() is now a method of Database.

Change-Id: I357b303317c877be944474db1331855adb1eb8fd
2017-03-14 02:37:40 +00:00
Translation updater bot
8f48467d26 Localisation updates from https://translatewiki.net.
Change-Id: I9eb8d7af838750dbf5141508402d0cae77b3274b
2017-03-13 22:11:02 +01:00
Eddie Greiner-Petter
719374544f Update CREDITS and .mailmap files
Update the CREDITS file using maintenance/updateCredits.php script that
uses `git log` to identify contributors. For each added user it was
checked by hand that no user with the same mail adress but an other
"Real Name" was already in the CREDITS file. This is the case with one
entry, prevent this using .mailmap. Also remove (WMDE) at end of real
name in one case using .mailmap file. Also change version name MW 1.28
to 1.29 while at it.

Change-Id: I4c3bb8c3e5f0c1317ea8711efc4f88e571b0c5c6
2017-03-13 18:29:15 +00:00
jenkins-bot
c584722cc2 Merge "Drop index oi_name_archive_name on table oldimage" 2017-03-13 05:19:57 +00:00
Translation updater bot
dc35b44b20 Localisation updates from https://translatewiki.net.
Change-Id: I5d800846ef2aa196635559493dbc1b8acb3802b5
2017-03-12 21:59:32 +01:00
jenkins-bot
bb14a90d2b Merge "Fix mistake in ObjectCache doc" 2017-03-12 07:15:28 +00:00
jenkins-bot
f517abffc3 Merge "Back-end of new RecentChanges page, refactoring" 2017-03-11 01:55:15 +00:00
Matthew Flaschen
aa063f4c5a Back-end of new RecentChanges page, refactoring
Generate old RC, Related changes (it was already displayed and working
on 'Related changes' before this change), and Watchlist/etc. and data
for new UI from back-end.

This moves everything used for defining the old (unstructured) and new
(structured) filters into unified objects, ChangesListFilter and
ChangesListFilterGroup (and sub-classes).

This includes the query logic (see below) and logic for adding
CSS attribution classes.

This is a breaking change (for subclasses of ChangesListSpecialpage)
due to the signature (and name) change of buildMainQueryConds and
doMainQuery.  An alternative that I don't think is a breaking change
would be to put the filter->DB logic in runMainQueryHook, but then it's
doing more than just running a hook.

This is because it used to only build $conds here, but it's clear from
filterOnUserExperienceLevel filters need more than this.  I added all
the DB parameters from the hook, but this could be debated.

I have an checked and fixed the WMF-deployed extensions affected by
this.

Other than that, there should be full back-compat (including legacy
filters not using the new system).

* add hidepatrolled/hideunpatrolled to new UI.

* Move userExpLevel from RC to ChangesListSpecialPage.  Although for
now the structured UI only displays on RC anyway, when it displays on
watchlist, it seems we'll want userExpLevel there.

  Change this to make 'all' exclude unregistered users.

* Don't have front-end convert none-selected to 'all' on string_options.

* Needs the hideanons/hideliu special redirect to be done before this
is merged (T151873)

Bug: T152754
Bug: T152797
Change-Id: Iec2d82f6a830403d1c948a280efa58992e0cdee7
2017-03-11 01:42:01 +00:00
Translation updater bot
e715b99a8c Localisation updates from https://translatewiki.net.
Change-Id: I6e0a0fa411473a40ebae5035fd559f37a36fff52
2017-03-10 21:53:16 +01:00
Amir Sarabadani
bcf61a7080 Fix mistake in ObjectCache doc
Change-Id: Iafe3c460ca462aa160cfea6769fd78f8b023548c
2017-03-10 13:12:43 +03:30
Translation updater bot
97906621aa Localisation updates from https://translatewiki.net.
Change-Id: I7e25a8afe355bce65359c162b9384d243c67cebd
2017-03-09 22:47:22 +01:00
jenkins-bot
5b41839230 Merge "composer.json: Make ext-curl a suggested package for MediaWiki core" 2017-03-09 21:40:13 +00:00
jenkins-bot
e7e52af3e1 Merge "Allow fields to define their own merge strategy via callback." 2017-03-09 21:32:46 +00:00
Derk-Jan Hartman
da081e5733 composer.json: Make ext-curl a suggested package for MediaWiki core
curl is the preferred HTTP implementation as far as I'm a aware and the
only implementation used by MultiHttpClient, a requirement for
something like VisualEditor

Change-Id: I40a015339d4a3f92cfadcd92dfd70425639d0412
2017-03-09 21:31:00 +00:00
Bartosz Dziewoński
fc7a1666f1 mw.special.apisandbox: Prevent text fields from collapsing into nothingness
Change-Id: Ib0d5cf6a227e1e03442e54db6fdacad272c53ed9
2017-03-09 17:50:16 +00:00
jenkins-bot
e20a4a8c18 Merge "Remove unused old messages for user login and signup" 2017-03-09 09:40:03 +00:00
jenkins-bot
8df766655b Merge "Remove unused old logging messages for revision deletion" 2017-03-09 09:36:02 +00:00
jenkins-bot
eaa0bbbc62 Merge "Do not use real message names in 'All_system_messages' preprocessor test" 2017-03-09 09:34:29 +00:00
Aaron Schulz
004ffaa91a Make masterPosWait() error clearer
Change-Id: I86706b2c4167fba897c56235072675b66ed06634
2017-03-08 21:22:36 -08:00
jenkins-bot
8151aebc68 Merge "Improve sorting on SpecialWanted*-Pages" 2017-03-09 00:25:46 +00:00
jenkins-bot
980c688c2b Merge "Add RemexHtml to the list of available Tidy drivers" 2017-03-08 23:33:17 +00:00
Tim Starling
50fe941457 Add RemexHtml to the list of available Tidy drivers
Change-Id: I5a87a6ed24ca3ef7c5fdb21e74f9eb410bf74b4c
2017-03-09 10:19:23 +11:00
Translation updater bot
05ef85378e Localisation updates from https://translatewiki.net.
Change-Id: I916d8727a605173281bfebc8c2ef9592d4f87282
2017-03-08 21:56:28 +01:00
jenkins-bot
bdfa96eb72 Merge "Break up $wgDummyLanguageCodes" 2017-03-08 20:46:47 +00:00
This, that and the other
48ab87d0a3 Break up $wgDummyLanguageCodes
$wgDummyLanguageCodes is a set and mapping of different language codes:

* Renamed language codes: ['als' => 'gsw', 'bat-smg' => 'sgs',
                           'be-xold' => 'be-tarask', 'fiu-vro' => 'vro',
                           'roa-rup' => 'rup', 'zh-classical' => 'lzh',
                           'zh-min-nan' => 'nan', 'zh-yue' => 'yue'].
  The old language codes are deprecated because they are invalid but
  should be supported for compatibility reasons for a while.
* Language codes of macro languages, which get mapped to the main
  language: ['bh' => 'bho', 'no' => 'nb'].
* Language variants which get mapped to main language:
  ['simple' => 'en'].
* Internal language codes of the private-use-area which get mapped to
  itself: ['qqq' => 'qqq', 'qqx' => 'qqx']

This is a very strange conglomeration which should get differentiated,
and were split up in the following ways:

* Renamed language codes are available from
  LanguageCode::getDeprecatedCodeMapping().
* Language codes of macro languages and the variants that are mapped to
  the main language are available as $wgExtraLanguageCodes and are set
  in DefaultSettings.php.
* Internal language codes are set in $wgDummyLanguageCodes in Setup.php.

Change-Id: If73c74ee87d8235381449cab7dcd9f46b0f23590
2017-03-08 12:11:30 -08:00
jenkins-bot
a4c1f2ee49 Merge "Add some translations for Western Punjabi (pnb)" 2017-03-08 19:21:10 +00:00
jenkins-bot
1b74661f36 Merge "RCFilters UI: Anchor the highlight popup" 2017-03-08 17:26:05 +00:00
Eddie Greiner-Petter
5b15728478 Improve sorting on SpecialWanted*-Pages
Change the SpecialWanted*-Pages so that they do sort
1. by the number of links to a site (as is now) and
2. alphabetically for entries which have the same number of links (new)

Bug: T4335
Change-Id: If54cd52b69007ee81af4733a14be3fd893c4abfe
2017-03-08 17:13:55 +00:00
Bartosz Dziewoński
9386431f59 Remove unused old messages for user login and signup
According to their documentation, these messages are no longer used
since MediaWiki 1.22. They only waste translators' time.

The messages appear to not be used by any skins or extensions
in Wikimedia version control.

Change-Id: I4b8e91558654b5f9006ed44bad6971237f057d07
2017-03-08 17:03:50 +01:00
Bartosz Dziewoński
e95c9b3276 Remove unused old logging messages for revision deletion
Per T20578, change a9c243b7b5 (r97044)
has replaced these messages with a new set that doesn't rely on
"lego" concatenation. But the old messages were never removed.
Some were blacklisted on Translatewiki, but others continue to
waste translators' time.

The messages appear to not be used by any skins or extensions
in Wikimedia version control.

+--------------------------------+--------------------------------+
| Deleted old messages           | Replacements in current system |
+--------------------------------+--------------------------------+
| revdelete-logentry             | logentry-delete-revision       |
| revdelete-log-message          |                                |
+--------------------------------+--------------------------------+
| logdelete-logentry             | logentry-delete-event          |
| logdelete-log-message          |                                |
+--------------------------------+--------------------------------+
| revdelete-hid                  |  revdelete-content-hid         |
| revdelete-unhid                |  revdelete-content-unhid       |
|                                |  revdelete-summary-hid         |
| revdelete-content              |  revdelete-summary-unhid       |
| revdelete-summary              |  revdelete-uname-hid           |
| revdelete-uname                |  revdelete-uname-unhid         |
+--------------------------------+--------------------------------+

Change-Id: I27c616ca1aaca3058ad48753f5e4bfc64a71636e
2017-03-08 17:03:15 +01:00
Bartosz Dziewoński
bebe29662b Do not use real message names in 'All_system_messages' preprocessor test
This file seems to be a stress-test for the MediaWiki preprocessor.
It doesn't really matter whether the messages references here exist.
As messages are occasionally renamed or deleted, and since this file
was generated in 2011, people keep getting confused when they grep
for a message name and run into this list (and sometimes needlessly
spend their time updating this file, as seen in its Git history).

This commit replaces all of the message names with their SHA1 hash
truncated to 8 hex characters.

Regexps used for matching:
(?<=\?title=MediaWiki\:)([^&{}<>|\[\]]+)
(?<=int:)([^&{}<>|\[\]]+)
(?<=\[\[MediaWiki_talk:)([^&{}<>|\[\]]+)
(?<=action=edit )([^&{}<>|\[\]]+)

Change-Id: I52a71c0cc0e6fa21a61420d52df755066c6e9a08
2017-03-08 17:02:53 +01:00
jenkins-bot
82524dc4da Merge "RemexHtml tidy driver with p-wrapping" 2017-03-08 15:24:36 +00:00
Bartosz Dziewoński
0bc81d74c0 Add some translations for Western Punjabi (pnb)
Bug: T157871
Change-Id: I567662c1861293ca9c7e841e2b839b721bd60103
2017-03-08 13:33:08 +01:00
Tim Starling
9341a00ed1 RemexHtml tidy driver with p-wrapping
Pull in the RemexHtml library, which is an HTML 5 library I recently
created.

RemexCompatMunger mutates the event stream, inserting <mw:p-wrap>
elements where necessary, and occasionally taking even more invasive
action such as reparenting and removing nodes maintained in Serializer's
tree.

RemexCompatFormatter produces a MediaWiki-style serialization which is
relatively compatible with existing parser tests. It also does final
empty element handling, including translating <mw:p-wrap> to <p>

Tests are imported from both Html5Depurate and Subbu's pwrap.js.

Depends-On: I864f31d9afdffdde49bfd39f07a0fb7f4df5c5d9
Change-Id: I900155b7dd199b0ae2a3b9cdb6db5136fc4f35a8
2017-03-08 16:54:13 +11:00
jenkins-bot
22806b0a45 Merge "Handle missing namespace prefix in XML dumps more gracefully" 2017-03-08 05:07:57 +00:00
Moriel Schottlender
16caf0f626 RCFilters UI: Anchor the highlight popup
Due to a regression in popups positioning in OOUI, the popup
renders wrongly when it is unanchored.

Fixing this to an anchored popup while the OOUI bug is being fixed.

Bug: T159906
Change-Id: I38ca560929f7f9488ff48b148b089f0613d67d97
2017-03-07 18:23:03 -08:00
jenkins-bot
cbc23bd4da Merge "RCFilters UI: Prevent the popup from disappearing when input is out of view" 2017-03-08 01:37:08 +00:00
jenkins-bot
02e717783e Merge "RC filters: update the state of the app on popstate." 2017-03-08 01:32:35 +00:00
jenkins-bot
47d2b3d82a Merge "RCFilters UI: Add 'highlight' icon to highlight button" 2017-03-08 01:29:22 +00:00
jenkins-bot
f32ee9acf4 Merge "RCFilters UI: Display popups above CapsuleItemWidgets" 2017-03-08 01:28:55 +00:00
Moriel Schottlender
a07385a2dc RCFilters UI: Add 'highlight' icon to highlight button
Bug: T149467
Change-Id: Iba11de7ba47e41046631dbf16f464f8bd3820811
Depends-On: I0b5adaaec52f9cc01c3dfb6262adaf2da368476e
2017-03-08 01:17:40 +00:00