jenkins-bot has submitted this change and it was merged.
Change subject: Conform to the MobileWebWikiGrok schema
......................................................................
Conform to the MobileWebWikiGrok schema
Make sure userEditCount is a number
Change-Id: I176178185201ff52f185b3ef9c2c583c204dc008
---
M javascripts/loggingSchemas/mobileWebWikiGrok.js
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Jhernandez: Looks good to me, approved
jenkins-bot: Verified
diff --git a/javascripts/loggingSchemas/mobileWebWikiGrok.js
b/javascripts/loggingSchemas/mobileWebWikiGrok.js
index d01ed69..9d00590 100644
--- a/javascripts/loggingSchemas/mobileWebWikiGrok.js
+++ b/javascripts/loggingSchemas/mobileWebWikiGrok.js
@@ -8,7 +8,7 @@
isLoggedIn: !user.isAnon()
};
// If the user is logged in, record username and edit count
- if ( !user.isAnon() ) {
+ if ( !user.isAnon() && typeof user.getEditCount() === 'number'
) {
options.userEditCount = user.getEditCount();
}
return M.log( 'MobileWebWikiGrok', $.extend( options, data ) );
--
To view, visit https://gerrit.wikimedia.org/r/172443
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I176178185201ff52f185b3ef9c2c583c204dc008
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Bmansurov <[email protected]>
Gerrit-Reviewer: Awjrichards <[email protected]>
Gerrit-Reviewer: Bmansurov <[email protected]>
Gerrit-Reviewer: Jhernandez <[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