"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "api/parts/data/events.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).

events.js  (countly-server-20.04.1.4):events.js  (countly-server-20.04.1.5)
skipping to change at line 254 skipping to change at line 254
if (currEvent.sum && common.isNumber(currEvent.sum)) { if (currEvent.sum && common.isNumber(currEvent.sum)) {
currEvent.sum = parseFloat(parseFloat(currEvent.sum).toFixed(5)); currEvent.sum = parseFloat(parseFloat(currEvent.sum).toFixed(5));
common.fillTimeObjectMonth(params, tmpEventObj, common.dbMap.sum, cu rrEvent.sum); common.fillTimeObjectMonth(params, tmpEventObj, common.dbMap.sum, cu rrEvent.sum);
} }
if (currEvent.dur && common.isNumber(currEvent.dur)) { if (currEvent.dur && common.isNumber(currEvent.dur)) {
currEvent.dur = parseFloat(currEvent.dur); currEvent.dur = parseFloat(currEvent.dur);
common.fillTimeObjectMonth(params, tmpEventObj, common.dbMap.dur, cu rrEvent.dur); common.fillTimeObjectMonth(params, tmpEventObj, common.dbMap.dur, cu rrEvent.dur);
} }
if (currEvent.count && common.isNumber(currEvent.count)) {
currEvent.count = parseInt(currEvent.count, 10);
}
common.fillTimeObjectMonth(params, tmpEventObj, common.dbMap.count, curr Event.count); common.fillTimeObjectMonth(params, tmpEventObj, common.dbMap.count, curr Event.count);
var dateIds = common.getDateIds(params); var dateIds = common.getDateIds(params);
tmpEventColl["no-segment" + "." + dateIds.month] = tmpEventObj; tmpEventColl["no-segment" + "." + dateIds.month] = tmpEventObj;
if (currEvent.segmentation) { if (currEvent.segmentation) {
for (let segKey in currEvent.segmentation) { for (let segKey in currEvent.segmentation) {
var tmpSegKey = ""; var tmpSegKey = "";
if (segKey.indexOf('.') !== -1 || segKey.substr(0, 1) === '$') { if (segKey.indexOf('.') !== -1 || segKey.substr(0, 1) === '$') {
skipping to change at line 283 skipping to change at line 287
continue; continue;
} }
//check if segment should be ommited //check if segment should be ommited
if (omitted_segments[currEvent.key] && Array.isArray(omitted_seg ments[currEvent.key]) && omitted_segments[currEvent.key].indexOf(segKey) !== -1) { if (omitted_segments[currEvent.key] && Array.isArray(omitted_seg ments[currEvent.key]) && omitted_segments[currEvent.key].indexOf(segKey) !== -1) {
continue; continue;
} }
if (whitelisted_segments[currEvent.key] && Array.isArray(whiteli sted_segments[currEvent.key]) && whitelisted_segments[currEvent.key].indexOf(seg Key) === -1) { if (whitelisted_segments[currEvent.key] && Array.isArray(whiteli sted_segments[currEvent.key]) && whitelisted_segments[currEvent.key].indexOf(seg Key) === -1) {
continue; continue;
} }
//if segKey is empty
if (segKey === "") {
continue;
}
if (pluginsGetConfig.event_segmentation_limit && if (pluginsGetConfig.event_segmentation_limit &&
appSegments[currEvent.key] && appSegments[currEvent.key] &&
appSegments[currEvent.key].indexOf(segKey) === -1 && appSegments[currEvent.key].indexOf(segKey) === -1 &&
appSegments[currEvent.key].length >= pluginsGetConfig.ev ent_segmentation_limit) { appSegments[currEvent.key].length >= pluginsGetConfig.ev ent_segmentation_limit) {
continue; continue;
} }
tmpEventObj = {}; tmpEventObj = {};
 End of changes. 2 change blocks. 
0 lines changed or deleted 8 lines changed or added

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