Skip to content

Commit d26cca1

Browse files
author
Cookiezaurs
committed
Merge branch 'anna/next' of https://github.com/Countly/countly-server into anna/next
2 parents bf41abe + 61fa968 commit d26cca1

File tree

72 files changed

+1794
-953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1794
-953
lines changed

.eslintrc.json

+56-8
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,55 @@
121121
]
122122
},
123123
"overrides": [
124+
{
125+
"files": [
126+
"plugins/content/frontend/vite.config.js",
127+
"plugins/journey_engine/frontend/vite.config.js",
128+
"plugins/journey_engine/frontend/vite-manifest.js"
129+
],
130+
"rules": {
131+
"no-console": "off"
132+
},
133+
"parserOptions": {
134+
"ecmaVersion": 2023,
135+
"sourceType": "module"
136+
},
137+
"env": {
138+
"node": true,
139+
"es2023": true
140+
}
141+
},
142+
{
143+
"files": [
144+
"plugins/content/frontend/content-blocks/**/*.js",
145+
"plugins/journey_engine/frontend/builder/**/*.js"
146+
],
147+
"extends": [
148+
"eslint:recommended",
149+
"plugin:vue/vue3-essential",
150+
"plugin:vue/vue3-strongly-recommended",
151+
"plugin:vue/vue3-recommended"
152+
],
153+
"rules": {
154+
"no-console": ["error"],
155+
"@stylistic/quotes": ["error", "single"],
156+
"@stylistic/quote-props": ["error", "as-needed"]
157+
},
158+
"plugins": [
159+
"vue",
160+
"@stylistic"
161+
],
162+
"parserOptions": {
163+
"ecmaVersion": 2023,
164+
"sourceType": "module",
165+
"extraFileExtensions": [".vue"]
166+
},
167+
"env": {
168+
"node": true,
169+
"es2023": true,
170+
"es6": true
171+
}
172+
},
124173
{
125174
"files": [
126175
"frontend/express/public/javascripts/countly/*.js",
@@ -208,7 +257,7 @@
208257
],
209258
"excludedFiles": "plugins/*/frontend/public/**/*.js",
210259
"env": {
211-
"es2020": true,
260+
"es2023": true,
212261
"node": true
213262
},
214263
"parserOptions": {
@@ -285,11 +334,11 @@
285334
],
286335
"excludedFiles": "plugins/*/tests.js",
287336
"env": {
288-
"es2020": true,
337+
"es2023": true,
289338
"node": true
290339
},
291340
"parserOptions": {
292-
"ecmaVersion": 2020
341+
"ecmaVersion": 2023
293342
},
294343
"rules": {
295344
"no-console": "off"
@@ -302,13 +351,12 @@
302351
"plugins/*/tests.js"
303352
],
304353
"env": {
305-
"es2020": true,
354+
"es2023": true,
306355
"node": true,
307356
"mocha": true
308357
},
309358
"parserOptions": {
310-
"ecmaVersion": 2020,
311-
"sourceType": "module"
359+
"ecmaVersion": 2023
312360
},
313361
"rules": {
314362
"no-console": "off",
@@ -321,7 +369,7 @@
321369
"ui-tests/**/*.js"
322370
],
323371
"env": {
324-
"es2020": true,
372+
"es2023": true,
325373
"node": true,
326374
"mocha": true
327375
},
@@ -330,7 +378,7 @@
330378
"cy": "readonly"
331379
},
332380
"parserOptions": {
333-
"ecmaVersion": 2020,
381+
"ecmaVersion": 2023,
334382
"sourceType": "module"
335383
},
336384
"rules": {

.github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: CI
66
on:
77
# Triggers the workflow on push or pull request events but only for the master branch
88
pull_request:
9-
branches: [ master, next ]
9+
branches: [ master, next, release.24.10 ]
1010

1111
# Allows you to run this workflow manually from the Actions tab
1212
workflow_dispatch:
@@ -302,7 +302,7 @@ jobs:
302302
cd ui-tests
303303
npm install
304304
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" \
305-
npm run cy:run:dashboard --headless --no-sandbox --disable-gpu --disable-dev-shm-usage
305+
npm run cy:run:dashboard
306306
307307
- name: Upload UI tests artifacts
308308
if: ${{ failure() }}
@@ -381,7 +381,7 @@ jobs:
381381
cd ui-tests
382382
npm install
383383
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" \
384-
npm run cy:run:onboarding --headless --no-sandbox --disable-gpu --disable-dev-shm-usage
384+
npm run cy:run:onboarding
385385
386386
- name: Upload UI tests artifacts
387387
if: ${{ failure() }}

CHANGELOG.md

+50-32
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
1+
## Version 24.10.3
2+
Fixes:
3+
- [dashboards] Fixing issue where dashboard widgets go into single column
4+
5+
Security:
6+
- Bump puppeteer from 17.1.3 to 23.8.0
7+
- Bump express from 4.21.0 to 4.21.1
8+
- Bump sass from 1.79.4 to 1.81.0
9+
- Bump express-session from 1.18.0 to 1.18.1
10+
- Bump cross-spawn from 7.0.3 to 7.0.6 in /ui-tests
11+
- Bump cross-spawn from 7.0.3 to 7.0.6 in /plugins/hooks
12+
13+
## Version 24.10.2
14+
Fixes:
15+
- [core] Correct aggregated collection cleanup on event omitting
16+
- [core] Fixed bug where changing passwords results in the loss of the "Global Admin" role
17+
- [core] Fixed bug where exporting incoming data logs could result in "Incorrect parameter \"data\" error
18+
- [core] Removed use of commands which needs admin rights from report manager.
19+
- [crash] Fixed bug in crash ingestion for scenarios where the "app version" is not a string.
20+
- [script] Fixing bug with "delete_old_members" script that led to malformed requests
21+
22+
Enterprise fixes:
23+
- [nps] Fixed bug that showed the wrong nps preview title
24+
125
## Version 24.10.1
2-
Integrating 24.05.16 fixes
26+
Fixes:
27+
- [core] Replaced "Users" with "Sessions" label on technology home widgets
28+
- [push] Improved ability to observe push related errors
29+
- [push] Replaced push plugin with an earlier version of the plugin
30+
31+
Enterprise fixes:
32+
- [cohorts] Fixed issues with nightly cleanup
33+
- [data-manager] Fixed UI bug where rules were not visible when editing "Merge by regex" transformations
34+
- [drill] Fixed wrong pie chart label tooltip in dashboard widget
35+
- [flows] Fixed bug in case of null data in schema
36+
- [license] Fixed bug with MAU type of licenses that would prevent the server from starting
37+
- [nps] Fixed bug in the editor where the "internal name" field was not mandatory
38+
- [nps] Fixed bug where it was possible to submit empty nps surveys
39+
- [ratings] Fixed bug with user consent
40+
- [ratings] Fixed UI bug where "Internal name" was not a mandatory field
41+
42+
Security:
43+
- Bumped cookie-parser from 1.4.6 to 1.4.7
44+
- Bumped express-rate-limit from 7.4.0 to 7.4.1
45+
- Bumped moment-timezone from 0.5.45 to 0.5.46
46+
- Bumped sass from 1.79.3 to 1.79.4
47+
- Fixing minor vulnerability that would allow for unauthorized file upload
48+
49+
Enterprise Features:
50+
- [block] Added a way to filter crashes by their error (stacktrace)
351

452
## Version 24.10
553
Fixes:
@@ -35,39 +83,9 @@ Enterprise Features:
3583
- [users] UI improvements
3684
- [views] Added a quick transition to drill
3785

38-
## Version 24.05.17
39-
Fixes:
40-
- [push] Improved ability to observe push related errors
41-
42-
Enterprise fixes:
43-
- [cohorts] Fixed issues with nightly cleanup
44-
- [data-manager] Fixed UI bug where rules were not visible when editing "Merge by regex" transformations
45-
- [drill] Fixed wrong pie chart label tooltip in dashboard widget
46-
- [flows] Fixed bug in case of null data in schema
47-
- [nps] Fixed bug in the editor where the "internal name" field was not mandatory
48-
- [ratings] Fixed UI bug where "Internal name" was not a mandatory field
49-
50-
Security:
51-
- Fixing minor vulnerability that would allow for unauthorized file upload
52-
53-
## Version 24.05.16
54-
Fixes:
55-
- [core] Replaced "Users" with "Sessions" label on technology home widgets
56-
- [push] Replaced push plugin with an earlier version of the plugin
57-
58-
Enterprise fixes:
59-
- [license] Fixed bug with MAU type of licenses that would prevent the server from starting
60-
- [nps] Fixed bug where it was possible to submit empty nps surveys
61-
- [ratings] Fixed bug with user consent
62-
63-
Security:
64-
- Bumped cookie-parser from 1.4.6 to 1.4.7
65-
- Bumped express-rate-limit from 7.4.0 to 7.4.1
66-
- Bumped moment-timezone from 0.5.45 to 0.5.46
67-
- Bumped sass from 1.79.3 to 1.79.4
68-
6986
## Version 24.05.15
7087
Enterprise fixes:
88+
- [ab-testing] Fixed JSON.parse issue preventing creation of AB tests
7189
- [nps] Fixed UI issues in the widget editor related to the "user consent" section
7290
- [ratings] Fixed rendering issue for escaped values
7391

Dockerfile-api

+5-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ ENV COUNTLY_CONTAINER="api" \
1717
COUNTLY_CONFIG_API_API_WORKERS="1" \
1818
COUNTLY_CONFIG_API_API_HOST="0.0.0.0" \
1919
NODE_OPTIONS="--max-old-space-size=2048" \
20-
TINI_VERSION="0.18.0"
21-
20+
TINI_VERSION="0.18.0"\
21+
PUPPETEER_CACHE_DIR=/opt/countly/.cache/puppeteer
22+
2223
WORKDIR /opt/countly
2324
COPY . .
2425

@@ -58,7 +59,7 @@ RUN curl -s -L -o /tmp/tini.deb "https://github.com/krallin/tini/releases/downlo
5859
# cleanup & chown
5960
npm remove -y --no-save mocha nyc should supertest && \
6061
apt-get remove -y git gcc g++ make automake autoconf libtool pkg-config unzip sqlite3 && \
61-
apt-get install -y libgbm-dev libgbm1 gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils && \
62+
apt-get install -y libgbm-dev libgbm1 gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils && \
6263
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
6364
rm -rf test /tmp/* /tmp/.??* /var/tmp/* /var/tmp/.??* /var/log/* /root/.npm && \
6465
\
@@ -75,4 +76,4 @@ USER 1001:0
7576

7677
ENTRYPOINT ["/usr/bin/tini", "-v", "--"]
7778

78-
CMD ["/opt/countly/bin/docker/cmd.sh"]
79+
CMD ["/opt/countly/bin/docker/cmd.sh"]

api/api.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ plugins.connectToAllDatabases().then(function() {
265265
if (cluster.isMaster) {
266266
plugins.installMissingPlugins(common.db);
267267
common.runners = require('./parts/jobs/runner');
268-
common.cache = new CacheMaster(common.db);
268+
common.cache = new CacheMaster();
269269
common.cache.start().then(() => {
270270
setImmediate(() => {
271271
plugins.dispatch('/cache/init', {});
@@ -334,7 +334,7 @@ plugins.connectToAllDatabases().then(function() {
334334
console.log("Starting worker", process.pid, "parent:", process.ppid);
335335
const taskManager = require('./utils/taskmanager.js');
336336

337-
common.cache = new CacheWorker(common.db);
337+
common.cache = new CacheWorker();
338338
common.cache.start();
339339

340340
//since process restarted mark running tasks as errored

0 commit comments

Comments
 (0)