Commit graph

6827 commits

Author SHA1 Message Date
jenkins-bot b60d2832d4 Merge "Modify EchoHooks.php to make hook not pass the entire special page" 2020-11-02 10:29:24 +00:00
shubham656 90887d290c Modify EchoHooks.php to make hook not pass the entire special page
Bug: T257183
Depends-on: I7af57455d412dc5e93617ca0b3d6e7aac8ef500f
Change-Id: I4ec64e5d94a788d0cc1ed3c6e71096e9c830cbd1
2020-11-02 13:46:34 +05:30
Translation updater bot c15ca79875 Localisation updates from https://translatewiki.net.
Change-Id: I31c6af195dddc7786a63b042f0e2c298d3f4303d
2020-11-02 08:52:49 +01:00
jdlrobson 2f020163ee Restore old Echo styling through several reverts
These dont work. Timeless provides its own skinStyles for this module:
* Revert "Timeless skinStyles should be additive not replace"
This reverts commit 98d0d296a8.
* Revert "Use skinStyles for deciding where the text-indent should apply"
This reverts commit 8adab78547.

A new implementation in Vector means these are redundant:
*  Revert "Item label can now use overflow hidden"
This reverts commit b5dd7baa08.
* Revert "Drop text indent in modern Vector"
This reverts commit 150fc7a16c.

Bug: T264339
Depends-On: I2afc12504d7184583fa8331479125474c68017dc
Change-Id: Ifd0dd5a0479588664b772fb839dbbcd8d7c47320
2020-10-29 16:59:45 +00:00
libraryupgrader f5ff16571e build: Updating mediawiki/mediawiki-codesniffer to 32.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.ObjectTypeHintParam
* MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate
* MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected
* MediaWiki.Commenting.PropertyDocumentation.MissingVar
* MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage

Additional changes:
* Dropped .inc files from .phpcs.xml (T200956).

Change-Id: I46e3dacb3da1266ff52d614003ad911feeb7504e
2020-10-29 14:24:24 +00:00
Translation updater bot 79f95a666b Localisation updates from https://translatewiki.net.
Change-Id: Ic0fd306cc62439ec07105b65e44f8d071e184484
2020-10-29 08:27:37 +01:00
jenkins-bot cf0e87d18e Merge "Fix DiscussionParser failing in certain languages" 2020-10-29 00:16:32 +00:00
jenkins-bot ba63c30715 Merge "Implement delayed echo notifications" 2020-10-28 17:52:37 +00:00
jgiannelos c97b8e6851 Implement delayed echo notifications
* EchoEvent now supports `extra` params for job delay and deduplication
* When Echo identifies this type of param it creates a
  DelayedEchoNotificationJob that will be executed after `delay` seconds

Change-Id: Ib0c6789dfe42e9703a67835909e5932c0054089f
2020-10-28 12:11:15 +01:00
Thiemo Kreuz 8880df4123 Fix DiscussionParser failing in certain languages
It appears like the initial \h in this non-Unicode regular
expression matches parts of an UTF-8 character, destroying it.
This makes the final preg_match() in this method fail, when
$output is going to be used as a pattern.

Bug: T264922
Change-Id: Iaf240bc2e0808c2f57c1f8bab2589d3207915afe
2020-10-27 20:03:18 +01:00
Translation updater bot b8d29d62ef Localisation updates from https://translatewiki.net.
Change-Id: I6625b7e899ca71f3e65b72afc14f2e5b604f60ab
2020-10-27 08:23:28 +01:00
Translation updater bot b7e94374d8 Localisation updates from https://translatewiki.net.
Change-Id: I26ecb4421f3dfef2fab2605fd522668678a447e1
2020-10-26 08:30:42 +01:00
jenkins-bot d7b14f3fc2 Merge "Item label can now use overflow hidden" 2020-10-22 20:49:56 +00:00
jdlrobson 98d0d296a8 Timeless skinStyles should be additive not replace
Sorry I made a mistake in my change and clobbered the existing
skin styles rather than extending.

Without this the notification icons will spill on to a second
line.

Follow up to 8adab78
Bug: T266135
Bug: T265806
Change-Id: Ic733a393636309e1bc4536141214fa420eed3e04
2020-10-21 17:59:04 +00:00
jdlrobson b5dd7baa08 Item label can now use overflow hidden
Since the icon is applied to the link element it is now possible
to apply overflow hidden to the label itself when its wrapped in
a span.

Bug: T264339
Change-Id: Ifdc1d152702c1f5338fd2969cccf07971d622fc7
2020-10-21 10:04:40 -07:00
Translation updater bot 60cd168149 Localisation updates from https://translatewiki.net.
Change-Id: I6a8f580d301599b86c24f2d7727784cf922fb7f1
2020-10-21 08:26:52 +02:00
jdlrobson 31401f9b00 Catch malformed URIs
It is documented that Uri can throw an exception so this should guard
against this case.

Bug: T261799
Change-Id: Ia45654194f853923a5b05ceff3ab2b47f6dd87d8
2020-10-20 19:42:20 +00:00
jdlrobson 8adab78547 Use skinStyles for deciding where the text-indent should apply
The code previously suggested it was only needed for Monobook and Vector
but it was also being used by timeless as discovered when 150fc7a16c
landed. This follow up applies the text-indent in the skin styles to ensure
it goes where needed.

Bug: T265806
Change-Id: I76a26a0a497f6bf7bb5f53967ea625f7e5d06ff7
2020-10-19 18:13:21 +00:00
Translation updater bot d74bc9ae54 Localisation updates from https://translatewiki.net.
Change-Id: I1d0ebd97e7376562d40799da56b941e584fc4bfb
2020-10-19 08:35:40 +02:00
Harriet Ayugi d18456f631 Add /tests/selenium/log to .gitignore file
Bug: T265463
Change-Id: I8f42e03e8466c62d56ca245b244a6a39a78ea061
2020-10-16 09:59:02 +03:00
Translation updater bot 96271c47fc Localisation updates from https://translatewiki.net.
Change-Id: I728061214e50d4d43bbb3c8a6a8e540a054966a6
2020-10-15 08:38:01 +02:00
jdlrobson 150fc7a16c Drop text indent in modern Vector
In the new version of Vector the personal tools text is aligned right
rather than left. The text-indent is redundunt.

A background-position and center directive are added in preparation for
future changes we plan to the personal tools to make this code more
resilient.

Depends-On: Ic9df8c1cea0fef82461a84190689791ce2275812
Bug: T264339
Change-Id: I6bc80c8a42425599102370e5d90b48c07d360ccb
2020-10-13 20:21:57 +00:00
Translation updater bot 3a564bd154 Localisation updates from https://translatewiki.net.
Change-Id: I8bbc60c82fc278dbe0475eeb19564c37b9382b61
2020-10-13 08:42:16 +02:00
Translation updater bot e1aa38d427 Localisation updates from https://translatewiki.net.
Change-Id: Ic905e948e095a29d7c52260ccd8b43daf8349a4d
2020-10-12 08:34:56 +02:00
Raymond 661f87fb4b Update special page aliase for Kurdish (Latin script)
Source;
https://translatewiki.net/wiki/Support#New_special_page_names_for_Kurdish_(Latin_script)_[_[[Portal:Ku-Latn|ku-latn]]_]_58136

Change-Id: Ie585661f7c2e1f3f1ce8ad97df2a3056e58dad82
2020-10-08 15:35:22 +02:00
Translation updater bot 10f165adc7 Localisation updates from https://translatewiki.net.
Change-Id: I0d83b24778de8fa22831eb76ac97212303a130d2
2020-10-08 08:29:52 +02:00
jenkins-bot e76c0b23a9 Merge "UserNotificationGatewayTest: Mock User objects" 2020-10-07 19:50:41 +00:00
Translation updater bot 686e330a1e Localisation updates from https://translatewiki.net.
Change-Id: Ibde976ea02baba38ede61e01faa196c957ca86d8
2020-10-07 08:35:41 +02:00
Translation updater bot 6e2867b9da Localisation updates from https://translatewiki.net.
Change-Id: Id03f8b54230c9a0ec15f7c4a3ef7a63cfc169412
2020-10-05 08:41:42 +02:00
Bartosz Dziewoński 121cbd6ee8 Fix incorrect use of $.extend()
$.extend() with one parameter will merge the given options into the
global `jQuery` object, which was definitely not intended here. Maybe
the `config` variable was supposed to be passed as the second
parameter, but it doesn't look like that would do anything either.

Accessing the global `jQuery` object in that way ended up generating
completely unrelated warnings about deprecated `$.trimByteLength`,
which was reported in the task.

Follow-up to 7658e151d6.

Bug: T256732
Change-Id: I5f92b6725c8abdcfb676e6a09b610ea0dc8c245f
2020-10-03 18:30:30 +00:00
Translation updater bot 4d0f0dea33 Localisation updates from https://translatewiki.net.
Change-Id: Ife427ef323a9032e744fafe7a20562910c947689
2020-10-02 08:24:11 +02:00
DannyS712 b708ba2462 UserNotificationGatewayTest: Mock User objects
Since its a unit test, the use of User::newFromId
prevents attempts in core to migrate to
the UserFactory.

Change-Id: If5e76f2ae570ef4ae58cb77b5281c4446a1cadff
2020-10-02 03:44:07 +00:00
Translation updater bot 7761d6f547 Localisation updates from https://translatewiki.net.
Change-Id: Iee928636b91a789b5010c365b97517736c3b43e3
2020-10-01 08:30:07 +02:00
Matthias Mullie a969c6d312 Make tests match actual expected format for user-locators
EchoAttributeManager::getUserCallable casts to array,
which means that even a non-array value (e.g. a simple callback)
becomes an array and NotificationController::evaluateUserCallable
will handle it just fine. But tests seemed to thing it was wrong.

Change-Id: Ia1e1e4015ebbc4d79bba5274e802911f222692c0
2020-09-30 15:54:54 +00:00
daniel 7170b0f35f Use MockHttpTrait
Use the mock HTTP request, in preparation for I1702c11928f87

Depends-On: I8ce17da7315b87b8dd0e502e601b9ac488089456
Needed-By: I1702c11928f8760bb41b41f4c7c04d7af03f62e2
Bug: T262443
Change-Id: I390856b4609635cee22253071f21ce63ff716791
2020-09-29 09:05:50 +00:00
Translation updater bot 7cac06b6f7 Localisation updates from https://translatewiki.net.
Change-Id: I97e4bee40e0cd99a79375a210a20ad6df16db516
2020-09-28 08:29:05 +02:00
libraryupgrader de6827b012 build: Updating mediawiki/mediawiki-phan-config to 0.10.3
Additional changes:
* Dropped .php5 files from .phpcs.xml (T200956).

Change-Id: I6cf9f4681e3f458fc1f71646bd2ff7323648b47e
2020-09-25 00:33:44 +00:00
Translation updater bot c4fcf16789 Localisation updates from https://translatewiki.net.
Change-Id: Iff58ae595bfb3ec784a7bca9c0ad7e3091ce9301
2020-09-21 08:29:22 +02:00
James D. Forrester 61cda882f5 Drop private EchoCachedList::ONE_DAY, unused
Change-Id: I14e53bcd593161c2fb6e29a5d280615d8694ebb4
2020-09-20 13:38:01 +01:00
Reedy 2afb728a10 Fix PSR12.Properties.ConstantVisibility.NotFound
Bug: T253169
Change-Id: I506e43629a30ef34c9154b8212878255de7d90b9
2020-09-19 21:26:38 +00:00
Translation updater bot c515e8c6ff Localisation updates from https://translatewiki.net.
Change-Id: I016e8d49a09434da91deb25f08ae2ceb5827df9c
2020-09-18 08:37:09 +02:00
Translation updater bot b4be1aaf73 Localisation updates from https://translatewiki.net.
Change-Id: I7a023e84fa1f512fe397d34b6bfcef794cc9c856
2020-09-17 08:32:26 +02:00
Translation updater bot be66cc9c9e Localisation updates from https://translatewiki.net.
Change-Id: I219f0c8574b914576b769afc077cba516859d15c
2020-09-16 09:07:03 +02:00
jenkins-bot 3c1b1b2d5d Merge "Change echo_push_* column types from TEXT to BLOB" 2020-09-15 08:36:40 +00:00
DannyS712 357c8224ae NotificationsTest: No need to set $wgUser
Bug: T243732
Change-Id: I85e25ebc636a1cfce8a06614adad8d7afb68965f
2020-09-15 01:01:11 +00:00
Michael Holloway 27a6a1fb00 Change echo_push_* column types from TEXT to BLOB
Per DBA review feedback, BLOB is more commonly used and may be
preferable.

Bug: T246716
Change-Id: I499d8c548088453d3182174f6f035977e8802240
2020-09-14 21:35:01 +00:00
Michael Holloway c20f21f7d2 Update description comment for eps_topic
Update the comment to reflect that the column content will be a
reference to an echo_push_topic row ID rather than topic text.

Bug: T261756
Change-Id: I456165df24ecc5a90d4ebcefe50f81459d7c352e
2020-09-14 16:36:48 -04:00
jgiannelos 4abfbd3c96 Normalize eps_topic
* DB changes
 - Create a table for push topics NameTableStore
 - Add a foreign key on subscriptions to normalize push topics

* Implement NameTableStore to normalize topics
* Update DB query joins to include topic from foreignkey
* Adapt code to use IDs instead of the actual topic

Bug: T261756
Change-Id: Ia7589f4a607993352d45b2dd3bcb3867d12d6e97
2020-09-14 15:52:23 -04:00
Translation updater bot 6c4d8045c1 Localisation updates from https://translatewiki.net.
Change-Id: I96a8a20929c078e2ea7d2a5dc223b099291bc04d
2020-09-14 09:14:19 +02:00
Ostrzyciel a585ad635a Explicitly provide sysop user in unit tests that need it
Currently Echo assumes the default user used when ->editPage() is
called to be a sysop user… which is kind of the case? It passed null
to WikiPage::doEditContent() which in turn falls back to the default
user (127.0.0.1). In a test that relies on the user to be a sysop, it's
better to provide the user explicitly to avoid confusion.

This is to clean up the confusion introduced by ->editPage()'s doc
block, see: I9f77474f40e0f6901aa2c6f846e471b822636aa5

Change-Id: I7a79e0eaa1617e4d87a8d615a5391723c0e30b6a
2020-09-13 08:16:45 +00:00