Skip to content

Commit 3f2788d

Browse files
authored
Merge branch 'master' into anna/master
2 parents 8ce15e0 + fb3b602 commit 3f2788d

File tree

22 files changed

+247
-206
lines changed

22 files changed

+247
-206
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ jobs:
247247
runs-on: ubuntu-latest
248248

249249
strategy:
250+
fail-fast: false
250251
matrix:
251252
test_type: [dashboard, onboarding]
252253

@@ -338,6 +339,11 @@ jobs:
338339
working-directory: /opt/countly/ui-tests/cypress
339340
run: |
340341
ARTIFACT_ARCHIVE_NAME="$(date '+%Y%m%d-%H.%M')_${GITHUB_REPOSITORY#*/}_CI#${{ github.run_number }}_${{ matrix.test_type }}.tar.gz"
342+
341343
mkdir -p screenshots videos downloads
342-
tar zcvf "$ARTIFACT_ARCHIVE_NAME" screenshots videos downloads
344+
find screenshots videos downloads -type d -empty -delete
345+
346+
TAR_TARGETS=$(ls -d screenshots videos downloads 2>/dev/null || true)
347+
348+
tar zcvf "$ARTIFACT_ARCHIVE_NAME" $TAR_TARGETS
343349
curl -o /tmp/uploader.log -u "${{ secrets.BOX_UPLOAD_AUTH }}" ${{ secrets.BOX_UPLOAD_PATH }} -T "$ARTIFACT_ARCHIVE_NAME"

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## Version 25.03.30
2+
Fixes:
3+
- [journeys] Save to profiile block implemented
4+
- [push] Better FCM error handling
5+
6+
## Version 25.03.29
7+
Fixes:
8+
- [core] Do not output password in logs on mongodb connection initialisation error
9+
- [core] Hide error details on render error from response
10+
- [dashboards] Do not show error if request is cancelled.
11+
- [dbviewer] Hide api_key from requests
12+
- [events] Do not throw error in UI on returned group data if there is no segmentation set
13+
14+
Enterprise Fixes:
15+
- [drill] Fixed timeline recalculation
16+
- [surveys] Do not fetch survey meta data if plugin is disabled
17+
118
## Version 25.03.28
219
Fixes:
320
- [alerts] Add alert interval validation in the frontend

api/configextender.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ const OVERRIDES = {
5353
CA: 'ca',
5454
},
5555
},
56-
56+
COOKIE: {
57+
SAMESITE: 'sameSite',
58+
HTTPONLY: 'httpOnly',
59+
MAXAGE: 'maxAge',
60+
MAXAGELOGIN: 'maxAgeLogin',
61+
},
5762
MAIL: {
5863
CONFIG: {
5964
IGNORETLS: "ignoreTLS"

api/jobs/ping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class PingJob extends job.Job {
5151

5252
if (days > 0) {
5353
//calculate seconds timestamp of days before today
54-
var startTs = Math.round((new Date().getTime() - (30 * 24 * 60 * 60 * 1000)) / 1000);
54+
var startTs = Math.round((new Date().getTime() - (days * 24 * 60 * 60 * 1000)) / 1000);
5555

5656
//sync server events - use aggregation pipeline to group by day and action on MongoDB side
5757
var aggregationPipeline = [

api/parts/mgmt/tracker.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,13 @@ tracker.collectServerData = async function() {
249249
edition = "Enterprise";
250250
}
251251
props.edition = edition;
252+
props.hosting = "self-hosted";
253+
if (props.edition === "Flex") {
254+
props.hosting = "flex";
255+
}
256+
else if (props.plugins.includes("tracker")) {
257+
props.hosting = "countly-hosted";
258+
}
252259
if (common.db.build && common.db.build.version) {
253260
props.mongodb = common.db.build.version;
254261
}

api/parts/mgmt/users.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,9 @@ usersApi.checkNoteEditPermission = async function(params) {
861861
if (error) {
862862
return reject(false);
863863
}
864+
if (!note) {
865+
return resolve(false);
866+
}
864867
const globalAdmin = params.member.global_admin;
865868
const isAppAdmin = hasAdminAccess(params.member, params.qstring.app_id);
866869
const noteOwner = (note.owner + '' === params.member._id + '');

api/utils/common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ common.validateArgs = function(args, argProperties, returnErrors) {
10711071
}
10721072

10731073
if (argProperties[arg]['max-length']) {
1074-
if (args[arg].length > argProperties[arg]['max-length']) {
1074+
if (args[arg] && args[arg].length > argProperties[arg]['max-length']) {
10751075
if (returnErrors) {
10761076
returnObj.errors.push("Length of " + arg + " is greater than max length value");
10771077
returnObj.result = false;
@@ -1084,7 +1084,7 @@ common.validateArgs = function(args, argProperties, returnErrors) {
10841084
}
10851085

10861086
if (argProperties[arg]['min-length']) {
1087-
if (args[arg].length < argProperties[arg]['min-length']) {
1087+
if (args[arg] && args[arg].length < argProperties[arg]['min-length']) {
10881088
if (returnErrors) {
10891089
returnObj.errors.push("Length of " + arg + " is lower than min length value");
10901090
returnObj.result = false;

api/utils/countly-request/package-lock.json

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

countly-community

Lines changed: 0 additions & 1 deletion
This file was deleted.

package-lock.json

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

0 commit comments

Comments
 (0)