Commit graph

153 commits

Author SHA1 Message Date
James D. Forrester
da0b474198 Update OOjs UI to v0.16.3
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.16.3/History.md

Change-Id: Idb6d1250bea3041bf6c4d198f21544b1f5bc4893
2016-03-16 19:22:40 +00:00
Bryan Davis
16b70e6aa8 composer-merge-plugin: Bump to latest upstream version
v1.3.1 fixes issues with "self.version" constraints in included composer
manifests.

Depends-On: Ic34ea8b4456621e62810ad16692cc2ca7ac5f966
Change-Id: I2fa884a8ff4af42e1a62fa8e5d0799dcfc0f4547
2016-03-10 09:53:59 -07:00
James D. Forrester
2f986aa0d8 Update OOjs UI to v0.16.2
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.16.2/History.md

Change-Id: I5c7402606bbc5ea1c20548b7eae657338b4ae151
2016-03-08 13:49:58 -08:00
James D. Forrester
906545d303 Update OOjs UI to v0.16.1
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.16.1/History.md

Change-Id: I4bd51d4c105a09d71a911e04538b51f58c3ea721
2016-03-01 14:00:31 -08:00
Timo Tijhof
dbe3499113 Upgrade from PHPunit 3.7.x to PHPUnit 4.8.x
Major changes:

* (4.0.0) Limited support for stubbing and mocking static methods was removed.
          (introduced in PHPUnit 3.5)
* (4.0.0) The addRiskyTest() was added to the PHPUnit_Framework_TestListener interface.
          Classes that implement this interface MUST implement this method.
* (4.5.0) The "--strict" catch-all option was deprecated. Use specific options instead.

Notable changes:

* (4.6.0) Tests not annotated with @small, @medium, or @large are no longer default
          to matching in group @small.
* (4.6.0) Result printer now checks hasColorSupport().
* (4.8.0) The name of the default group was changed from "__nogroup__" to "default".
* (4.8.0) This is the last release to support PHP 5.3, PHP 5.4, and PHP 5.5.
          PHPUnit 5 will require PHP 5.6 or higher.

PHPUnit 3.7.17 was released March 2013.
PHPUnit 4.8.0 was released August 2015.
PHPUnit 4.8.23 was released January 2016.

Details:

* https://github.com/sebastianbergmann/phpunit/wiki/ChangeLog-for-PHPUnit-3.7
* https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.0.0
* https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.1.0
* https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.2.0
* https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.3.0
* https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.4.0
* https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.5.0
* https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.6.0
* https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.7.0
* https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.8.0

Bug: T99982
Change-Id: I70ad81513812aa76a84fa55be14135aac94d55e8
2016-02-23 00:57:48 +00:00
James D. Forrester
1cdee33835 Update OOjs UI to v0.16.0
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.16.0/History.md

Change-Id: I9c170fce1c65ae65b0b33342572fe4d3bb613774
2016-02-22 14:36:26 -08:00
Kunal Mehta
b9668d6d80 build: Update mediawiki-codesniffer to 0.6.0, add "composer fix"
* Fix errors spotted by new release
* Introduce "composer fix", which uses phpcbf to automatically fix some
errors spotted by phpcs.
* Drop $PHPCS_ARGS variable that didn't work on Windows, and add -s flag
* Remove rules from phpcs.xml that are now in MW-CS ruleset.

Change-Id: I13e2155695918c918b67497ac65b85a03897095e
2016-02-17 02:54:42 -08:00
James D. Forrester
c420284038 Update OOjs UI to v0.15.4
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.15.4/History.md

Change-Id: I29c8db4c654ecf575113199ace1006d70ce29012
2016-02-16 18:10:44 -08:00
jenkins-bot
30da8abbe2 Merge "Bump required PHP version to 5.5.9" 2016-02-10 07:03:33 +00:00
Chad Horohoe
c3c37132a2 Bump required PHP version to 5.5.9
Result of RfC and extensive discussion. RfC approved
by Tim/ArchCom on 2016-01-27.

Bug: T75901
Depends-On: I00e2e7adf5202384fc92371b8d0551782c3c17cb
Change-Id: I68c5b5d60952418ff8300c163edfe2275571f41f
2016-02-10 06:46:53 +00:00
James D. Forrester
2ea954babd Update OOjs UI to v0.15.3
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.15.3/History.md

Change-Id: Ic93f6620999bf10fcfdf4ef2d2a42cc9c7dfd98a
2016-02-09 13:34:30 -08:00
Paladox
2c085ac5a3 Update oyejorge/less.php to 1.7.0.10
Depends-On: Ifeec0870df1e0504be795dfb32be5ecd795325d5

Change-Id: Ibf17232bb51563360ff47b42d4c0f9cb0d5f8b18
2016-02-06 18:14:42 +00:00
Brad Jorsch
2257fe4228 Revert "Remove SessionManager, temporarily"
This reverts commit 823db5d63dd5200d04c63da50ba6bf16f928e70b.

Change-Id: Ibb3e023e4eb6715295586dea87d0725c344a8271
2016-02-03 21:44:59 +00:00
James D. Forrester
e310a0b017 Update OOjs UI to v0.15.2
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.15.2/History.md

Change-Id: I8124a726660443ce514c48182871d46e6b086a10
2016-02-02 14:10:54 -08:00
Brad Jorsch
5083e810eb Remove SessionManager, temporarily
The plan here is to take it out of 1.27.0-wmf.12 and put it back in
1.27.0-wmf.13.

Since BotPasswords depends on SessionManager, that's getting temporarily
removed too.

This reverts the following commits:
* 6acd424e0d SessionManager: Notify AuthPlugin before calling hooks
* 4d1ad32d8a Close a loophole in CookieSessionProvider
* fcdd643a46 SessionManager: Don't save non-persisted sessions to backend storage
* 058aec4c76 MessageCache: Don't get a ParserOptions for $wgUser before the end of Setup.php
* b5c0c03bb7 SessionManager: Save user name to metadata even if the user doesn't exist locally
* 13f2f09a19 SECURITY: Fix User::setToken() call on User::newSystemUser
* 305bc75b27 SessionManager: Don't generate user tokens when checking the tokens
* 7c4bd85d21 RequestContext::exportSession() should only export persisted session IDs
* 296ccfd4a9 SessionManager: Save 'persisted' flag in session metadata
* 94ba53f677 Move CSRF token handling into MediaWiki\Session\Session
* 46a565d6b0 Avoid false "added in both Session and $_SESSION" when value is null
* c00d0b5d94 Log backtrace for "User::loadFromSession called before the end of Setup.php"
* 4eeff5b559 Use $wgSecureCookie to decide whether to actually mark secure cookies as 'secure'
* 7491b52f70 Call session_cache_limiter() before starting a session
* 2c34aeea72 SessionManager: Abstract forceHTTPS cookie setting
* 9aa53627a5 Ignore auth cookies with value 'deleted'
* 43f904b51a SessionManager: Kill getPersistedSessionId()
* 50c5256352 SessionManager: Add SessionBackend::setProviderMetadata()
* f640d40315 SessionManager: Notify AuthPlugin when auto-creating accounts
* 70b05d1ac1 Add checks of $wgEnableBotPasswords in more places
* bfed32eb78 Do not raise a PHP warning when session write fails
* 722a7331ad Only check LoggedOut timestamp on the user loaded from session
* 4f5057b84b SessionManager: Change behavior of getSessionById()
* 66e82e614e Fix typo in [[MediaWiki:Botpasswords-editexisting/en]]
* f9fd9516d9 Add "bot passwords"
* d7716f1df0 Add missing argument for wfDebugLog
* a73c5b7395 Add SessionManager

Change-Id: I2389a8133e25ab929e9f27f41fa9a05df8147a50
2016-02-01 22:06:49 +00:00
James D. Forrester
b72a8fdaa6 Update OOjs UI to v0.15.1
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.15.1/History.md

Change-Id: Ic5069503ebea193e117a9f7f3d520a6f04e0b1cd
2016-01-26 13:16:55 -08:00
James D. Forrester
04cf22ce46 Update OOjs UI to v0.15.0
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.15.0/History.md

Change-Id: I980336e249b34de98dd707c385714c8e5d1f2505
2016-01-12 15:08:50 -08:00
Brad Jorsch
a73c5b7395 Add SessionManager
SessionManager is a general-purpose session management framework, rather
than the cookie-based sessions that PHP wants to provide us.

While fallback is provided for using $_SESSION and other PHP session
management functions, they should be avoided in favor of using
SessionManager directly.

For proof-of-concept extensions, see OAuth change Ib40b221 and
CentralAuth change I27ccabdb.

Bug: T111296
Change-Id: Ic1ffea74f3ccc8f93c8a23b795ecab6f06abca72
2016-01-12 21:57:01 +00:00
jenkins-bot
1e296da3d7 Merge "Update jakub-onderka/php-parallel-lint to 0.9.2" 2016-01-04 03:33:18 +00:00
Paladox
acd536c408 Update jakub-onderka/php-parallel-lint to 0.9.2
https://github.com/JakubOnderka/PHP-Parallel-Lint/releases

Change-Id: I70bb67bb23e1607d1b005971d0cee3851f573d7a
2016-01-03 21:04:07 +00:00
Reedy
03b63669be Update zordius/lightncandy to v0.23
Depends-On: If8cf6905c5b590ae3bb0297153e966d24ea3bcb8

Change-Id: I1aa2cb76680f4b0c60f3196cc92f0bd18cbcfd33
2016-01-02 19:31:49 +00:00
jenkins-bot
d6668812dc Merge "build: Update mediawiki/mediawiki-codesniffer to 0.5.1" 2016-01-02 10:21:08 +00:00
Paladox
2b61957cfe build: Update mediawiki/mediawiki-codesniffer to 0.5.1
Two rules are ignored for now to allow us to upgrade:
* MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures
* Generic.ControlStructures.InlineControlStructure.NotAllowed

Also ignore the .git folder.

Change-Id: I1b149c72b27be54e22e369999ad0c41c2d1fc2b4
2016-01-02 09:50:09 +00:00
Reedy
c91d277e1f Update nmred/kafka-php to v0.1.5
Change-Id: Iab9a32807c8f9e6a4c72566d3742bf0dc99a7d3e
Depends-On: Ibb9e988b9e81445641c96075a064090d5ed146ca
2016-01-01 19:05:20 +00:00
Ori Livneh
a41102bd56 Add a maintenance script for finding deprecated interfaces
Add a maintenance script, findDeprecated.php, which iterates through
$IP/include/**.php, looking for functions and methods which have been marked as
deprecated (via a '@deprecated' tag in the doc-block), and then prints a
detailed report indicating the version, file, line and version of each
deprecated interface.

Change-Id: I9518a52b8c51ee972552a94f5367c1faa7e04a3a
2015-12-19 22:05:21 +00:00
Reedy
7f1d134f57 Update cssjanus/cssjanus to v1.1.2
Change-Id: I29ab5aa1f3015f817576d84aad836d22aed012bb
Depends-On: Iaf72a626c75b34a6c9a1b3381a80e74040e72355
2015-12-19 00:58:19 +00:00
James D. Forrester
8e21c9cb58 Update OOjs UI to v0.14.1
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.14.0/History.md

Change-Id: Id0642023abdae574e32620fc0843631d86bae006
2015-12-08 13:46:11 -08:00
Reedy
1ab1e4bfff Update liuggio/statsd-php-client to 1.0.18
Depends-On: I81a7d7da30374072c78c51d1a7fe8229cd70d42c
Change-Id: Ibf06b3b97eb6002c1ad2666f38764b44fc716ef3
2015-11-26 00:46:39 +00:00
James D. Forrester
7123bbaa0c Update OOjs UI to v0.14.0
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.14.0/History.md

Change-Id: Id642023abdae574e32620fc80043631d86bae006
2015-11-24 17:22:14 -08:00
Reedy
05d35e8aee Upgraded composer/semver to 1.2.0
Depends-On: I66022e878bba54e51b78da84e7a64aa502baeb02
Change-Id: I400071986b0fd78be2c4bca34dbecef04120b78e
2015-11-22 22:23:01 -08:00
James D. Forrester
410dce2ffc Update OOjs UI to v0.13.3
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.13.3/History.md

Change-Id: If131ec0d7663d6493f23b00c9451544767b7807a
2015-11-17 17:25:01 -08:00
James D. Forrester
e37fdd4ada Update OOjs UI to v0.13.2
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.13.2/History.md

Change-Id: I0626d91d4b93e1d680579f1e6a02555c6050127f
2015-11-10 15:44:04 -08:00
Bryan Davis
3f598b50ea Bump composer-merge-plugin to v1.3.0
Update composer-merge-plugin and enable the new feature of omitting
"require-dev" sections from merged files. This will help prevent
Composer package conflicts when used with extensions that have dev
requirements which are not reconcilable with those of MediaWiki itself.

Requires: I7453f68e671b9d519ec3f7dfaa22de6ec8f252e9
Change-Id: I768cf21c6601496e34f2b63199df04cbc0090145
2015-11-06 15:22:27 -07:00
James D. Forrester
ce9c1264b4 Update OOjs UI to v0.13.1
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.13.1/History.md

Change-Id: Ic8fbb6ee4326c73243ea655708b9cfd09bc7e52a
2015-11-03 13:44:50 -08:00
Kunal Mehta
525dd55065 Add and use wikimedia/base-convert 1.0.1
Change-Id: I3ae56e761ef6fb2b2d506bc2990b97f57183ccf1
2015-10-30 00:53:46 +00:00
Ori Livneh
13a35dac58 wikimedia/running-stat 1.0.0 → 1.1.0
* 9d7170d3ee: Rename RunningStat::push() to RunningStat::addObservation()
* 09b6e53be9: Add PSquare class for online percentile estimation

mediawiki/vendor change: I48dd51c9068

Change-Id: Ie6b19833c282e0f493c4d306807366a6671455a8
2015-10-28 15:34:57 -07:00
Bryan Davis
1d41a1a734 Bump development Monolog version
Related mediawiki/vendor change: I6d6db4c

Bug: T116550
Change-Id: I71b2051c4c6193a435183ed00da52e9dc6c0673c
2015-10-27 16:54:04 -06:00
Ori Livneh
e9d64a69bc Replace local RunningStat with wikimedia/running-stat library
* mediawiki/vendor change: I66b419c8168df.
* Add back-compat shim in includes/compat/RunningStatCompat.php.

Change-Id: Ibad4dc0ce5aa8697791865ed8ea61a25bae7b3e0
2015-10-27 19:16:58 +00:00
James D. Forrester
5d9459c700 Update OOjs UI to v0.13.0
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.13.0/History.md

Change-Id: Ie4f66b15f4f5ec9932d5fd72e12b4453724e3742
2015-10-27 18:58:23 +01:00
James D. Forrester
653e4f50a5 Update OOjs UI to v0.12.12
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.12.12/History.md

Change-Id: If241c883b8c079ea9f1d73c8eb6f51c99dd615ac
2015-10-13 13:40:33 -07:00
James D. Forrester
1c8f2c11e3 Update OOjs UI to v0.12.11
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.12.11/History.md

Change-Id: I2884af2f6de88754b06f3e644d302e489f5abec5
2015-10-07 13:59:52 -07:00
Kunal Mehta
11b77f3d52 Upgrade composer/semver to 1.0.0
And update the class names that changed.

Bug: T113431
Change-Id: Icf73630e60fe7d586d7ed249abc1d3014b67cbe6
2015-10-01 21:21:04 +00:00
Timo Tijhof
047b60b96d resourceloader: Store relative instead of absolute paths in module_deps
Make paths stored in the module_deps table relative to $IP. This ensures that when
the MediaWiki install path changes and/or if the location of the extension or skins
directory changes, that ResourceLoader's internal model is still accurate.

Previously when these paths change, ResourceLoader would exhibit various bugs.

1. Unable to detect changes in the module (if the directory no longer exists).
2. Point #1 is usually preceeded by one last cache invalidation as the content hash
   of the file path changes (from a valid hash to an empty string).
3. Unnecessary cache invalidation (if both old and new directories exist). This
   happens when a file is both an entry point (in the 'scripts' or 'styles' array)
   and also a file dependency. At first they are de-duplicated by array_unique.
   But after the disk path changes, the next check will result in the old path
   being fetched from module_deps, and the new path from the live configuration.
   This causes two changes that result in needless cache invalidation:
   - The hash list contains one more item (T111481).
   - The hash list contains both the old and new version of a file.
     (or even alternate versions, e.g. when a change is backported to the old
     wmf branch; it also affects wikis on the new branch due to the stale
     file path still in the database).

It seems unusual to move a MediaWiki install, and usually we recommend third
parties to run update.php if site administrators do move their wiki. However
Wikimedia's deployment system implicitly moves the MediaWiki install continously
from e.g. "/srv/mediawiki/php-1.26wmf5" to "/srv/mediawiki/php-1.26wmf6".

This caused virtually all ResourceLoader caching layers to get invalidated every
week when another wmf-branch is deployed, thus breaking these file paths, which
changes the version hash, which then invalidates the cache.

Bug: T111481
Change-Id: I173a9820b3067c4a6598a4c8d77e239797d2659c
2015-09-30 00:25:27 +00:00
Bryan Davis
2adfff40da Bump oyejorge/less.php to 1.7.0.9
Fixes leading whitespace in oyejorge/less.php/lib/Less/Version.php

Change-Id: Ifbc353b583fc182c0dc297ccacc8102ed9279c59
2015-09-29 16:39:41 -06:00
James D. Forrester
ee8845e329 Update OOjs UI to v0.12.10
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.12.10/History.md

Change-Id: I048794c2c3e66e11762598ed97db31afc00cba0c
2015-09-29 14:23:51 -07:00
Reedy
19bb1bd3b6 Revert "composer.json: Bump Monolog to 1.17.1"
Syntax error (older version of PHP?)

This reverts commit 4d23803d92.

Change-Id: I5167f97909d4d7ad4264a247f959ae984f932a7e
2015-09-27 16:53:22 +00:00
Bryan Davis
4d23803d92 composer.json: Bump Monolog to 1.17.1
Requires: Idc5010bfa54a0150e983e2f343feb08404a79aa5
Change-Id: I0a54bdf835092d0369d3041d85e04a54abea7d4f
2015-09-27 16:31:38 +00:00
Bryan Davis
d6da028858 composer.json: alphabetize sections
Alphabetize the entries in require, require-dev, suggest, scrips and
config sections of the composer.json configuration file.

Change-Id: Ibcfdc428045581674620e2a552b9b49ab1b24f3d
2015-09-27 14:42:46 +00:00
Vivek Ghaisas
2ff11bbe22 Update mediawiki-codesniffer dependency
composer.json: mediawiki/mediawiki-codesniffer 0.3.0 →  0.4.0

Change-Id: I8cd0e6060496de54db325c1cf4c494b51e3a51d2
2015-09-26 22:03:17 +00:00
jenkins-bot
827e10dc40 Merge "Use wikimedia/cldr-plural-rule-parser" 2015-09-24 23:15:56 +00:00