Commit graph

270 commits

Author SHA1 Message Date
Translation updater bot 2c334cfea6 Localisation updates from https://translatewiki.net.
Change-Id: I740f5148c0343a707193c4b3c0c6e77ae68e0036
2016-09-01 23:27:00 +02:00
Jdlrobson 4b53afc983 Don't hit the DB unnecessarily
If $wgRelatedArticlesShowInFooter is false, then we'll still test
whether or not the page is a disambiguation page with the Disambiguator
extension. Unfortunately, DisambiguatorHooks::isDisambiguationPage hits
the DB.

Order the tests in RelatedArticles\FooterHooks::onBeforePageDisplay from
least expensive to most expensive so that the DB is queried only when it
must be.

This version of the patch takes into account namespace.

Bug: T127068
Bug: T144409
Change-Id: Ie6ddaa4e9bd8326c8b84dc400b78e9a4f4d0d78d
2016-08-31 20:13:05 +01:00
Jdlrobson 9e67ef6590 Revert "Don't hit the DB unnecessarily"
We forgot how namespaces work:
Catchable fatal error: Argument 1 passed to RelatedArticles\FooterHooks::isDisambiguationPage() must be an instance of RelatedArticles\Title, Title given in /srv/mediawiki/php-master/extensions/RelatedArticles/includes/FooterHooks.php on line 48

This reverts commit 9ede8913c7.

Change-Id: If0f1481854815c12613771041685c7837a95ec65
2016-08-31 18:57:41 +00:00
Sam Smith 9ede8913c7 Don't hit the DB unnecessarily
If $wgRelatedArticlesShowInFooter is false, then we'll still test
whether or not the page is a disambiguation page with the Disambiguator
extension. Unfortunately, DisambiguatorHooks::isDisambiguationPage hits
the DB.

Order the tests in RelatedArticles\FooterHooks::onBeforePageDisplay from
least expensive to most expensive so that the DB is queried only when it
must be.

Bug: T127068
Change-Id: Ie3e7e410026cf354d831ae3c2134cfc0957eb8db
2016-08-31 09:38:34 +01:00
jenkins-bot 45f922fd66 Merge "Cache morelike requrests" 2016-08-29 22:40:41 +00:00
Baha b486500ba5 Add documentation
Bug: T127068
Change-Id: I5b640f8fe90cb2b07e7e5113e5dff398684c0c68
2016-08-29 15:59:57 -04:00
Baha 8afb02b64a Cache morelike requrests
The cache length is 24 hours.

Bug: T126455
Change-Id: Icd328f70ced16cc43fc0ad62c8a1f49ce71d6369
2016-08-29 15:54:53 -04:00
jenkins-bot 62af14cab1 Merge "Use 'classic_noboostlinks' search profile" 2016-08-29 19:44:13 +00:00
Baha 9ca3eb6dda Use 'classic_noboostlinks' search profile
Bug: T141398
Change-Id: I0db2d21fe9e4735e27af6071b2190a5829477278
2016-08-29 15:38:09 -04:00
jenkins-bot 5fcea14d15 Merge "Disable related articles on disambiguation pages" 2016-08-29 19:32:46 +00:00
Translation updater bot 40f01aef70 Localisation updates from https://translatewiki.net.
Change-Id: I36b40158dd7c27d6cb5565638ce3793b1dca7cdc
2016-08-27 23:27:15 +02:00
Sumit Asthana cea66f6cda Disable related articles on disambiguation pages
Uses DisambiguatorHooks to prevent related pages module addition on
disambiguation pages.

Bug: T127068
Change-Id: I166712d7e5df26ad00c725f3e4fe23ec074b3329
2016-08-24 04:12:45 +05:30
jenkins-bot 505f865f2e Merge "Allow skins a mechanism to decide on placement of related pages" 2016-08-23 20:16:04 +00:00
jdlrobson fc7799b9f3 Allow skins a mechanism to decide on placement of related pages
* If a footer-content element is present prepend there
* If no footer-content element given wrap the component in a container that is known to be compatible
with known skins - this has post-content class (for backwards compatiblity with
old Minerva skins) and a class to apply the correct margin to Vector

Bug: T141002
Change-Id: Iac11948f8f5fdaad45d51b905bb7494a84775710
2016-08-23 11:51:33 -07:00
Translation updater bot a5c6c993c8 Localisation updates from https://translatewiki.net.
Change-Id: If46ca3bff99c798e044e9d553446fd55650e370c
2016-08-19 22:42:12 +02:00
Translation updater bot 18c9afbeee Localisation updates from https://translatewiki.net.
Change-Id: I3d19d2b6dc21cd1b15b5c136510c5bd52520f875
2016-08-17 22:40:59 +02:00
Translation updater bot 9259df2e1f Localisation updates from https://translatewiki.net.
Change-Id: I966a08196ea568b3dea269dd9a9ecac8e919c2ce
2016-08-15 23:01:21 +02:00
Translation updater bot 5c2cbe2a16 Localisation updates from https://translatewiki.net.
Change-Id: I2c736fb796512b8c74b7af41793d87263b1d7b04
2016-08-10 22:38:59 +02:00
Translation updater bot c88aedae86 Localisation updates from https://translatewiki.net.
Change-Id: Ia34de69534ca214e4a559053879854ea285d0701
2016-08-09 22:32:22 +02:00
Translation updater bot 9b437d12b7 Localisation updates from https://translatewiki.net.
Change-Id: I07662832f7247f88f617f5945fb3603abe3ec096
2016-08-07 22:40:48 +02:00
jenkins-bot ca5c9326b7 Merge "Upgrade mediawiki_selenium in Gemfile" 2016-08-05 05:42:43 +00:00
jenkins-bot d2ccf02a81 Merge "Use SidebarBeforeOutput hook instead of echo'ing HTML" 2016-08-05 00:39:56 +00:00
jenkins-bot a255683055 Merge "Remove uncessary ParserClearState hook" 2016-08-05 00:39:55 +00:00
jdlrobson 323c250e54 Upgrade mediawiki_selenium in Gemfile
Tests on beta cluster will fail without this upgrade which handles
an HTTP to HTTPS redirect issue.

Bug: T142141
Change-Id: Id09a5c253df81c022883dede940a3a75e0325569
2016-08-04 15:49:40 -07:00
Translation updater bot de2a8a252f Localisation updates from https://translatewiki.net.
Change-Id: Ie0d866614dfb623b7eb70cbb1efe60f5ba6c3ac7
2016-08-03 22:40:50 +02:00
Translation updater bot c5c8f52731 Localisation updates from https://translatewiki.net.
Change-Id: I4754705f4006a427683f6a8c2778e5713003de3b
2016-08-02 22:45:22 +02:00
Translation updater bot bd64292527 Localisation updates from https://translatewiki.net.
Change-Id: I226202d6c8d05fa8277da260f268d03473187734
2016-07-31 22:26:10 +02:00
Kunal Mehta ac5448adcc Use SidebarBeforeOutput hook instead of echo'ing HTML
Ewwwww. This also fixes display in MonoBook.

Change-Id: I5c50722285a0dcf8af09674e3dd80e37128b279a
2016-07-29 20:34:40 -07:00
Kunal Mehta a4c4f6700f Remove uncessary ParserClearState hook
The ParserOutput object is already reset when state is reset, so there's no
point in setting or unsetting properties on it.

And since the only unit test was deleted, remove the hook for that too.

Change-Id: Idf12365e8c4b14e527d923edc1086bdaf349df32
2016-07-28 15:55:02 -07:00
Translation updater bot 5eecd58940 Localisation updates from https://translatewiki.net.
Change-Id: I4d36af291368fc6f4329ee51e6bf4f05555036e0
2016-07-24 22:25:29 +02:00
Florian 66a05df808 Remove 70px margin-bottom in mobile view
Combined with the padding top of the footer, this results in a
massive unused white space area between the related articles box
and the footer, which is now removed.

Extra points: Removed unused less import

Bug: T138185
Change-Id: Iaf008977bce3c003fe0fad7c16ed6bf94aef60f9
2016-07-19 18:29:45 +02:00
Translation updater bot c626837c2c Localisation updates from https://translatewiki.net.
Change-Id: I10f17f6eeb0b92f7a5c241e1c21951f769f6704d
2016-07-15 22:30:32 +02:00
Translation updater bot 6672ea7866 Localisation updates from https://translatewiki.net.
Change-Id: Ia77c0e3c25ee6589b666390f77dd62fe6d9a5539
2016-07-04 22:33:14 +02:00
Translation updater bot cf481f88cc Localisation updates from https://translatewiki.net.
Change-Id: I5161457f4186dc401018fcacc869389df9e99296
2016-06-06 22:59:49 +02:00
Translation updater bot 72f5d8f5d9 Localisation updates from https://translatewiki.net.
Change-Id: I9787d3f7df46a05a63cb17dabf9d1ef082aa3a43
2016-05-29 22:31:49 +02:00
Translation updater bot 2ab7d2c675 Localisation updates from https://translatewiki.net.
Change-Id: I9903f035b9fb5526bf0246919ae081c435df6ea5
2016-05-28 22:19:50 +02:00
Kunal Mehta b47b7432f9 build: Updating mediawiki/mediawiki-codesniffer to 0.7.2
Change-Id: Idec1615851f319aa63963cc15ec58a3123039f42
2016-05-27 18:23:53 -07:00
Gergő Tisza 7ec1fb9919 Update mediawiki_api gem to 1.7.1
Required for selenium test compatibility with AuthManager

Bug: T135884
Change-Id: I343b2775516416144e7b38840ec5b2985a9aa016
2016-05-26 12:36:56 +02:00
Translation updater bot d80f5c2d74 Localisation updates from https://translatewiki.net.
Change-Id: Ifb37e117bc0185bae553e5a7cc05a274a6014523
2016-05-21 22:23:40 +02:00
Translation updater bot c8adfb2a84 Localisation updates from https://translatewiki.net.
Change-Id: I48af917c11fdf9ae6b89f505871cec6405d0fc0b
2016-05-15 22:30:50 +02:00
Kunal Mehta d8329fdbb1 build: Updating mediawiki/mediawiki-codesniffer to 0.7.1
Also added "composer fix" command.

Change-Id: I3de1f2562898b76b56f5e7aa36b61088331ff52c
2016-05-09 16:59:15 -07:00
Translation updater bot b83b79cf91 Localisation updates from https://translatewiki.net.
Change-Id: I7b26db879465b4318363b419fadf81e01afd1b13
2016-05-01 23:20:03 +02:00
jenkins-bot f4c7177372 Merge "Migration of browsertests* Jenkins jobs to selenium* jobs" 2016-04-25 17:49:13 +00:00
Željko Filipin be874d472e Migration of browsertests* Jenkins jobs to selenium* jobs
selenium* jobs are a new way of running Ruby based Selenium tests. The
jobs are triggered daily.

Bug: T128190
Change-Id: I02fc3e8542d732ca728f47316a8e183ed28744e7
2016-04-25 19:35:20 +02:00
Tacsipacsi 1b952bde29 Add "noprint" class
Add "noprint" class to the <aside> element containing the suggestions and the header.

Bug: T123551
Change-Id: Ie7de692208028fe788ffd3c901ee4649390203a7
2016-04-17 21:45:10 +02:00
Translation updater bot ee50f7eb11 Localisation updates from https://translatewiki.net.
Change-Id: Ibff789225a2c7b9c806fcbb46c69453b65bebcb1
2016-04-12 22:56:48 +02:00
jhobs 40dc624620 Temporary fix for blurry images
Request double the size until pithumbmode is implemented.

Bug: T123549
Change-Id: I773c5a1a68c73f1ed721b1acc729db3d51b8b661
2016-04-11 21:36:06 +00:00
jenkins-bot fca776eafd Merge "Remove the isElementInViewport function" 2016-04-11 21:29:09 +00:00
Translation updater bot bb04b95ee0 Localisation updates from https://translatewiki.net.
Change-Id: I08354547b086fa12e0f9f118ec637003598fbce4
2016-04-11 22:39:04 +02:00
Translation updater bot 7635da662c Localisation updates from https://translatewiki.net.
Change-Id: Icb34285440794169c12e970ab54527694ab515a4
2016-04-10 20:07:25 +02:00