Kaldari has submitted this change and it was merged.
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(-)
Approvals:
Kaldari: Verified; Looks good to me, approved
Bmansurov: Looks good to me, approved
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: merged
Gerrit-Change-Id: I31e5e3f180fa0864bf27b2cf567b745551a3fb53
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>
Gerrit-Reviewer: Awjrichards <[email protected]>
Gerrit-Reviewer: Bmansurov <[email protected]>
Gerrit-Reviewer: Kaldari <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits