Commit graph

1731 commits

Author SHA1 Message Date
Umherirrender a5333289b8 Remove php entry point
Deprecation notice since I43d7febac9ae620d739dd494a87aba2a7010801c

Bug: T140850
Change-Id: If2ce8d2932e9fb2881f3b32634925493ec012996
2021-03-13 00:00:53 +01:00
Translation updater bot c0afeb2ecf Localisation updates from https://translatewiki.net.
Change-Id: Idd1365927b803b434291c1e8bf942501ad8ec176
2021-03-12 08:47:00 +01:00
Translation updater bot dd846b7ff3 Localisation updates from https://translatewiki.net.
Change-Id: I8d94e00489aecd03ef0de20a5c57746dae64ef60
2021-03-10 08:32:48 +01:00
libraryupgrader 99de8fa660 build: Updating eslint-config-wikimedia to 0.18.2
Change-Id: Ia16f5401997e5144e27dde8fafb370a56f71e3ad
2021-03-08 02:55:10 +00:00
Translation updater bot 23ffadd46a Localisation updates from https://translatewiki.net.
Change-Id: I0f430a09ab3cdd85d56e9ba773641afdf04ef671
2021-03-05 08:56:45 +01:00
Adam Wight d63a375fac Finalize event platform migration
Bug: T275011
Bug: T275012
Change-Id: I51a3c3b6b3943db651807fbb2c0eb17c8c51440f
2021-02-24 16:52:55 +01:00
jenkins-bot 9a42121f2e Merge "Send title without namespace" 2021-02-22 16:11:36 +00:00
Translation updater bot f1e9c85da9 Localisation updates from https://translatewiki.net.
Change-Id: I3bc9630d9317c3093e35b2a9f8c88e5221f29de9
2021-02-22 08:53:53 +01:00
Thiemo Kreuz 6129f5d589 Don't validate <templatedata> tags on non-wikitext pages
I tested this locally, and indeed: Try to edit for example your
own page http://en.wikipedia.org/wiki/Special:MyPage/common.js
Try to paste and save this:

 var notWikitext = '<templatedata>{</templatedata>';

The page fails to save. (You might not see the error message
because of T258790#6751678.)

But this is not even wikitext. The <templatedata> string is
meaningless and does not trigger any TemplateData code when
the page is parsed and saved. Still there is an additional (!)
parser run that processes every page with the wikitext parser,
no matter what the actual content model is.

This does not only cause strange stack traces (see T272231),
it's most probably a massive performance bottleneck. Luckily
the majority of pages on the Wikimedia cluster is wikitext
anyway.

Bug: T272231
Change-Id: I2efcadc9bae6ecb37314f6d45c0c520abfbb85a0
2021-02-19 15:10:28 +01:00
Translation updater bot 759953d862 Localisation updates from https://translatewiki.net.
Change-Id: I3ba6b696745f72062214dacda286f902b00175be
2021-02-19 08:32:51 +01:00
Adam Wight e9e1b8ff48 Send title without namespace
These are a mess and hard to de-localize.  Also, the schema is
already documented as not including the namespace in this field.

A proper migration would be very difficult, so we'll have to remember
that our data includes this glitch and manually strip namespace
prefixes before the deployment date, as needed.

Change-Id: If2a4dd865b95458dc63162460f252500fd52436e
2021-02-18 18:27:53 +01:00
WMDE-Fisch 43e3043bab Allow input fields for parameter values to expand
Adding a new widget that inherits from MultilineTextInputWidget but
is initialized with only one row and prevents using the return key
to add new lines.

Bug: T263533
Change-Id: I5423f5f04075d21abd7acf09b622fd6444feeeb2
2021-02-17 17:27:54 +01:00
Translation updater bot 71e0ef3009 Localisation updates from https://translatewiki.net.
Change-Id: Idae2b4f7815fa673d91b8e52c3bd90ae72a131bc
2021-02-17 08:43:41 +01:00
Translation updater bot ea77c53f54 Localisation updates from https://translatewiki.net.
Change-Id: I94d3df5831ebae433f4ea71f8efab3a43144e911
2021-02-15 10:06:36 +01:00
jenkins-bot e474d1632d Merge "Update a few confusing variable names in editor code" 2021-02-13 17:24:02 +00:00
jenkins-bot f26a5d37ec Merge "More strict validation of InterfaceTexts" 2021-02-13 17:23:44 +00:00
Translation updater bot e9c3df10e9 Localisation updates from https://translatewiki.net.
Change-Id: I847e5d59e664532822f7454c60d40bc47d9ad2ec
2021-02-11 08:40:15 +01:00
Translation updater bot f5236fb131 Localisation updates from https://translatewiki.net.
Change-Id: Ia007571c165b51884762f2ab73e15833b0f3565a
2021-02-09 08:41:44 +01:00
Translation updater bot 71f110eea5 Localisation updates from https://translatewiki.net.
Change-Id: I0b12da9f9bdeb90672901ef3a4571198dc813fe2
2021-02-08 08:45:20 +01:00
jenkins-bot 08afd9c3b6 Merge "Bucket the user's edit count before logging an event" 2021-02-01 17:06:07 +00:00
libraryupgrader b3342f69b6 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1
  The following rules are failing and were disabled:
  * compat/compat

Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: I6c04cb615ac1110833bbaaed686fc226b59d2c50
2021-01-30 14:53:11 +00:00
Translation updater bot 4d78fbaff7 Localisation updates from https://translatewiki.net.
Change-Id: Ic76334f8d4942a99590fd86eea57242ad4f02d6b
2021-01-28 08:37:12 +01:00
Translation updater bot 9e8cae2cd7 Localisation updates from https://translatewiki.net.
Change-Id: Id95f89ad82eac2dcb9630e804b81e62fc912566a
2021-01-27 08:35:31 +01:00
Translation updater bot 036b8bfaa6 Localisation updates from https://translatewiki.net.
Change-Id: I9cea24c3683969bb1c6cb37989a34cdae7a73379
2021-01-26 08:54:04 +01:00
jenkins-bot 8b9c2f8b13 Merge "Remove inconsistent capitalization of parameter names" 2021-01-25 16:26:17 +00:00
Translation updater bot adc545245e Localisation updates from https://translatewiki.net.
Change-Id: I15b02eab75da71c9f17624f171a63e73abe6d503
2021-01-25 08:54:51 +01:00
Andrew Kostka d81226fdf7 Bucket the user's edit count before logging an event
Bug: T272569
Change-Id: I5313a3808b266bb60644b40bdb192db77208774a
2021-01-21 13:52:28 +01:00
Translation updater bot 777ce7963d Localisation updates from https://translatewiki.net.
Change-Id: I06f3fd19f043e31f0685f8f6a9caa58b1492ff17
2021-01-21 08:32:52 +01:00
Translation updater bot 58ebf35ef1 Localisation updates from https://translatewiki.net.
Change-Id: I4126d5dac6004bf523946dd518d8762d1ea9900b
2021-01-18 08:39:56 +01:00
Umherirrender b97d851664 Add missing @param to test documentation
Change-Id: Ie99e77e7e6f543eaf041eb8530c6f318538c8da5
2021-01-17 20:17:57 +01:00
Translation updater bot 68f1efc7e0 Localisation updates from https://translatewiki.net.
Change-Id: I830dbfab9edfd1a4654ad5552d07189a5016c3f2
2021-01-14 08:51:25 +01:00
Andrew Kostka dfa86a7c71 The parameter-type-change event should also fire if type was initially undefined
Bug: T260343
Change-Id: I26f50dfd6b4b747b1ef88d619df6aff5278d412a
2021-01-08 14:09:34 +00:00
Translation updater bot aaf660f38c Localisation updates from https://translatewiki.net.
Change-Id: Ic7d58568699329a69e787fe17d0dd313fe175b0c
2021-01-06 08:29:20 +01:00
Translation updater bot fce41ca1b0 Localisation updates from https://translatewiki.net.
Change-Id: Ic6f2e55664d902438e6b93e4266bed779f871416
2021-01-04 08:44:53 +01:00
Translation updater bot baad48a17d Localisation updates from https://translatewiki.net.
Change-Id: I58b997ad23ff7c6f864839ced35e507118c2518f
2020-12-30 10:15:07 +01:00
Translation updater bot 00abdd1d6f Localisation updates from https://translatewiki.net.
Change-Id: Ief15a37d5c6f52feb28e81d99ac6ddccc5b1b3ab
2020-12-29 09:48:51 +01:00
Translation updater bot 11f9c006c3 Localisation updates from https://translatewiki.net.
Change-Id: Idb23f4ec35de93a187375d671c11c273c6ebfe39
2020-12-28 10:40:06 +01:00
Thiemo Kreuz 294786223d Remove inconsistent capitalization of parameter names
Example:

On
https://en.wikipedia.beta.wmflabs.org/wiki/Template:Anschutz
the two parameters "state" and "capitalization_test" don't have
a label in the <templatedata> JSON structure. Instead the
internal parameter name is shown. But it's capitalized for an
unknown reason. I guess this is done to make the table look
"nice". But it causes confusion – see the ticket.

This capitalization is there since the very first commits from
2013, see I16d3f9e.

Compare with VisualEditor: Edit the template on
https://en.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.8542952978413387-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n
or use the old wikitext editor and TemplateWizard to insert
the template. In both cases the parameter names are not
capitalized.

Another argument why this capitalization is misplaced: When
there is no <templatedata> JSON blob, the TemplateData editor
auto-detects the parameters and semi-automatically creates a
minimal JSON blob. This is the moment where labels should be
created and stored so the user can edit them. But this doesn't
happen (for good reasons).

The user can't do anything about the current capitalization.
The only way to change it is to add a label that does nothing
but repeat the parameter name, just to undo the capitalization.
That should not be the way this works, I would like to argue.

Bug: T174771
Change-Id: Ia8133d3f0d6b79fe89c63bb0392a334c0a185a65
2020-12-23 11:59:12 +00:00
Translation updater bot cab188ac88 Localisation updates from https://translatewiki.net.
Change-Id: I7f523213eb0b48a45ee979011cb0519f5775530d
2020-12-22 08:32:50 +01:00
Translation updater bot 79b3056f9b Localisation updates from https://translatewiki.net.
Change-Id: I619577f319ddc6bd63e579eb71f17b8222b611ae
2020-12-21 08:40:12 +01:00
libraryupgrader b2d0c24181 build: Updating mediawiki/mediawiki-phan-config to 0.10.6
Change-Id: Id72c71681c613f27880919199280fa0f544a792a
2020-12-20 03:29:33 +00:00
jenkins-bot 39d95be801 Merge "Replace deprecated Language::getFallbacksIncludingSiteLanguage" 2020-12-17 10:50:08 +00:00
WMDE-Fisch b8b1df894f Add tracking for template data presence
This will give results whenever template data is requested e.g. by
VisualEditor or the TemplateWizard.

Bug: T259705
Change-Id: I2a9e864b94b6f8f49ca3adaa46502627ab6b3322
2020-12-16 12:50:44 +01:00
WMDE-Fisch 49bc2e8735 Replace deprecated Language::getFallbacksIncludingSiteLanguage
Change-Id: I24a95ce973169ab3f76abe39ca9780c3bf4ec5a4
2020-12-16 12:07:34 +01:00
WMDE-Fisch 028aaba896 Replace deprecated getNativeData
Change-Id: Icbee3fd7245e81b7c3c49e2aab6607c0a8e61217
2020-12-16 10:36:56 +00:00
WMDE-Fisch ae0dd0e094 Get WikiPageFactory and LanguageNameUtils from services
The bump to 1.36 was overdue because the PageProps are used from
services already.

Change-Id: Ic4b42f58290e15123b281d48be396e8b7e8eeab0
2020-12-15 14:15:47 +01:00
Translation updater bot 4bb17c89f0 Localisation updates from https://translatewiki.net.
Change-Id: Ie010a35fc7d36744316433236c21a85760b8a9ec
2020-12-15 08:37:07 +01:00
Translation updater bot e22cc2262b Localisation updates from https://translatewiki.net.
Change-Id: If89775ed3c5ba4a4471b10b080941c15b91e1769
2020-12-14 08:43:31 +01:00
Umherirrender 88f31acbd7 build: Remove unneeded phan suppression
Possibly not needed after core change
I40a305b5e49d67b3f6d7737c0846b93a80b78fa9

Change-Id: Ided42bd763718f0393a874bbadb0b682b4bb9043
2020-12-13 00:20:53 +00:00
jenkins-bot 6bef0521b9 Merge "Replace HTML with Markdown in Specification.md" 2020-12-11 20:22:34 +00:00