Skip to content

Commit f6a8e55

Browse files
Merge pull request #6620 from Countly/master-v25.03.18-into-next
Master v25.03.18 into next
2 parents 78693b8 + 5ed12f1 commit f6a8e55

File tree

7 files changed

+47
-18
lines changed

7 files changed

+47
-18
lines changed

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,26 @@
22
Dependencies:
33
- Remove SQLite
44

5+
## Version 25.03.18
6+
Fixes:
7+
- [server-stats] Add new events to breakdown
8+
- [server-stats] Fix breakdown event calculation
9+
10+
Enterprise Fixes:
11+
- [journeys] Fix for clearing content queue when journey is paused
12+
- [journeys] Fix for content shown event handling
13+
- [journeys] Fix for performance issues when huge number of journey instances created
14+
- [journeys] Update skip threshold when journeys are paused
15+
16+
Dependencies:
17+
- Bump get-random-values from 3.0.0 to 4.0.0
18+
- Bump puppeteer from 24.16.1 to 24.16.2
19+
520
## Version 25.03.17
621
Enterprise Fixes:
722
- [ldap] Recursive user search in ldap added
823
- [license] Update metric endpoint permission
9-
24+
1025
Dependencies:
1126
- Bump puppeteer from 24.16.2 to 24.17.0
1227

plugins/server-stats/api/parts/stats.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@ function increaseDataPoints(object, data) {
128128
object.ratings += (data.str || 0);
129129
object.apm += (data.apm || 0);
130130
object.custom += (data.ce || 0);
131-
object.cs = (data.cs || 0);
132-
object.ps = (data.ps || 0);
131+
object.cs += (data.cs || 0);
132+
object.ps += (data.ps || 0);
133+
object.llm += (data.llm || 0);
134+
object.aclk += (data.aclk || 0);
133135
if (data.dp) {
134136
object.dp += data.dp;
135137
}
@@ -241,7 +243,7 @@ function fetchDatapoints(db, filter, options, callback) {
241243
options.dateObjPrev = options.dateObjPrev || {};
242244
db.collection("server_stats_data_points").find(filter, {}).toArray(function(err, result) {
243245
var toReturn = {
244-
"all-apps": {"events": 0, "sessions": 0, "push": 0, "dp": 0, "change": 0, "crash": 0, "views": 0, "actions": 0, "nps": 0, "surveys": 0, "ratings": 0, "apm": 0, "custom": 0},
246+
"all-apps": {"events": 0, "sessions": 0, "push": 0, "dp": 0, "change": 0, "crash": 0, "views": 0, "actions": 0, "nps": 0, "surveys": 0, "ratings": 0, "apm": 0, "custom": 0, cs: 0, ps: 0, llm: 0, aclk: 0},
245247
};
246248

247249
if (err || !result) {
@@ -280,7 +282,7 @@ function fetchDatapoints(db, filter, options, callback) {
280282

281283
for (let i = 0; i < result.length; i++) {
282284
if (!toReturn[result[i].a]) {
283-
toReturn[result[i].a] = {"events": 0, "sessions": 0, "push": 0, "dp": 0, "change": 0, "crash": 0, "views": 0, "actions": 0, "nps": 0, "surveys": 0, "ratings": 0, "apm": 0, "custom": 0};
285+
toReturn[result[i].a] = {"events": 0, "sessions": 0, "push": 0, "dp": 0, "change": 0, "crash": 0, "views": 0, "actions": 0, "nps": 0, "surveys": 0, "ratings": 0, "apm": 0, "custom": 0, cs: 0, ps: 0, llm: 0, aclk: 0};
284286
}
285287
const dates = result[i].d;
286288
if (options.dateObj[result[i].m]) {

plugins/server-stats/frontend/public/javascripts/countly.models.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@
122122
"ps": periodData.ps,
123123
"cs": periodData.cs,
124124
"custom": periodData.custom,
125+
llm: periodData.llm,
126+
aclk: periodData.aclk,
125127
};
126128
let sortable = [];
127129
for (var event in brokendownEvents) {
@@ -152,7 +154,10 @@
152154
"ps": periodData.ps,
153155
"cs": periodData.cs,
154156
"custom": periodData.custom,
157+
llm: periodData.llm,
158+
aclk: periodData.aclk,
155159
},
160+
156161
"sorted_breakdown": sortable,
157162
});
158163
}
@@ -195,4 +200,4 @@
195200
}
196201
}
197202

198-
})(window.countlyDataPoints = window.countlyDataPoints || {}, jQuery);
203+
})(window.countlyDataPoints = window.countlyDataPoints || {}, jQuery);

plugins/server-stats/frontend/public/javascripts/countly.views.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ var DataPointsView = countlyVue.views.create({
5555
"custom": CV.i18n('server-stats.custom'),
5656
"cs": CV.i18n('server-stats.cs'),
5757
"ps": CV.i18n('server-stats.ps'),
58-
"push": CV.i18n('server-stats.push')
58+
"push": CV.i18n('server-stats.push'),
59+
llm: CV.i18n('server-stats.llm'),
60+
aclk: CV.i18n('server-stats.aclk'),
5961
};
6062
return eventsBreakdownEnum[key];
6163
},
@@ -310,9 +312,11 @@ var DataPointsView = countlyVue.views.create({
310312
item[CV.i18n('server-stats.events') + ": " + CV.i18n('server-stats.ratings')] = dataPoints[k].events_breakdown.ratings;
311313
item[CV.i18n('server-stats.events') + ": " + CV.i18n('server-stats.apm')] = dataPoints[k].events_breakdown.apm;
312314
item[CV.i18n('server-stats.events') + ": " + CV.i18n('server-stats.custom')] = dataPoints[k].events_breakdown.custom;
313-
item[CV.i18n('server-stats.push')] = dataPoints[k].events_breakdown.push;
314-
item[CV.i18n('server-stats.ps')] = dataPoints[k].events_breakdown.ps;
315-
item[CV.i18n('server-stats.cs')] = dataPoints[k].events_breakdown.cs;
315+
item[CV.i18n('server-stats.events') + ": " + CV.i18n('server-stats.push')] = dataPoints[k].events_breakdown.push;
316+
item[CV.i18n('server-stats.events') + ": " + CV.i18n('server-stats.ps')] = dataPoints[k].events_breakdown.ps;
317+
item[CV.i18n('server-stats.events') + ": " + CV.i18n('server-stats.cs')] = dataPoints[k].events_breakdown.cs;
318+
item[CV.i18n('server-stats.events') + ": " + CV.i18n('server-stats.llm')] = dataPoints[k].events_breakdown.llm;
319+
item[CV.i18n('server-stats.events') + ": " + CV.i18n('server-stats.aclk')] = dataPoints[k].events_breakdown.aclk;
316320
item[CV.i18n('server-stats.data-points')] = dataPoints[k]['data-points'];
317321
item[CV.i18n('server-stats.datapoint-change')] = dataPoints[k].change;
318322
table.push(item);
@@ -346,4 +350,4 @@ app.route("/manage/data-points/*id", 'data-points', function(id) {
346350
this.renderWhenReady(this.dataPointsView);
347351
});
348352

349-
app.addMenu("management", {code: "data-point", permission: "server-stats", url: "#/manage/data-points", text: "server-stats.data-points", priority: 40});
353+
app.addMenu("management", {code: "data-point", permission: "server-stats", url: "#/manage/data-points", text: "server-stats.data-points", priority: 40});

plugins/server-stats/frontend/public/localization/server-stats.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ server-stats.custom = Custom Events
2828
server-stats.cs = Consent event
2929
server-stats.ps = Push Sent event
3030
server-stats.push = Push Action event
31+
server-stats.llm = Countly AI event
32+
server-stats.aclk = Campaign event

ui-tests/package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"license": "ISC",
1212
"dependencies": {
13-
"@faker-js/faker": "^9.7.0",
13+
"@faker-js/faker": "^10.0.0",
1414
"base-64": "^1.0.0",
1515
"chai": "^5.1.1",
1616
"cypress-file-upload": "^5.0.8",

0 commit comments

Comments
 (0)