Skip to content

Commit f718103

Browse files
Merge branch 'release.24.12', remote-tracking branch 'origin' into journey+content-main
2 parents 00cc8d7 + 75e435c commit f718103

File tree

460 files changed

+30492
-7073
lines changed

Some content is hidden

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

460 files changed

+30492
-7073
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ root = true
44
end_of_line = lf
55
insert_final_newline = false
66

7-
[*.{js,html,scss,json}]
7+
[*.{js,html,scss,json,vue}]
88
indent_style = space
99
indent_size = 4

.eslintrc.json

+72-14
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,62 @@
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+
"plugins/content/frontend/content-blocks/**/*.vue",
147+
"plugins/journey_engine/frontend/builder/**/*.vue"
148+
],
149+
"plugins": [
150+
"vue",
151+
"@stylistic"
152+
],
153+
"extends": [
154+
"eslint:recommended",
155+
"plugin:vue/vue3-essential",
156+
"plugin:vue/vue3-strongly-recommended",
157+
"plugin:vue/vue3-recommended"
158+
],
159+
"rules": {
160+
// override these post initial content release, to make them fit with countly convention
161+
"no-console": ["error"],
162+
"@stylistic/quotes": ["error", "single"],
163+
"@stylistic/quote-props": ["error", "as-needed"],
164+
"no-unused-vars": "off",
165+
"vue/no-unused-vars": ["error", {
166+
"ignorePattern": "^_"
167+
}]
168+
},
169+
"parserOptions": {
170+
"ecmaVersion": 2023,
171+
"sourceType": "module",
172+
"extraFileExtensions": [".vue"]
173+
},
174+
"env": {
175+
"node": true,
176+
"es2023": true,
177+
"es6": true
178+
}
179+
},
124180
{
125181
"files": [
126182
"frontend/express/public/javascripts/countly/*.js",
@@ -206,13 +262,19 @@
206262
"plugins/*/frontend/**/*.js",
207263
"plugins/*/extend/**/*.js"
208264
],
209-
"excludedFiles": "plugins/*/frontend/public/**/*.js",
265+
"excludedFiles": [
266+
"plugins/*/frontend/public/**/*.js",
267+
"plugins/content/frontend/content-blocks/**/*.js",
268+
"plugins/journey_engine/frontend/builder/**/*.js",
269+
"plugins/content/frontend/content-blocks/**/*.vue",
270+
"plugins/journey_engine/frontend/builder/**/*.vue"
271+
],
210272
"env": {
211-
"es2020": true,
273+
"es2023": true,
212274
"node": true
213275
},
214276
"parserOptions": {
215-
"ecmaVersion": 2020
277+
"ecmaVersion": 2023
216278
},
217279
"rules": {
218280
"no-console": "off",
@@ -237,9 +299,6 @@
237299
"for-direction": [
238300
"off"
239301
],
240-
"no-console": [
241-
"off"
242-
],
243302
"no-control-regex": [
244303
"off"
245304
],
@@ -288,11 +347,11 @@
288347
],
289348
"excludedFiles": "plugins/*/tests.js",
290349
"env": {
291-
"es2020": true,
350+
"es2023": true,
292351
"node": true
293352
},
294353
"parserOptions": {
295-
"ecmaVersion": 2020
354+
"ecmaVersion": 2023
296355
},
297356
"rules": {
298357
"no-console": "off"
@@ -305,13 +364,12 @@
305364
"plugins/*/tests.js"
306365
],
307366
"env": {
308-
"es2020": true,
367+
"es2023": true,
309368
"node": true,
310369
"mocha": true
311370
},
312371
"parserOptions": {
313-
"ecmaVersion": 2020,
314-
"sourceType": "module"
372+
"ecmaVersion": 2023
315373
},
316374
"rules": {
317375
"no-console": "off",
@@ -324,7 +382,7 @@
324382
"ui-tests/**/*.js"
325383
],
326384
"env": {
327-
"es2020": true,
385+
"es2023": true,
328386
"node": true,
329387
"mocha": true
330388
},
@@ -333,7 +391,7 @@
333391
"cy": "readonly"
334392
},
335393
"parserOptions": {
336-
"ecmaVersion": 2020,
394+
"ecmaVersion": 2023,
337395
"sourceType": "module"
338396
},
339397
"rules": {
@@ -343,4 +401,4 @@
343401
}
344402
}
345403
]
346-
}
404+
}

.github/workflows/main.yml

+29-9
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:
@@ -69,7 +69,7 @@ jobs:
6969

7070
services:
7171
mongodb:
72-
image: mongo:6.0
72+
image: mongo:8.0
7373
options: >-
7474
--health-cmd mongosh
7575
--health-interval 10s
@@ -105,7 +105,7 @@ jobs:
105105
- name: ESLint
106106
shell: bash
107107
run: |
108-
npm install [email protected]
108+
109109
npx eslint .
110110
111111
- name: NPM install
@@ -126,7 +126,7 @@ jobs:
126126

127127
services:
128128
mongodb:
129-
image: mongo:6.0
129+
image: mongo:8.0
130130
options: >-
131131
--health-cmd mongosh
132132
--health-interval 10s
@@ -160,6 +160,11 @@ jobs:
160160
shell: bash
161161
run: "sed -i 's/port: 3001,/port: 3001, workers: 1,/' /opt/countly/api/config.js"
162162

163+
- name: NPM install
164+
shell: bash
165+
working-directory: /opt/countly
166+
run: npm install
167+
163168
- name: Run tests
164169
shell: bash
165170
working-directory: /opt/countly
@@ -173,7 +178,7 @@ jobs:
173178

174179
services:
175180
mongodb:
176-
image: mongo:6.0
181+
image: mongo:8.0
177182
options: >-
178183
--health-cmd mongosh
179184
--health-interval 10s
@@ -207,6 +212,11 @@ jobs:
207212
shell: bash
208213
run: "sed -i 's/port: 3001,/port: 3001, workers: 1,/' /opt/countly/api/config.js"
209214

215+
- name: NPM install
216+
shell: bash
217+
working-directory: /opt/countly
218+
run: npm install
219+
210220
- name: Install plugins
211221
shell: bash
212222
run: |
@@ -226,7 +236,7 @@ jobs:
226236

227237
services:
228238
mongodb:
229-
image: mongo:6.0
239+
image: mongo:8.0
230240
options: >-
231241
--health-cmd mongosh
232242
--health-interval 10s
@@ -260,6 +270,11 @@ jobs:
260270
shell: bash
261271
run: "sed -i 's/mongosh --quiet/mongosh --host mongodb --quiet/' /opt/countly/bin/backup/import_events.sh && sed -i 's/mongoimport --db/mongoimport --host mongodb --db/' /opt/countly/bin/backup/import_events.sh"
262272

273+
- name: NPM install
274+
shell: bash
275+
working-directory: /opt/countly
276+
run: npm install
277+
263278
- name: Prepare environment
264279
shell: bash
265280
working-directory: /opt/countly
@@ -287,7 +302,7 @@ jobs:
287302
cd ui-tests
288303
npm install
289304
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" \
290-
npm run cy:run:dashboard --headless --no-sandbox --disable-gpu --disable-dev-shm-usage
305+
npm run cy:run:dashboard
291306
292307
- name: Upload UI tests artifacts
293308
if: ${{ failure() }}
@@ -304,7 +319,7 @@ jobs:
304319

305320
services:
306321
mongodb:
307-
image: mongo:6.0
322+
image: mongo:8.0
308323
options: >-
309324
--health-cmd mongosh
310325
--health-interval 10s
@@ -338,6 +353,11 @@ jobs:
338353
shell: bash
339354
run: "sed -i 's/mongosh --quiet/mongosh --host mongodb --quiet/' /opt/countly/bin/backup/import_events.sh && sed -i 's/mongoimport --db/mongoimport --host mongodb --db/' /opt/countly/bin/backup/import_events.sh"
340355

356+
- name: NPM install
357+
shell: bash
358+
working-directory: /opt/countly
359+
run: npm install
360+
341361
- name: Prepare environment
342362
shell: bash
343363
working-directory: /opt/countly
@@ -361,7 +381,7 @@ jobs:
361381
cd ui-tests
362382
npm install
363383
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" \
364-
npm run cy:run:onboarding --headless --no-sandbox --disable-gpu --disable-dev-shm-usage
384+
npm run cy:run:onboarding
365385
366386
- name: Upload UI tests artifacts
367387
if: ${{ failure() }}

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ frontend/express/public/stylesheets/vue/clyvue.css.map
4343
log/
4444
log/supervisord/
4545
plugins/plugins.json.*
46-
.sdk
46+
.sdk
47+
dump

0 commit comments

Comments
 (0)