Commit graph

2424 commits

Author SHA1 Message Date
Kunal Mehta adcb193a1b Move GadgetResourceLoaderModule class to separate file
Change-Id: Ic7dde135168a04fc5916e5f44acd6b8639c8ce1a
2015-08-01 15:10:15 -07:00
Kunal Mehta e858bda308 Add abstract GadgetRepo and MediaWikiGadgetsDefinition implementation
GadgetRepo is an abstract class based off of the implementation in the
RL2 branch.

It is a singleton that provides basic methods to construct and interact
with Gadget objects.

The MediaWikiGadgetsDefinition class is an implementation of GadgetsRepo
that parses the "MediaWiki:Gadgets-definition" page for gadget
definitions.

Tests were left in place to demonstrate that no functional changes have
been made aside from relocation of code. Some tests should be moved to
separate files in the future.

Bug: T106176
Change-Id: I3e802889f6f495783f4dbac65c2a8cefa824a778
2015-08-01 15:10:07 -07:00
Translation updater bot 40c8603881 Localisation updates from https://translatewiki.net.
Change-Id: I2212b4f37036c6df62b7058f62e250e6d1c7ba77
2015-07-24 21:07:03 +02:00
jenkins-bot e60c8f6686 Merge "Removed caching config variables and always enable caching" 2015-07-23 22:48:17 +00:00
Aaron Schulz 2bd2ef99c5 Removed caching config variables and always enable caching
* APC will be used if around as a tier 1 cache
* This also makes it easier to have mixed zend/hhvm servers

Bug: T106743
Change-Id: Ie9f234753f78215441474dddc4eadedbd2b76ad7
2015-07-23 15:26:06 -07:00
Translation updater bot 4acdb1ac23 Localisation updates from https://translatewiki.net.
Change-Id: Ib64ecd66779f07946bffa68ee351d3e46315c719
2015-07-22 22:14:36 +02:00
jenkins-bot 5084381a2f Merge "Revert "Add $wgGadgetsEnableLegacyGadgets to allow disabling of legacy gadgets"" 2015-07-18 07:45:21 +00:00
Alex Monk a51bb552dc Revert "Add $wgGadgetsEnableLegacyGadgets to allow disabling of legacy gadgets"
This reverts commit 036aa3d876.

Change-Id: I90840cbdaa1d6eabde3fffd113dc7a945a876e77
2015-07-18 07:44:31 +00:00
jenkins-bot 022ed2de68 Merge "Add $wgGadgetsEnableLegacyGadgets to allow disabling of legacy gadgets" 2015-07-18 07:40:47 +00:00
jenkins-bot e428aeb0d8 Merge "Refactor Gadget construction process" 2015-07-18 07:31:57 +00:00
Kunal Mehta d537e50256 Refactor Gadget construction process
The current method of setting private properties prevents the Gadget
object from being constructed by another class (like a GadgetRepo).

Instead, lets pass in arguments in an array.

Change-Id: I86853c72dfb323fb3e54be9ecff85973e30fe781
2015-07-18 02:26:25 -05:00
Translation updater bot 0f2159b360 Localisation updates from https://translatewiki.net.
Change-Id: I8a8ffb28a752ab658c3e4ed28b6e5f59f0663f64
2015-07-15 21:40:18 +02:00
Translation updater bot 7388765190 Localisation updates from https://translatewiki.net.
Change-Id: Ib4f1a8c1c7dfcae42ca8c4ac70d7af4ff6a3e847
2015-07-09 22:02:25 +02:00
Translation updater bot ecc390f14f Localisation updates from https://translatewiki.net.
Change-Id: I0092d8103ddd13ed2ded36abbbdccf71d7907433
2015-07-07 22:08:41 +02:00
Kunal Mehta 036aa3d876 Add $wgGadgetsEnableLegacyGadgets to allow disabling of legacy gadgets
Follows-up 192d37b19a.

So we can turn them off in preparation of Gadgets 2.0, which
doesn't support them at all.

Change-Id: I98b4146579ccbbfcad8b83a51cc095da1fad673c
2015-07-04 01:25:26 +01:00
Translation updater bot 9b08493941 Localisation updates from https://translatewiki.net.
Change-Id: I0a3d8189ae07b75ec1fd9a4e69e1f1f1b8a49963
2015-07-02 21:24:28 +02:00
Translation updater bot c875641ad3 Localisation updates from https://translatewiki.net.
Change-Id: Idf69daf1900666aeb88604e91b3bd3ef30f10997
2015-06-30 21:21:52 +02:00
Alex Monk ca8880a634 Set 644 file permissions on .php files
Bug: T104039
Change-Id: I5a040819ae53ce9e4da7ed542ed1f74253129a86
2015-06-27 18:50:31 +01:00
Ricordisamoa d072ac25a0 API: set 'legacyscripts' to whether a gadget includes non-ResourceLoader JS
Change-Id: I0b7e01b5164b564e1406c0dd05be67b0610dbe96
2015-06-27 02:53:26 +02:00
Translation updater bot face23d90e Localisation updates from https://translatewiki.net.
Change-Id: I1a072da8aec3b75f9c4b070afb3d4cac2bd35c22
2015-06-25 20:43:19 +02:00
Translation updater bot 6124148bfb Localisation updates from https://translatewiki.net.
Change-Id: I08373ad15f3875ba4a4974470903c72c1ca7fc41
2015-06-23 21:26:15 +02:00
Translation updater bot 1a15e50db6 Localisation updates from https://translatewiki.net.
Change-Id: I88c4559bd99854565bad26a9c52921e0d6f9a888
2015-06-21 19:59:28 +02:00
jenkins-bot ad927218bc Merge "build: Configure banana-checker and jsonlint" 2015-06-17 19:14:45 +00:00
Kunal Mehta a6b1a9c5e6 build: Configure banana-checker and jsonlint
Change-Id: If8853a6c49398d5769f2b20bd5d81c83f25f0b74
2015-06-17 19:52:25 +01:00
Thiemo Mättig 5b1f8a1e50 Update api module constructors
This also replaces a deprecated function and adds some code docs.

Change-Id: I22c77d370469c10cad5d504b06280e933eeeeeff
2015-06-17 20:42:20 +02:00
Translation updater bot cf0f2310a8 Localisation updates from https://translatewiki.net.
Change-Id: I05e7e25185b9ff45a7342e481f5a0ced1e2d7628
2015-06-14 21:07:08 +02:00
Translation updater bot d009c62ebb Localisation updates from https://translatewiki.net.
Change-Id: I92de30733cf954e97cf8fe8908170e1f54592a9f
2015-06-11 21:11:51 +02:00
Translation updater bot 1d6bcc4d4b Localisation updates from https://translatewiki.net.
Change-Id: Ie5fa70e0a2dd5599b226e2d909b48ef569721937
2015-06-09 22:46:29 +02:00
Andrew Green da30614641 Update GadgetResourceLoaderModule::getDependencies method signature
This change is for compatibility with Iee61e5b527 in MediaWiki.

Change-Id: I0a10fb0cbf17d095ece493e744296caf13dcee02
2015-06-09 02:28:53 +01:00
Translation updater bot 46fb969818 Localisation updates from https://translatewiki.net.
Change-Id: I8382545839bc81def2d587cd7fda981ae0418cff
2015-06-06 22:18:12 +02:00
Translation updater bot 71a555dc41 Localisation updates from https://translatewiki.net.
Change-Id: I2b0caad26aae0336fc3fab96264458ca3100cb6e
2015-06-05 21:03:44 +02:00
Translation updater bot b7ca9fb7b1 Localisation updates from https://translatewiki.net.
Change-Id: I3836750863c45830af5193166dbe08a74fd95cd3
2015-06-02 21:41:46 +02:00
Aaron Schulz 68b8b406aa Added a blind 10 second TTL to loadStructuredList() for local caching
Change-Id: Ieb1e91f3fbabb279969017d741ae2825502b2ad5
2015-05-29 14:35:46 -07:00
Kunal Mehta 2c03c5203e Set manifest_version in extension.json
Bug: T100745
Change-Id: I9b0e0b774be8396399043109d68b1e1294ced9a7
2015-05-28 20:39:10 -07:00
jenkins-bot 6961c927e3 Merge "Acknowledge that gadgets have their position explicitly defined" 2015-05-28 18:46:11 +00:00
Translation updater bot 5b722a4f8e Localisation updates from https://translatewiki.net.
Change-Id: Ia31ff1c56935e71c4c3d6296772dba8fce4a5e4b
2015-05-27 22:24:55 +02:00
Translation updater bot 54b2e4bd3e Localisation updates from https://translatewiki.net.
Change-Id: I46148ad24ade5e0c5ad638218cceb8322a85c8c0
2015-05-26 22:23:20 +02:00
Gilles Dubuc 3b141e7276 Acknowledge that gadgets have their position explicitly defined
Bug: T97410
Change-Id: Ie5dff4f63a0068f47daf4e6d1fcc7a99d008ca52
2015-05-26 12:08:01 +02:00
Translation updater bot 9383a1fd20 Localisation updates from https://translatewiki.net.
Change-Id: If1f9ca466b3389b75307e133f27a249462798409
2015-05-25 22:28:53 +02:00
Translation updater bot 465f7ac525 Localisation updates from https://translatewiki.net.
Change-Id: I67309cf4b4d00bfc62ea89fd4fbe678392df974a
2015-05-24 23:00:05 +02:00
Aaron Schulz 11e1c51d6b Conversion to using WAN cache
* Bumped the key version due to key wrapping
* Removed isValidList() gived the key versioning
* Follow up ba1311c323 by making APC viable;
  previously, definition purges would not work

Bug: T93141
Change-Id: I6da3eede044bf4b840b3f9656a1ae8105941dc6b
2015-05-23 23:04:06 +00:00
Translation updater bot 92ce9de98f Localisation updates from https://translatewiki.net.
Change-Id: I4d7527ccdf3732580ff7038ad57324263c4a45de
2015-05-20 22:12:09 +02:00
Translation updater bot bd3c6b9b9b Localisation updates from https://translatewiki.net.
Change-Id: I96eae508e0c7c5cd8f060bf12294531deae0bee9
2015-05-19 22:26:02 +02:00
Translation updater bot c0829f0e9c Localisation updates from https://translatewiki.net.
Change-Id: Icd8f228033dfb93ed88cdc280c35084f94b6e1c9
2015-05-18 22:16:10 +02:00
Translation updater bot 5cda2d0e12 Localisation updates from https://translatewiki.net.
Change-Id: I108eda75599612f821e164bddde775930c30085e
2015-05-17 22:07:20 +02:00
umherirrender 6c25618f55 Replace deprecated $wgSpecialPageGroups
$wgSpecialPageGroups is deprecated since 1.21
override SpecialPage::getGroupName instead

Change-Id: I3fe4906a422fdf7f6d8ba51b39b7f45c01c3d772
2015-05-15 21:55:50 +02:00
Translation updater bot 5347cd5d38 Localisation updates from https://translatewiki.net.
Change-Id: Ifec7da453782c80a99c027c81d46b077163e65b0
2015-05-15 21:41:45 +02:00
Translation updater bot c270882cdd Localisation updates from https://translatewiki.net.
Change-Id: Ie889c03bd4cbd9fa68f79bac35528f8ebcaf57f4
2015-05-14 22:05:15 +02:00
jenkins-bot a6c6fc587f Merge "Make the ObjectCache implementation used for Gadget def's configurable" 2015-05-12 23:44:45 +00:00
Translation updater bot 3dbdc806a0 Localisation updates from https://translatewiki.net.
Change-Id: I90185bf8499d8e97724a80204b227aa44969b058
2015-05-12 22:18:07 +02:00