Permalink
Browse files

Add user crc32 hash to issue reports to facilitate deduplication

Reviewers: josh

Reviewed By: josh

CC: alpert

Differential Revision: http://phabricator.khanacademy.org/D565
  • Loading branch information...
1 parent c08f771 commit 2894325ef23102f56539a0043769d0ddd0541e31 @beneater beneater committed Aug 9, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 khan-exercise.js
View
@@ -2240,9 +2240,10 @@ var Khan = (function() {
agent = navigator.userAgent,
mathjaxInfo = "MathJax is " + (typeof MathJax === "undefined" ? "NOT loaded" :
("loaded, " + (MathJax.isReady ? "" : "NOT ") + "ready, queue length: " + MathJax.Hub.queue.queue.length)),
+ userHash = "User hash: " + crc32(user),
sessionStorageInfo = (typeof sessionStorage === "undefined" || typeof sessionStorage.getItem === "undefined" ? "sessionStorage NOT enabled" : null),
warningInfo = $("#warning-bar-content").text(),
- parts = [$("#issue-body").val() || null, pathlink, historyLink, " " + JSON.stringify(guessLog), agent, sessionStorageInfo, mathjaxInfo, warningInfo],
+ parts = [$("#issue-body").val() || null, pathlink, historyLink, " " + JSON.stringify(guessLog), agent, sessionStorageInfo, mathjaxInfo, userHash, warningInfo],
body = $.grep(parts, function(e) { return e != null; }).join("\n\n");
var mathjaxLoadFailures = $.map(MathJax.Ajax.loading, function(info, script) {

0 comments on commit 2894325

Please sign in to comment.