Kaldari has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/177149

Change subject: Making sure we can always test load WikiGrok
......................................................................

Making sure we can always test load WikiGrok

Allow bypassing the 1 WikiGrok answer per user per page limit if the
user is testing via the query string param.

Change-Id: I31e5e3f180fa0864bf27b2cf567b745551a3fb53
---
M javascripts/modules/wikigrok/init.js
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/49/177149/1

diff --git a/javascripts/modules/wikigrok/init.js 
b/javascripts/modules/wikigrok/init.js
index 6d3039f..d4d2bf6 100644
--- a/javascripts/modules/wikigrok/init.js
+++ b/javascripts/modules/wikigrok/init.js
@@ -84,8 +84,9 @@
        }
 
        if (
-               // show WikiGrok if the user hasn't already contributed to it 
on this page before
-               !hasUserAlreadyContributedToWikiGrok() &&
+               // Show WikiGrok if the user hasn't already contributed to it 
on this page before
+               // or they are testing WikiGrok (by using the query string 
override)
+               ( !hasUserAlreadyContributedToWikiGrok() || idOverride ) &&
                // WikiGrok is enabled and configured for this user
                versionConfig &&
                // We're not on the Main Page

-- 
To view, visit https://gerrit.wikimedia.org/r/177149
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I31e5e3f180fa0864bf27b2cf567b745551a3fb53
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to