Commit graph

18166 commits

Author SHA1 Message Date
Translation updater bot 0853e8515b Localisation updates from https://translatewiki.net.
Change-Id: Id4f96891ec755e3e962bb1914178ed574d46356c
2021-02-26 08:58:12 +01:00
jenkins-bot 18f5e7e2f0 Merge "Fix $wgVisualEditorUseSingleEditTab compat with PostgreSQL" 2021-02-25 20:41:39 +00:00
jenkins-bot e0e57eee45 Merge "Finalize event platform migration" 2021-02-25 09:27:09 +00:00
Translation updater bot e37a632375 Localisation updates from https://translatewiki.net.
Change-Id: I2a47be5bd16a8f98b02144538c19d84532d477c0
2021-02-25 08:39:44 +01:00
Bartosz Dziewoński 5cd2899196 Update VE core submodule to master (3c56d0611)
New changes:
582ab6eda Localisation updates from https://translatewiki.net.
7eb90ef85 Make client utils a dependency of platform
2f7675785 Remove @abstract from ve.ce.View.getResolvedAttribute
ca3f685b3 ve.createDocumentFromHtml: Do not lose <style> tags in doc fragments

Bug: T273234
Change-Id: I4bced562f018bf4f28e18ca838c8218de68ee519
2021-02-24 23:04:59 +01:00
jenkins-bot 58405ccfe8 Merge "Avoid using User::IsIP" 2021-02-24 21:13:52 +00:00
jenkins-bot cb21c4a158 Merge "Parse relative hrefs on image nodes like on regular links (try 2)" 2021-02-24 17:19:44 +00:00
jenkins-bot 48b30580e5 Merge "Handle errors when fetching revisions for visual diffs" 2021-02-24 17:19:40 +00:00
Adam Wight 28cb0b27de Finalize event platform migration
Bug: T275015
Change-Id: I8ad39924bce85da4dc09be23926ad33d1529a8db
2021-02-24 17:05:10 +01:00
vladshapik 3d29dd25e9 Avoid using User::IsIP
Remove using of User::isIP since this method will be hard-deprecated. Now it is soft-deprecated

Bug: T275602
Change-Id: Ia625be523706d1e24649f7aa15679491f9598b7f
2021-02-24 17:38:04 +02:00
Translation updater bot 718d93f862 Localisation updates from https://translatewiki.net.
Change-Id: Ica3bce89c3eba7d1b077f3d1364f3c89609db320
2021-02-24 08:52:22 +01:00
Bartosz Dziewoński 932d009cd7 Fix $wgVisualEditorUseSingleEditTab compat with PostgreSQL
Bug: T270953
Change-Id: I30bd329e8c19d7b2e7ae905cead6b21b8584db5d
2021-02-24 00:31:44 +01:00
Translation updater bot 7b063be9a3 Localisation updates from https://translatewiki.net.
Change-Id: Iad77c353069156623e056feb4e3506f1cfd808b5
2021-02-23 08:50:10 +01:00
jenkins-bot decbcd663f Merge "Fetch full document when diffing wikitext sections" 2021-02-23 00:32:20 +00:00
Bartosz Dziewoński ee7c5d9d1a Handle errors when fetching revisions for visual diffs
Bug: T171937
Change-Id: Ic300b0b2995ea3f8b93af1557e06503fc8470c7c
2021-02-23 01:21:55 +01:00
Ed Sanders 80c530fb56 Fetch full document when diffing wikitext sections
The full document is required to diff the reference list correctly.

Bug: T260008
Change-Id: I8d714be30051c94a725cd2678c547f57fa0a0c5e
2021-02-22 13:46:08 +00:00
Translation updater bot a4da38dcbe Localisation updates from https://translatewiki.net.
Change-Id: I41bc686d863baa1709e6d3cca088c27b3cbf650c
2021-02-22 08:54:16 +01:00
jenkins-bot d30aaa07a0 Merge "VisualEditorDataModule: Use ResourceLoaderContext::encodeJson" 2021-02-19 04:09:51 +00:00
Ed Sanders 87ab649e9d Add mw-content-container, mw-body classes to preview
Bug: T272751
Change-Id: I96440806ec9bce28cfb1b833c8fd913ba6770903
2021-02-18 21:33:36 +00:00
jenkins-bot f58e013917 Merge "Update VE core submodule to master (422cbd755)" 2021-02-18 21:29:41 +00:00
Bartosz Dziewoński e061cd5c3a VisualEditorDataModule: Use ResourceLoaderContext::encodeJson
Follow-up to Iab139c4dd69c9a16c9f4f9e2fd47ec76a9003152.

Change-Id: Ia16dad8b6c450f4cb095a67af1c1c2b487e8536b
2021-02-18 21:53:24 +01:00
Translation updater bot 4b34308bc0 Localisation updates from https://translatewiki.net.
Change-Id: Ib3f15f4cd49192e43424dd8ba3152308fa0a774c
2021-02-18 08:44:18 +01:00
Bartosz Dziewoński 41e6a8bd69 Update VE core submodule to master (422cbd755)
New changes:
422cbd755 Re-apply "ve.ce.Surface: Allow tabbing out of surfaces without indentation features"

Bug: T172694
Change-Id: Ib81933da272e6b08bc7fa6c8612e5a65a887cd45
2021-02-17 22:33:46 +00:00
Bartosz Dziewoński 2c5197f1b9 Fix Phan failure
The failure was:
includes/VisualEditorDataModule.php:37 PhanTypeMismatchArgument Argument 2 ($pretty) is ResourceLoader::inDebugMode() of type int but \FormatJson::encode() takes bool|false|string defined at ../../includes/json/FormatJson.php:115
includes/VisualEditorDataModule.php:41 PhanTypeMismatchArgument Argument 2 ($pretty) is ResourceLoader::inDebugMode() of type int but \FormatJson::encode() takes bool|false|string defined at ../../includes/json/FormatJson.php:115

Probably triggered by changes to MediaWiki in commit
Ieaf04e0c289646dd5d5b027b4f1f8278167b2d57.

Change-Id: Iab139c4dd69c9a16c9f4f9e2fd47ec76a9003152
2021-02-17 22:27:22 +01:00
Translation updater bot f269ad0bb6 Localisation updates from https://translatewiki.net.
Change-Id: Id328edb69cc0bf5ae01e00cf7bc0508caa85ecf8
2021-02-17 08:44:02 +01:00
jenkins-bot 82b6f9c27e Merge "Update VE core submodule to master (4cb1a3258)" 2021-02-16 14:40:18 +00:00
Translation updater bot 28b5271676 Localisation updates from https://translatewiki.net.
Change-Id: I3c5c443473fa1f77a6dbf5a724c6cf5e5fcfea1e
2021-02-16 08:31:45 +01:00
James D. Forrester 21f2b131f9 Update VE core submodule to master (4cb1a3258)
New changes:
40906ce3d Localisation updates from https://translatewiki.net.
bb7fd8081 ve.ui.ContentAction: Fix a documentation comment
4cb1a3258 ve.ce.GeneratedContentNode: Fix a typo in documentation comment

Change-Id: I9dd04b97c3e287466aa6de0ddcf09a851234f2b6
2021-02-15 16:53:22 -08:00
Translation updater bot 84da14f22f Localisation updates from https://translatewiki.net.
Change-Id: I7cf79e7641e90ec3bb670b8d7d823920492bedab
2021-02-15 10:06:57 +01:00
jenkins-bot 76f5f69663 Merge "Only show "Editing mode" preference when VE enabled (on SET beta-feature wikis)" 2021-02-12 17:28:25 +00:00
jenkins-bot de284c21e8 Merge "Stop showing the "Editing tabs" popup some time after SET switch" 2021-02-12 17:12:20 +00:00
Bartosz Dziewoński c2b3694f8a Update VE core submodule to master (a248cdbac)
New changes:
4f7bf062b Rebuild language lists
289073126 Update of 'Live Demo' URL in README
a248cdbac Localisation updates from https://translatewiki.net.

Bug: T274222
Change-Id: I6f22ad177521ad286d59dfdeb6d632b891b62470
2021-02-12 17:09:56 +01:00
jenkins-bot 5b4971ded9 Merge "Update VE core submodule to master (c5b65e31d)" 2021-02-12 15:50:33 +00:00
Translation updater bot af8d4afc7b Localisation updates from https://translatewiki.net.
Change-Id: If0a21f4dd88f3185b6d3a4902dce9609597e321e
2021-02-12 08:52:52 +01:00
Translation updater bot 4dffd99bc7 Localisation updates from https://translatewiki.net.
Change-Id: I0857022e8dc470853cf2078dad76788929e1f9ae
2021-02-11 08:40:50 +01:00
jenkins-bot 6392fda0f0 Merge "Ignore user prefs for enabling/disabling VE which are not settable" 2021-02-11 00:31:26 +00:00
jenkins-bot 776f78d9c2 Merge "Do not define contradictory user preferences for enabling/disabling VE" 2021-02-11 00:30:36 +00:00
jenkins-bot bf3cd04f0f Merge "Remove two unused configuration options" 2021-02-11 00:19:32 +00:00
Translation updater bot 53a55d2542 Localisation updates from https://translatewiki.net.
Change-Id: I3979d83a0f6614376a0cb83caf08ecd08ed99b12
2021-02-10 08:39:22 +01:00
James D. Forrester 1f00c1d89d Update VE core submodule to master (c5b65e31d)
New changes:
248513f69 build: Updating eslint-config-wikimedia to 0.18.1
5e1fb5c18 Localisation updates from https://translatewiki.net.
c5b65e31d Localisation updates from https://translatewiki.net.

Change-Id: I7ab5adba7a931226d324eb3c2ad280c6424b9663
2021-02-08 12:52:54 -08:00
jenkins-bot 4cc121a3ac Merge "tests: Remove legacy setup/teardown function naming from QUnit 1.x" 2021-02-08 19:36:10 +00:00
jenkins-bot db3738e47f Merge "tests: Align setup/teardown function naming with QUnit 2.x" 2021-02-08 19:24:46 +00:00
Translation updater bot 8a6616629e Localisation updates from https://translatewiki.net.
Change-Id: I6988a87ef5f30303a5f1c53a3f690c0e902e6f0a
2021-02-08 08:46:27 +01:00
James D. Forrester 34b8267c82 tests: Remove legacy setup/teardown function naming from QUnit 1.x
Bug: T170872
Depends-On: I992e16fae6fcf4d5e7f2d5109ff16a30b6e73882
Change-Id: I05c10178694bbd5f87e070beea6cad2e3cf5fa67
2021-02-05 11:35:04 -08:00
James D. Forrester d315a3af88 tests: Align setup/teardown function naming with QUnit 2.x
In QUnit 2, QUnit.setup()/QUnit.teardown() were renamed, to be called
QUnit.beforeEach()/QUnit.afterEach(). Though we are insulated by this
through MediaWiki's wrapper for backwards compatibility, changing the
names of the functions we pass to the new names allows us to drop the
old ones.

Bug: T170872
Change-Id: I5bfca33c1d4d920d54c2c54b483be78c61b6d0d7
2021-02-05 11:34:05 -08:00
Bartosz Dziewoński 263a4d1af7 Only show "Editing mode" preference when VE enabled (on SET beta-feature wikis)
Also, show the editing tabs dialog when appropriate.

Bug: T273189
Change-Id: I1293e0d69580372b23142493ee8905c18df40d23
2021-02-05 12:41:10 +00:00
Bartosz Dziewoński ef8e7945cc Stop showing the "Editing tabs" popup some time after SET switch
If someone has edited before the switch (2016-ish), never edited since
then, and try to edit again now, it's probably no longer helpful to
show them a popup dialog about a change that happened 5 years ago.

The immediate motivation for this, though, is T273189. We discovered a
bug with the preferences that, among other issues, caused this dialog
to not be shown in some cases where it should have been, and fixing
the bug now would cause it to be shown the on the next edit attempt.
If someone has edited before the switch (2016-ish), *and* edited since
then, and try to edit again now, it's definitely not helpful at all to
show them a popup dialog about a change that happened 5 years ago.

Bug: T273189
Change-Id: I4b5a3d8dbdf1c853eb39fcfc85a9fe87a4db0f21
2021-02-05 12:41:01 +00:00
Bartosz Dziewoński b91c8647fe Ignore user prefs for enabling/disabling VE which are not settable
We have two preferences used for enabling/disabling VE:
'visualeditor-enable' and 'visualeditor-betatempdisable'.
(And 'visualeditor-autodisable', which sometimes overrides
them both, but it's not relevant here.)

The user can only set 'visualeditor-enable' when VE is Beta Feature,
and they can only set 'visualeditor-betatempdisable' when it is not.

However, when deciding if VE should be loaded, we always checked both
of the preferences. This gives incorrect results when the preference
that is not supposed to be settable actually exists, due to being set
in GlobalPreferences on another wiki where it's settable.

A similar issue could occur if VE configuration is changed from Beta
Feature to a normal preference (or the other way around), and the
preference values for the previous configuration still persist.

Bug: T271434
Change-Id: I7399b3c516f762429050a662ac85d1d392392323
2021-02-05 12:40:51 +00:00
Bartosz Dziewoński 4b1f141511 Do not define contradictory user preferences for enabling/disabling VE
Depending on the config, we would sometimes define both the
'visualeditor-enable' and the 'visualeditor-betatempdisable'
preferences, even though they contradict each other.

Bug: T273188
Change-Id: I6ac7e4580bf232a5198ad8842f814bc381131e00
2021-02-05 12:40:38 +00:00
Bartosz Dziewoński b1fa5839c4 Remove two unused configuration options
* VisualEditorNewAccountEnableProportion
* VisualEditorAutoAccountEnable

Seemingly never used on Wikimedia wikis, and untested since 2016.

Bug: T273177
Change-Id: Ic132ef2091399fd223626ae307830f278e72ec01
2021-02-05 12:40:28 +00:00