Commit graph

2012 commits

Author SHA1 Message Date
Translation updater bot a798da37cd Localisation updates from https://translatewiki.net.
Change-Id: I0ab178254b589a18112eecd28a5d0db341b7f7d0
2018-04-07 22:34:43 +02:00
Translation updater bot c2905ea2d4 Localisation updates from https://translatewiki.net.
Change-Id: Ief4c16c36c711f28b15fb58247ab867ec79fd662
2018-04-05 22:22:36 +02:00
Umherirrender 145b1f1772 Declare nullable argument only in @param
The $oldRev could be null, but when set the null in argument list,
it is an optional parameter and the following argument $user must be
optional too. That is not needed here.

Change-Id: Ia7c1c44b29b191dc602513e07b90d3e2415d3a5d
2018-04-05 12:45:23 +02:00
Translation updater bot c536740e67 Localisation updates from https://translatewiki.net.
Change-Id: I18d2ec736ee880ec8b461a6f19088fe63628aa5d
2018-04-04 22:51:08 +02:00
jenkins-bot a04dff78bf Merge "Add thanks links to Special:Log for log entries" 2018-04-03 18:38:46 +00:00
jenkins-bot 314dbc9d00 Merge "Add log-thanks support to corethank module" 2018-04-03 18:35:14 +00:00
Sam Wilson 56dfaa8555 Add thanks links to Special:Log for log entries
Only log entries that were associated with revisions were
being thanked. This adds other log entries (if they're of
a whitelisted type still).

Bug: T187485
Change-Id: I9c644590b52bce9b04c7c655dd197c1b78a83777
2018-04-03 06:20:56 +00:00
Sam Wilson 3973a11e8d Add log-thanks support to corethank module
This adds support for thanking for log entries. It gets the log
ID from and attribute on the thank link (which does not yet have
this; that will come in T187485), and sets the source to be 'log'
if it's being called from Special:Log (this can be extended in
the future if we want to thank for log entries from elsewhere).

Bug: T186921
Change-Id: Ifdb458b873ed4f1e6e64760658d2293aba1e02b3
2018-04-03 07:55:12 +08:00
Translation updater bot 7413415794 Localisation updates from https://translatewiki.net.
Change-Id: I62fdc4b4aea4b6f02d1d2edc837624574d501d7d
2018-04-02 09:48:51 +02:00
Translation updater bot 784b94c8f3 Localisation updates from https://translatewiki.net.
Change-Id: I31a23c23a27d961ae3c5eea47418c4c9ace18839
2018-04-01 09:39:42 +02:00
Translation updater bot 27a5b2a031 Localisation updates from https://translatewiki.net.
Change-Id: Ib342f175a9c108273f9402639c13fedebb43cb47
2018-03-31 09:22:37 +02:00
Translation updater bot 11dc4d3845 Localisation updates from https://translatewiki.net.
Change-Id: I791f6e8f757a05bdd5140ee94ed6c98208bbcb81
2018-03-30 09:34:58 +02:00
jenkins-bot 38a86da7e5 Merge "corethank: Use the recipient's gender for all "thanked" messages" 2018-03-29 11:18:25 +00:00
libraryupgrader 8d0274dd09 build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.LicenseComment.InvalidLicenseTag

Change-Id: If9b7d10426d6f97e0d00bf75bfa5dcb49296eb28
2018-03-29 06:15:34 +00:00
Translation updater bot e238b4e50f Localisation updates from https://translatewiki.net.
Change-Id: Ia7e0e6c762ae82ee18d008e2616afd43ed80ffe5
2018-03-28 22:23:18 +02:00
Roan Kattouw 52663255f7 corethank: Use the recipient's gender for all "thanked" messages
It was already being used when changing a "thank" link to a "thanked"
message because the user just clicked it and thanked that person, but
not when updating links on page load for things the user had already
thanked previously.

Bug: T190563
Change-Id: I4c5758ef446aa2712ae27a1c784555cbf23806f9
2018-03-28 21:55:48 +02:00
Translation updater bot 206647b1dd Localisation updates from https://translatewiki.net.
Change-Id: I61848587a799e52ad3780bbed246568cef7779fb
2018-03-27 22:09:56 +02:00
Translation updater bot 01e863ff8b Localisation updates from https://translatewiki.net.
Change-Id: I519717d6f8d29c20e86913c565ae5758795d8dcf
2018-03-26 22:19:28 +02:00
jenkins-bot 431ca7785b Merge "Add GENDER support to thanks-thanked-notice" 2018-03-25 06:02:57 +00:00
Translation updater bot 2d94bb2a7d Localisation updates from https://translatewiki.net.
Change-Id: I26f16378385f4437e7bb453c559ca40e445f7637
2018-03-24 22:29:42 +01:00
Translation updater bot 26ccfd5980 Localisation updates from https://translatewiki.net.
Change-Id: I6ea4ff4d710d873cfaf1948cf2c2c6465eea47e5
2018-03-23 22:13:22 +01:00
jenkins-bot 3dbf781571 Merge "Add revision-thanking links to some log entries" 2018-03-23 01:09:20 +00:00
Translation updater bot 108152e7fb Localisation updates from https://translatewiki.net.
Change-Id: I4bce0de39404070fac0cb48f3c96cc1bd304417e
2018-03-22 22:09:06 +01:00
Matěj Suchánek ac9f8908ca Add GENDER support to thanks-thanked-notice
Change-Id: If23ce8d7ee8ff1edf484c217a70aa34046590fd6
2018-03-22 08:35:26 +00:00
Sam Wilson 2059e3ff4b Add revision-thanking links to some log entries
Many log entries are associated to (exactly one) revision,
and for these (only, and only where the log type is
whitelisted) we add a thank-link that behaves exactly
as the thank-link on diff and history pages.

Bug: T189752
Change-Id: I5f4e84c65d4fe2d95b20cdb3c3f9522ad3e5f422
2018-03-22 11:57:55 +08:00
jenkins-bot 67ba712bdb Merge "Update for the actor table change" 2018-03-21 21:36:44 +00:00
Translation updater bot dfc0eb56a8 Localisation updates from https://translatewiki.net.
Change-Id: If2423202b35d66036b7d803d976aecbbe32c9e27
2018-03-21 22:32:17 +01:00
Translation updater bot 4a644bcff0 Localisation updates from https://translatewiki.net.
Change-Id: Ib7709158292454fcff081b4bfef9b920358b9028
2018-03-20 22:13:00 +01:00
Brad Jorsch c3f508cdd8 Update for the actor table change
Core change I8d825eb0 begins the process of changing core database
tables from using xx_user and xx_user_text fields to using xx_actor.
This updates the extension to continue to function during and after the
transition.

Bug: T167246
Change-Id: Ib84a5a7a9f80fa321f7482d4c27c5f58add47230
2018-03-20 15:29:32 -04:00
Roan Kattouw 5f9f913fb6 ApiCoreThankIntegrationTest: Fix intermittent failures
Every time the setup function runs, it chooses a random page name with
random content. If it chooses a page name + content combination that was
used to set up a different test in the same run, the edit it makes will
be a null edit, the revid will be null, and the test will crash.

There are 100 possible page names and 100 possible page texts, so 10k
possibilities total, and the setup function appears to be called 10 times,
so the probability of a collision would have been
(10 choose 2)/10000 = 0.0045 = 0.45%, or one in every 222 times.

Bug: T151878
Change-Id: I800ee8512c2ad171ba793bea343f456653f9a16d
2018-03-19 18:03:27 -07:00
Translation updater bot 8f6eff3aea Localisation updates from https://translatewiki.net.
Change-Id: Ib7cc46a4fddc9eea606671a0496e2fa36b165044
2018-03-19 22:20:01 +01:00
Sam Wilson 30e582bd96 Add support for log-thanks to Special:Thanks
A new "Special:Thanks/Log/123" subpage format is added for
sending thanks for the given log entry. The 'Log' part of the
subpage is case-insensitive.

The form field labels are removed because the fields are hidden
and need no labels.

Bug: T186920
Change-Id: Ic2279d9a6dc170d1eeee519392d3a930a37bc2ec
2018-03-19 10:59:20 +08:00
Translation updater bot ac98427f82 Localisation updates from https://translatewiki.net.
Change-Id: Idb6206a1ed3c8b4f226348906f544ecce25ef905
2018-03-15 22:52:20 +01:00
jenkins-bot cf92013106 Merge "Revert "Add revision-thanking links to some log entries"" 2018-03-14 22:23:34 +00:00
Reedy 2735468029 Revert "Add revision-thanking links to some log entries"
This reverts commit 9f393ef9dd.

Change-Id: Ie76fef8dc25b1134f1f60da50a87b00115154041
2018-03-14 21:49:25 +00:00
Translation updater bot c3e7ac3387 Localisation updates from https://translatewiki.net.
Change-Id: Ib15a04fca3fcc3ebea2ac874bb6d901aa996bbef
2018-03-14 22:23:54 +01:00
Sam Wilson 9f393ef9dd Add revision-thanking links to some log entries
Many log entries are associated to (exactly one) revision,
and for these (only, and only where the log type is
whitelisted) we add a thank-link that behaves exactly
as the thank-link on diff and history pages.

Bug: T186763
Change-Id: I2af380d5cb06f19ef9eb5b232d95ad87379b5d9b
2018-03-13 09:33:15 +08:00
Translation updater bot 5bec0a1ae4 Localisation updates from https://translatewiki.net.
Change-Id: I77890f396c59722351e412d4ce77f641b1f41d07
2018-03-12 22:25:35 +01:00
Translation updater bot b4a8b1dbb1 Localisation updates from https://translatewiki.net.
Change-Id: Ie7efddc573df793e9fecf06c655da2b26a824953
2018-03-11 22:31:19 +01:00
Translation updater bot b4c6b01d69 Localisation updates from https://translatewiki.net.
Change-Id: Id08d3842529475c873fa5b962a77b5e7cf631e1d
2018-03-10 22:14:28 +01:00
libraryupgrader b73ff15abb build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: I32fcb4002e9190d6203caaedf0eace6c8f440ccc
2018-03-10 06:11:45 +00:00
Translation updater bot 7270f6fb34 Localisation updates from https://translatewiki.net.
Change-Id: I35b222d94608ea71b33755b8f34010fa4cdb6e38
2018-03-09 22:42:21 +01:00
jenkins-bot 199cd68d13 Merge "Reintroduce the API to thank for log entries" 2018-03-09 19:38:53 +00:00
Translation updater bot dd0945972a Localisation updates from https://translatewiki.net.
Change-Id: I74acffd98bfbc156750810950f154019a5b5b872
2018-03-07 22:48:02 +01:00
Translation updater bot 6d3a5cf5c8 Localisation updates from https://translatewiki.net.
Change-Id: I6a083aea743b9185ec6ff2401cb69150943efd39
2018-03-06 22:18:53 +01:00
Max Semenik ed087b044c Reintroduce the API to thank for log entries
Originally introduced in b84eedc74e, it was reverted for security concerns.
New changes:
* Instead of bundling the log summary with notification, load it on display
* If the log event has been suppressed after the thanks for it has been sent,
  silently delete the event to prevent the confusion of linking to something
  zapped.
* Keep the 'already sent' cache key compatible with old format
* Validate the log id in the API
* Change ApiCoreThank::getRevisionFromParams() to ApiCoreThank::getRevisionFromId()

Bug: T186855
Bug: T188791
Depends-On: Ic5e9db0def857d9dcecbd06bf081c8c83712c1ea
Change-Id: I03aea7d9f4dfa0fe49639c53968deabf89999d2d
2018-03-06 13:08:47 +08:00
Translation updater bot 4caa24b128 Localisation updates from https://translatewiki.net.
Change-Id: I96edbf06388f086125ff086f7af0e9a3dd7df332
2018-03-05 22:25:04 +01:00
Translation updater bot ce2fda530d Localisation updates from https://translatewiki.net.
Change-Id: I4f42c24895471f06e77fc5c6db73bcb6177e940f
2018-03-03 22:25:55 +01:00
jenkins-bot 5320dc3508 Merge "Revert "Add support to the Thanks API for thanking log entries"" 2018-03-02 23:11:37 +00:00
MaxSem 3b2397fea9 Revert "Add support to the Thanks API for thanking log entries"
This reverts commit b84eedc74e.

Bug: T188791
Change-Id: If55ed6cbb5da34c0034da3cc564c6a8ff82448d2
2018-03-02 22:59:20 +00:00