Skip to content

Commit 78693b8

Browse files
Merge pull request #6589 from Countly/master-v25.03.17-into-next
Master v25.03.17 into next
2 parents 0ef2c7d + 3d4adc6 commit 78693b8

File tree

11 files changed

+216
-197
lines changed

11 files changed

+216
-197
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
steps:
3939
- name: Checkout repository
40-
uses: actions/checkout@v4
40+
uses: actions/checkout@v5
4141

4242
# Initializes the CodeQL tools for scanning.
4343
- name: Initialize CodeQL

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323

2424
- name: Enable command line
2525
shell: bash
@@ -45,7 +45,7 @@ jobs:
4545
runs-on: ubuntu-latest
4646
steps:
4747
- name: Check out the repo
48-
uses: actions/checkout@v4
48+
uses: actions/checkout@v5
4949

5050
- name: Log in to Docker Hub
5151
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1

.github/workflows/docker-image.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out the repo
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v5
1616

1717
- name: Set output
1818
id: vars
@@ -43,7 +43,7 @@ jobs:
4343
runs-on: ubuntu-latest
4444
steps:
4545
- name: Check out the repo
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@v5
4747

4848
- name: Set output
4949
id: vars
@@ -74,7 +74,7 @@ jobs:
7474
runs-on: ubuntu-latest
7575
steps:
7676
- name: Check out the repo
77-
uses: actions/checkout@v4
77+
uses: actions/checkout@v5
7878

7979
- name: Set output
8080
id: vars
@@ -105,7 +105,7 @@ jobs:
105105
runs-on: ubuntu-latest
106106
steps:
107107
- name: Check out the repo
108-
uses: actions/checkout@v4
108+
uses: actions/checkout@v5
109109

110110
- name: Set output
111111
id: vars

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# Steps represent a sequence of tasks that will be executed as part of the job
2727
steps:
2828
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v5
3030

3131
- name: Copy code
3232
shell: bash
@@ -96,7 +96,7 @@ jobs:
9696
COUNTLY_CONFIG_API_PREVENT_JOBS: true
9797

9898
steps:
99-
- uses: actions/checkout@v4
99+
- uses: actions/checkout@v5
100100

101101
- name: Copy code
102102
shell: bash
@@ -153,7 +153,7 @@ jobs:
153153
COUNTLY_CONFIG_API_PREVENT_JOBS: true
154154

155155
steps:
156-
- uses: actions/checkout@v4
156+
- uses: actions/checkout@v5
157157

158158
- name: Prepare tests
159159
shell: bash
@@ -207,7 +207,7 @@ jobs:
207207
COUNTLY_CONFIG_API_PREVENT_JOBS: true
208208

209209
steps:
210-
- uses: actions/checkout@v4
210+
- uses: actions/checkout@v5
211211

212212
- name: Copy code
213213
shell: bash
@@ -270,7 +270,7 @@ jobs:
270270
COUNTLY_CONFIG_API_PREVENT_JOBS: true
271271

272272
steps:
273-
- uses: actions/checkout@v4
273+
- uses: actions/checkout@v5
274274

275275
- name: Install Chrome
276276
shell: bash

.github/workflows/release_notice.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
env:
3131
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE }}
3232
- name: Send custom JSON data to Discord
33-
uses: sarisia/[email protected].3
33+
uses: sarisia/[email protected].4
3434
with:
3535
webhook: ${{ secrets.DISCORD_WEBHOOK_URL }}
3636
nodetail: true

.github/workflows/stable-je-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323

2424
- name: Deploy server
2525
shell: bash

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
Dependencies:
33
- Remove SQLite
44

5+
## Version 25.03.17
6+
Enterprise Fixes:
7+
- [ldap] Recursive user search in ldap added
8+
- [license] Update metric endpoint permission
9+
10+
Dependencies:
11+
- Bump puppeteer from 24.16.2 to 24.17.0
12+
513
## Version 25.03.16
614
Enterprise Fixes:
715
- [journeys] Fix for skip threshold check in concurrent requests

package-lock.json

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

plugins/server-stats/scripts/top.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,23 @@ if (myArgs[0] === "help") {
88
}
99
pluginManager.dbConnection().then((db) => {
1010
stats.getTop(db, {}, function(toReturn) {
11-
var apps = Object.keys(toReturn);
11+
var apps = toReturn.map(o => o.a);
1212
db.collection("apps").find({_id: {$in: apps.map(id => db.ObjectID(id))}}, {projection: {name: 1}}).toArray(function(err, appResult) {
1313
if (appResult) {
1414
for (let i = 0; i < appResult.length; i++) {
1515
appNames[appResult[i]._id] = appResult[i].name;
1616
}
1717
}
1818
db.close();
19-
var res = [];
20-
for (let app in toReturn) {
21-
if (toReturn[app]) {
22-
toReturn[app].app = stats.getAppName(app, appNames);
23-
res.push(toReturn[app]);
19+
for (let i = 0; i < toReturn.length; i++) {
20+
if (toReturn[i].a) {
21+
toReturn[i].a = stats.getAppName(toReturn[i].a, appNames);
2422
}
2523
}
26-
res.sort(function(a, b) {
27-
return b["data-points"] - a["data-points"];
24+
toReturn.sort(function(a, b) {
25+
return b["v"] - a["v"];
2826
});
29-
console.table(res, ["app", "data-points"]);
27+
console.table(toReturn, ["a", "v"]);
3028
});
3129
});
32-
});
30+
});

0 commit comments

Comments
 (0)