Skip to content

Commit 8d1d0f2

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/ui-tests/systeminformation-5.31.1
2 parents 75561bf + aac08bb commit 8d1d0f2

5 files changed

Lines changed: 27 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## Version 25.03.36
2+
Enterprise fixes:
3+
- [journey] Workflow fixes
4+
- [users] UI events table fixes
5+
16
## Version 25.03.35
27
Fixes:
38
- [core] Fixes for search bar in standart table component
@@ -6,6 +11,9 @@ Enterprise fixes:
611
- [journeys] Fixes for journey data updates on incoming data.
712
- [surveys] Return error message if invalid widget_id passed on template loading
813
- [users] Show content and journey events in user profile
14+
- [users] Display profile group name in table column
15+
- [users] When exporting user profiles, replace user name with device id if user name does not exist
16+
- [users] Use user profile endpoint for exporting data instead of the generic export endpoint
917

1018
## Version 25.03.34
1119
Fixes:

api/parts/data/exports.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ function transformValuesInObject(doc, mapper) {
285285
}
286286
return doc;
287287
}
288+
289+
exports.transformValuesInObject = transformValuesInObject;
290+
288291
/**
289292
* function to collect calues in order based on current order.
290293
* @param {array} values - arary to collect values

frontend/express/public/javascripts/countly/countly.common.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4559,10 +4559,11 @@
45594559
* @memberof countlyCommon
45604560
* @param {number} second number
45614561
* @param {number} [trimTo=5] number [1,5]
4562+
* @param {number} [digitsAfterComma=1] number of digits after comma for seconds, default is 1, if seconds is less than 0.1 it will be shown as 0
45624563
* @returns {string} return format "Xh Xm Xs", if trimTo is specified the length of the result is trimmed
45634564
* @example trimTo = 2, "Xh Xm Xs" result will be trimmed to "Xh Xm"
45644565
*/
4565-
countlyCommon.formatSecond = function(second, trimTo = 5) {
4566+
countlyCommon.formatSecond = function(second, trimTo = 5, digitsAfterComma = 1) {
45664567
var timeLeft = parseFloat(second);
45674568
var dict = [
45684569
{k: 'year', v: 31536000},
@@ -4571,16 +4572,15 @@
45714572
{k: 'minute', v: 60},
45724573
{k: 'second', v: 1}
45734574
];
4575+
if (digitsAfterComma < 0 || digitsAfterComma > 10) {
4576+
digitsAfterComma = 0;
4577+
}
45744578
var result = {year: 0, day: 0, hour: 0, minute: 0, second: 0};
45754579
var resultStrings = [];
45764580
for (var i = 0; i < dict.length && resultStrings.length < 3; i++) {
45774581
if (dict[i].k === "second") {
4578-
if (timeLeft < 0.1) {
4579-
result.second = 0;
4580-
}
4581-
else {
4582-
result.second = Math.round(timeLeft * 10) / 10;
4583-
}
4582+
4583+
result.second = parseFloat(timeLeft.toFixed(digitsAfterComma));
45844584
}
45854585
else {
45864586
result[dict[i].k] = Math.floor(timeLeft / dict[i].v);

plugins/views/frontend/public/javascripts/countly.models.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
var data = {
6464
"app_id": countlyCommon.ACTIVE_APP_ID,
6565
"method": "views",
66-
"period": countlyCommon.getPeriodForAjax(),
66+
"period": countlyCommon.getPeriodAsDateStrings(),
6767
"action": "getTotals"
6868
};
6969

@@ -169,7 +169,7 @@
169169
method: 'views',
170170
action: 'getTable',
171171
visibleColumns: JSON.stringify(context.state.params.selectedDynamicCols),
172-
period: countlyCommon.getPeriodForAjax(),
172+
period: countlyCommon.getPeriodAsDateStrings()
173173
};
174174
data = data || {};
175175
var selectedInfo = context.getters.selectedData;
@@ -710,11 +710,11 @@
710710
//graphData['appID'][]
711711
//Public Methods
712712
countlyViews.initialize = function() {
713-
if (_initialized && _period === countlyCommon.getPeriodForAjax() && _activeAppKey === countlyCommon.ACTIVE_APP_KEY) {
713+
if (_initialized && _period === countlyCommon.getPeriodAsDateStrings() && _activeAppKey === countlyCommon.ACTIVE_APP_KEY) {
714714
return this.refresh();
715715
}
716716

717-
_period = countlyCommon.getPeriodForAjax();
717+
_period = countlyCommon.getPeriodAsDateStrings();
718718
this.reset();
719719
if (!countlyCommon.DEBUG) {
720720
_activeAppKey = countlyCommon.ACTIVE_APP_KEY;
@@ -884,10 +884,10 @@
884884
return this.initialize();
885885
}
886886
var periodIsOk = true;
887-
if (_period !== countlyCommon.getPeriodForAjax()) {
887+
if (_period !== countlyCommon.getPeriodAsDateStrings()) {
888888
periodIsOk = false;
889889
}
890-
_period = countlyCommon.getPeriodForAjax();
890+
_period = countlyCommon.getPeriodAsDateStrings();
891891

892892
var selected = [];
893893

@@ -1025,7 +1025,7 @@
10251025
};
10261026

10271027
countlyViews.loadActionsData = function(view) {
1028-
_period = countlyCommon.getPeriodForAjax();
1028+
_period = countlyCommon.getPeriodAsDateStrings();
10291029

10301030
return $.when(
10311031
$.ajax({

plugins/views/frontend/public/javascripts/countly.views.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@
605605
getExportQuery: function() {
606606

607607
// var set = this.dtable.fnSettings();
608-
var requestPath = countlyCommon.API_PARTS.data.r + "?method=views&action=getExportQuery" + "&period=" + countlyCommon.getPeriodForAjax() + "&iDisplayStart=0&app_id=" + countlyCommon.ACTIVE_APP_ID + '&api_key=' + countlyGlobal.member.api_key;
608+
var requestPath = countlyCommon.API_PARTS.data.r + "?method=views&action=getExportQuery" + "&period=" + countlyCommon.getPeriodAsDateStrings() + "&iDisplayStart=0&app_id=" + countlyCommon.ACTIVE_APP_ID + '&api_key=' + countlyGlobal.member.api_key;
609609

610610

611611
var segment = this.$store.state.countlyViews.selectedSegment;
@@ -654,7 +654,7 @@
654654
openDrillViewDrawer: function() {
655655
let self = this;
656656
let args = {
657-
"period": countlyCommon.getPeriod(),
657+
"period": countlyCommon.getPeriodAsDateStrings(),
658658
"selectedSegment": this.filter.segment,
659659
"selectedSegmentValues": (this.filter.segmentKey && this.filter.segmentKey !== "all") ? [this.filter.segmentKey] : [],
660660
"selectedViews": this.$store.state.countlyViews.selectedViews.map(function(id) {

0 commit comments

Comments
 (0)