Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
email2_type: "not_equals",
email2_assigned_to: 1});
report("#cc-bugs", key, forceUpdate,
{status: ["NEW", "UNCONFIRMED", "ASSIGNED", "REOPENED"],
email1: myUsername,
email1_type: "equals",
email1_cc: 1,
email2: myUsername,
email2_type: "not_equals",
email2_assigned_to: 1,
email2_creator: 1});
report("#fixed-bugs", key, forceUpdate,
{resolution: ["FIXED"],
changed_after: dateUtils.timeAgo(MS_PER_WEEK),
email1: myUsername,
email1_type: "equals",
email1_assigned_to: 1,
email1_creator: 1,
email1_cc: 1});
};
return bugzilla.search(
newTerms,
function(response) {
cache.set(cacheKey, response.bugs);
showBugs($(selector), response.bugs);
$(selector).find("h2").removeClass("loading");
});
});
}
const MS_PER_HOUR = 1000 * 60 * 60;
const MS_PER_DAY = MS_PER_HOUR * 24;
const MS_PER_WEEK = MS_PER_DAY * 7;
var defaults = {
changed_after: dateUtils.timeAgo(MS_PER_WEEK * 14)
};
function update(myUsername, isAuthenticated, forceUpdate) {
xhrQueue.clear();
var key = myUsername + "_" + (isAuthenticated ? "PRIVATE" : "PUBLIC");
report("#code-reviews", key, forceUpdate,
{status: ["NEW", "UNCONFIRMED", "ASSIGNED", "REOPENED"],
flag_DOT_requestee: myUsername});
report("#assigned-bugs", key, forceUpdate,
{status: ["NEW", "UNCONFIRMED", "ASSIGNED", "REOPENED"],
email1: myUsername,
email1_type: "equals",
email1_assigned_to: 1});