Commit graph

2017 commits

Author SHA1 Message Date
Kunal Mehta 3e94bfac8b Start tests for the built-in notification types
* Only covers EchoHooks::onUserRights right now, more
  patches to follow

Change-Id: Ie93eff0a9a75a4a9816c81d57b7530149a14bb7a
2015-01-30 18:09:04 +00:00
jenkins-bot df2d335261 Merge "Rework broken echo test to make less assumptions" 2015-01-30 00:50:27 +00:00
Erik Bernhardson bf5ff9b8ea Rework broken echo test to make less assumptions
Change-Id: Id73794e3555ef18e5dde0c40b8f9ab8eba53eb96
2015-01-29 16:45:05 -08:00
Translation updater bot 4d05657b6d Localisation updates from https://translatewiki.net.
Change-Id: Ia667160b7a5c58e434de1e6afb906abc5e66cfd1
2015-01-29 23:00:11 +01:00
Ricordisamoa 01773a6d97 Add 'license-name' matching SPDX conventions
References:
http://spdx.org/licenses/
https://www.mediawiki.org/wiki/Manual:$wgExtensionCredits#license-name

Change-Id: I3debc1db6b821efeca07be05e1795f223d2fa621
2015-01-29 14:58:20 +01:00
jenkins-bot 6c8e3a0c3a Merge "Clarify alert/messages meaning" 2015-01-27 21:57:38 +00:00
Translation updater bot 75f1435462 Localisation updates from https://translatewiki.net.
Change-Id: I647c0bf62b6579f9f3b2e4c00fc3c96f76296378
2015-01-27 22:14:51 +01:00
Translation updater bot d1e36cd038 Localisation updates from https://translatewiki.net.
Change-Id: I5a0828d8bf22741bb90ef5179425126f18310206
2015-01-26 22:38:37 +01:00
Translation updater bot 85e844c51d Localisation updates from https://translatewiki.net.
Change-Id: I4dd7fe07a58631b45e316b910fac72bd04f87f6e
2015-01-25 21:46:02 +01:00
Translation updater bot 0e6be09906 Localisation updates from https://translatewiki.net.
Change-Id: I5b9f8d58e07e4fe3e69b9ccaba15f278cd72e83b
2015-01-23 22:25:57 +01:00
Translation updater bot c50c13eebf Localisation updates from https://translatewiki.net.
Change-Id: I5d813bd9984dea80d8e9345bd7b17c4cf25731ca
2015-01-21 22:19:46 +01:00
Translation updater bot 89b61ad4e7 Localisation updates from https://translatewiki.net.
Change-Id: I3261231613dc1ada471b1319c35e3233f9d434c8
2015-01-20 21:57:35 +01:00
Translation updater bot 851265edc2 Localisation updates from https://translatewiki.net.
Change-Id: I5948090ba055b4b2fec8e9029d6ae7ce2192c67f
2015-01-19 22:01:39 +01:00
Translation updater bot e6d3702434 Localisation updates from https://translatewiki.net.
Change-Id: I7c52991a193fc7e6d0451c61ff430f468e92a9e4
2015-01-18 22:17:17 +01:00
Translation updater bot cd1810d0bb Localisation updates from https://translatewiki.net.
Change-Id: I70994f4da0b20060281cf02e73295585edbc6445
2015-01-16 21:17:46 +01:00
Translation updater bot 1a1da10e69 Localisation updates from https://translatewiki.net.
Change-Id: I1f3eac902fcb1bede107951a26bdd1f9a3ff4f13
2015-01-15 22:47:11 +01:00
Translation updater bot 3d21abe511 Localisation updates from https://translatewiki.net.
Change-Id: If96219bacceb0f91cadb11fb9f89649877d7fd96
2015-01-12 22:37:09 +01:00
Translation updater bot 4db0c7ca94 Localisation updates from https://translatewiki.net.
Change-Id: Ic7b45d2662a107f8d91b4763cb5fa83f2b5a8346
2015-01-11 22:15:12 +01:00
Translation updater bot d2ed2faf13 Localisation updates from https://translatewiki.net.
Change-Id: I6a07d4d7edabddd52759dd2c06fde01b5d3fcc7f
2015-01-10 22:01:31 +01:00
Translation updater bot 8120175707 Localisation updates from https://translatewiki.net.
Change-Id: Ibc380b7f5b1a8221be330309d2eda43e050fff59
2015-01-09 22:07:42 +01:00
Amir E. Aharoni 91847e96c6 Fix the overlay chevron position for RTL
Bug: T78330
Change-Id: Ie438042bc24b8ace429eec68c8b75c09da56aa95
2015-01-09 17:50:51 +00:00
Amir E. Aharoni 94cb6103c2 Cleanup whitespace in modules/overlay/ext.echo.overlay.less
According to
https://www.mediawiki.org/wiki/Manual:Coding_conventions/CSS#LESS

Change-Id: I361909fcea67fa5e0e3cbb69711ede91417c4e2e
2015-01-09 19:50:08 +02:00
Antoine Musso 7f5b0c1793 Fix EchoTitleLocalCacheTest::testGet corner case
EchoTitleLocalCache title cache resolution ends up querying the database
to resolve title id to Title object.

In some corner case, we might only have one page in the database (UTPage
as provided by MediaWikiTestCase), thus the id 2 would not resolve to a
Title breaking the test.

Use insertPage() to ensure we have a second page.

Bug: T78592
Change-Id: Ia9dbb256f566e489e1c81d89b6a6077831e07fc3
2015-01-09 13:54:08 +01:00
Translation updater bot 171c863a48 Localisation updates from https://translatewiki.net.
Change-Id: I76346aacc6cb42cae123bc0afe511cb5d6707476
2015-01-08 22:43:34 +01:00
Ori Livneh ef502ed0ef Test if 'EventLogging' class exists, rather than deprecated function
efLogServerSideEvent() is deprecated and will be removed soon.

Change-Id: I79969b443e59a36a6d92ad33b3df98fb21f7f3b6
2015-01-07 10:27:52 -08:00
Timo Tijhof 4fdae24555 overlay: Remove needless specifity in .mw-echo-grey-link selector
Binding it to the element name should rarely be needed as it only
adds complexity with no clear benefit.

Nesting classes should also rarely be necessary as it basically
requires the code will never be embedded in or itself embed something
from another component (otherwise you'd clash with that other component's
class name, and if you don't clash, then it wasn't neccecary to
nest the class in the first place).

If the class is overlay-specfic it should be renamed to something
like '.mw-echo-overlay-grey-link'. Keeping it as-is and applying
directly though, as it doesn't appear overlay-specific.

Change-Id: Ied601058c8e501914113d542f88542c83157d5a0
2015-01-06 22:04:12 +00:00
Translation updater bot 6d9a04ac8b Localisation updates from https://translatewiki.net.
Change-Id: I604a6cf2efafdda418cb0679ffed6bf0d9eb5b54
2015-01-05 23:07:18 +01:00
Translation updater bot 26e4db7ff7 Localisation updates from https://translatewiki.net.
Change-Id: I02ca232b29c641c4315e6b0f672187f3033ad63c
2015-01-03 23:01:33 +01:00
Translation updater bot 58b5f77815 Localisation updates from https://translatewiki.net.
Change-Id: Ic9ff06b4b5dc40e5a677a48758bc920dea426a20
2015-01-02 22:33:21 +01:00
Translation updater bot d11b75687e Localisation updates from https://translatewiki.net.
Change-Id: I7442645e759f8cbf83c5e24e88a5f7b73adbc83c
2014-12-30 21:08:42 +01:00
Translation updater bot 703b2db08b Localisation updates from https://translatewiki.net.
Change-Id: I21d71ddcf0927cc379191584c696aaa968915e8e
2014-12-28 21:43:55 +01:00
Translation updater bot 12932894c5 Localisation updates from https://translatewiki.net.
Change-Id: Ib983da41ca63c5bf95181707c92812a82aad8813
2014-12-27 19:51:03 +01:00
Translation updater bot 43dab3cbfa Localisation updates from https://translatewiki.net.
Change-Id: I8602662fd0f152b013b526d4974e19a882e0ca16
2014-12-22 22:42:46 +01:00
Translation updater bot 8abd52b439 Localisation updates from https://translatewiki.net.
Change-Id: Ib6ca99a1dcac8134663d69d4f36e37f7d61769ee
2014-12-20 22:22:06 +01:00
Translation updater bot f693796c8e Localisation updates from https://translatewiki.net.
Change-Id: I3a8d7636767e5ecd34b39b178f3d30b76198707c
2014-12-18 23:19:06 +01:00
Matthias Mullie 607c864608 Page linked by another user : link to the original article
Fixes T55647

Bug: T55647
Change-Id: I09c2cfdfe165a0df262848d9287ce2ff962b4b8a
2014-12-18 12:12:17 +01:00
Translation updater bot aad65479a2 Localisation updates from https://translatewiki.net.
Change-Id: I694bb63c1290261f847403aaef3c39b18867d5bd
2014-12-17 21:48:10 +01:00
Translation updater bot 10653bb27e Localisation updates from https://translatewiki.net.
Change-Id: I73bf6da53dc839fd2376b1626067b632e3bbd074
2014-12-16 21:56:43 +01:00
Matthias Mullie f048d248bd Clarify alert/messages meaning
Bug: T72255
Change-Id: I2dde0c2e2c7bbd89f11112ceb738b19a49fda21b
2014-12-16 14:27:10 +01:00
Translation updater bot 875bccdc40 Localisation updates from https://translatewiki.net.
Change-Id: I4ce6d25fd8beda07ddc027adee882d0bbb5db690
2014-12-15 22:18:31 +01:00
Translation updater bot 46c8edb9b0 Localisation updates from https://translatewiki.net.
Change-Id: Iddf4e00009d26ff816d6aa1cc9ae948bca1e9c54
2014-12-14 22:20:19 +01:00
Translation updater bot 893624d650 Localisation updates from https://translatewiki.net.
Change-Id: I5f098e0ee8a7dd7fb2736b2fc132481c2e6fd6fd
2014-12-13 22:29:08 +01:00
Translation updater bot f2e7c8056d Localisation updates from https://translatewiki.net.
Change-Id: I94bebbd8f03253e4ab2cbaf75045339e204f494b
2014-12-11 23:50:31 +01:00
jenkins-bot 968b05b944 Merge "Prevent undefined index warnings" 2014-12-09 23:32:51 +00:00
Translation updater bot 66b530ed0b Localisation updates from https://translatewiki.net.
Change-Id: I8a242f5a40a4ae05bdafe197758b3e86b03bf476
2014-12-09 21:56:22 +01:00
Erik Bernhardson 438a7d5bb4 Prevent undefined index warnings
In some languages the \w+ does not match the characters used
when translating UTC and the regular expression attempting to
match the timezone fails. Testing in prod wikis where this fails
such as ne.wikipedia.org shows it still works, it just generates
a more generic regular expression.

Since the overall process still works acceptably on the wikis outputting
warnings this patch just adds a guard to prevent the warning and does
not attempt to fix the underlying issue.

Bug: T76558
Change-Id: If8e1ddd2d642b042cc24c51d5ba5aa8b34bc9552
2014-12-09 01:43:03 +00:00
Translation updater bot c6b3a865fc Localisation updates from https://translatewiki.net.
Change-Id: I8887d6235dc24dc3ce18c777b2560c8c0a477d3c
2014-12-08 23:20:29 +01:00
Translation updater bot 19a962322b Localisation updates from https://translatewiki.net.
Change-Id: I555feaf643e53b4ddeab21842d65497f27d1aced
2014-12-07 21:53:21 +01:00
Translation updater bot cc77d3473b Localisation updates from https://translatewiki.net.
Change-Id: I6449d994ec16ebbb5ff4f9a29e930c0e2fe95c5b
2014-12-06 22:25:40 +01:00
Erik Bernhardson 2578c37d6c Bug: Fails signature detection with extra long signature
There were two different circumstances that could trigger echo's signature
detection to fail: multibyte characters in signature, and signatures near
$wgMaxSigChars limit that expanded past the limit due to wfEscapeWikiText().

This patch adjusts to use mb_substr to appropriatly handle the multibyte
characters, and adds a couple extra charactesr to $wgMaxSigChars to allow
for wfEscapeWikiText().  This isn't perfect, but a stricter implementation
would require much more work than i think we should spend here.

Bug: 73426
Change-Id: Ic51c2bc2a08600f188db13a9a0537f1321c9a655
2014-12-03 11:33:39 -08:00