"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/systemlogs/api/api.js" between
countly-server-20.04.1.4.tar.gz and countly-server-20.04.1.5.tar.gz

About: countly-server is a mobile & web analytics, push notifications and crash reporting platform. This is the server part that collects and analyzes data while individual client SDKs (mobile, web or desktop) send the data. Community Edition (commercial Enterprise Edition also available).

api.js  (countly-server-20.04.1.4):api.js  (countly-server-20.04.1.5)
skipping to change at line 40 skipping to change at line 40
} }
if (reg) { if (reg) {
query.i = {"$regex": reg}; query.i = {"$regex": reg};
} }
//filter["$text"] = { "$search": "\""+params.qstring.sSearch+"\" " }; //filter["$text"] = { "$search": "\""+params.qstring.sSearch+"\" " };
} }
if (params.qstring.period) { if (params.qstring.period) {
countlyCommon.getPeriodObj(params); countlyCommon.getPeriodObj(params);
query.ts = countlyCommon.getTimestampRangeQuery(params, true); query.ts = countlyCommon.getTimestampRangeQuery(params, true);
} }
query._id = {$ne: "meta_v2"};
validate(params, function(paramsNew) { validate(params, function(paramsNew) {
var columns = [null, "ts", "u", "a", "ip", "i"]; var columns = [null, "ts", "u", "a", "ip", "i"];
common.db.collection('systemlogs').estimatedDocumentCount(functi on(err1, total) { common.db.collection('systemlogs').estimatedDocumentCount(functi on(err1, total) {
total--; total--;
var cursor = common.db.collection('systemlogs').find(query); var cursor = common.db.collection('systemlogs').find(query);
cursor.count(function(err2, count) { cursor.count(function(err2, count) {
if (paramsNew.qstring.iDisplayStart && parseInt(paramsNe w.qstring.iDisplayStart) !== 0) { if (paramsNew.qstring.iDisplayStart && parseInt(paramsNe w.qstring.iDisplayStart) !== 0) {
cursor.skip(parseInt(paramsNew.qstring.iDisplayStart )); cursor.skip(parseInt(paramsNew.qstring.iDisplayStart ));
} }
if (paramsNew.qstring.iDisplayLength && parseInt(paramsN ew.qstring.iDisplayLength) !== -1) { if (paramsNew.qstring.iDisplayLength && parseInt(paramsN ew.qstring.iDisplayLength) !== -1) {
skipping to change at line 293 skipping to change at line 292
} }
} }
} }
/** /**
* Function to compare and process record * Function to compare and process record
* @param {Object} ob - data object * @param {Object} ob - data object
*/ */
function processRecording(ob) { function processRecording(ob) {
var user = ob.user || ob.params.member; var user = ob.user || ob.params.member;
ob.data = ob.data || {};
if (typeof ob.data.before !== "undefined" && typeof ob.data.update !== " undefined") { if (typeof ob.data.before !== "undefined" && typeof ob.data.update !== " undefined") {
var data = {}; var data = {};
for (var i in ob.data) { for (var i in ob.data) {
if (i !== "before" && i !== "after") { if (i !== "before" && i !== "after") {
data[i] = ob.data[i]; data[i] = ob.data[i];
} }
} }
data.before = {}; data.before = {};
data.after = {}; data.after = {};
compareChanges(data, ob.data.before, ob.data.update); compareChanges(data, ob.data.before, ob.data.update);
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)