Skip to content

Commit 39aa1b3

Browse files
authored
Merge branch 'master' into 24.10->master
2 parents bc57624 + 91efee1 commit 39aa1b3

File tree

319 files changed

+16972
-3897
lines changed

Some content is hidden

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

319 files changed

+16972
-3897
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
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

Lines changed: 93 additions & 10 deletions
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",
@@ -195,6 +251,28 @@
195251
]
196252
}
197253
},
254+
{
255+
"files": [ "plugins/content/api/positioning/**/*.js" ],
256+
"parserOptions": {
257+
"ecmaVersion": 2023,
258+
"sourceType": "module"
259+
},
260+
"env": {
261+
"node": true,
262+
"es2023": true
263+
}
264+
},
265+
{
266+
"files": [ "plugins/content/api/positioning/**/*.cjs" ],
267+
"parserOptions": {
268+
"ecmaVersion": 2023,
269+
"sourceType": "commonjs"
270+
},
271+
"env": {
272+
"node": true,
273+
"es2023": true
274+
}
275+
},
198276
{
199277
"files": [
200278
"api/**/*.js",
@@ -206,13 +284,19 @@
206284
"plugins/*/frontend/**/*.js",
207285
"plugins/*/extend/**/*.js"
208286
],
209-
"excludedFiles": "plugins/*/frontend/public/**/*.js",
287+
"excludedFiles": [
288+
"plugins/*/frontend/public/**/*.js",
289+
"plugins/content/frontend/content-blocks/**/*.js",
290+
"plugins/journey_engine/frontend/builder/**/*.js",
291+
"plugins/content/frontend/content-blocks/**/*.vue",
292+
"plugins/journey_engine/frontend/builder/**/*.vue"
293+
],
210294
"env": {
211-
"es2020": true,
295+
"es2023": true,
212296
"node": true
213297
},
214298
"parserOptions": {
215-
"ecmaVersion": 2020
299+
"ecmaVersion": 2023
216300
},
217301
"rules": {
218302
"no-console": "off",
@@ -285,11 +369,11 @@
285369
],
286370
"excludedFiles": "plugins/*/tests.js",
287371
"env": {
288-
"es2020": true,
372+
"es2023": true,
289373
"node": true
290374
},
291375
"parserOptions": {
292-
"ecmaVersion": 2020
376+
"ecmaVersion": 2023
293377
},
294378
"rules": {
295379
"no-console": "off"
@@ -302,13 +386,12 @@
302386
"plugins/*/tests.js"
303387
],
304388
"env": {
305-
"es2020": true,
389+
"es2023": true,
306390
"node": true,
307391
"mocha": true
308392
},
309393
"parserOptions": {
310-
"ecmaVersion": 2020,
311-
"sourceType": "module"
394+
"ecmaVersion": 2023
312395
},
313396
"rules": {
314397
"no-console": "off",
@@ -321,7 +404,7 @@
321404
"ui-tests/**/*.js"
322405
],
323406
"env": {
324-
"es2020": true,
407+
"es2023": true,
325408
"node": true,
326409
"mocha": true
327410
},
@@ -330,7 +413,7 @@
330413
"cy": "readonly"
331414
},
332415
"parserOptions": {
333-
"ecmaVersion": 2020,
416+
"ecmaVersion": 2023,
334417
"sourceType": "module"
335418
},
336419
"rules": {

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Deploy
66
on:
77
# Triggers the workflow on push or pull request events but only for the master branch
88
push:
9-
branches: [ master, next ]
9+
branches: [ master, next, release.24.10, release.24.12 ]
1010

1111
# Allows you to run this workflow manually from the Actions tab
1212
workflow_dispatch:

.github/workflows/main.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,29 @@ jobs:
2121
# This workflow contains a single job called "build"
2222
install:
2323
# The type of runner that the job will run on
24-
runs-on: ubuntu-20.04
24+
runs-on: ubuntu-22.04
2525

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
2929
- uses: actions/checkout@v3
3030

31+
- name: Copy code
32+
shell: bash
33+
run: |
34+
sudo mkdir -p /opt/countly
35+
touch log/countly-dashboard.log
36+
touch log/countly-api.log
37+
cp -rf ./* /opt/countly
38+
3139
- name: Github Actions Azure connection fix
3240
run: |
3341
# Workaround for https://github.com/actions/runner-images/issues/675#issuecomment-1381389712
3442
sudo sed -i 's/azure/us/g' /etc/apt/sources.list
35-
43+
3644
- name: Installing Countly
3745
shell: bash
46+
working-directory: /opt/countly
3847
run: sudo bash ./bin/countly.install.sh
3948

4049
- name: NodeJS version
@@ -50,10 +59,12 @@ jobs:
5059
run: mongosh --version
5160

5261
- name: Output API Logs
62+
working-directory: /opt/countly
5363
if: ${{ always() }}
5464
run: cat log/countly-api.log
5565

5666
- name: Output Dashboard Logs
67+
working-directory: /opt/countly
5768
if: ${{ always() }}
5869
run: cat log/countly-dashboard.log
5970

@@ -105,7 +116,7 @@ jobs:
105116
- name: ESLint
106117
shell: bash
107118
run: |
108-
npm install [email protected]
119+
109120
npx eslint .
110121
111122
- name: NPM install
@@ -302,7 +313,7 @@ jobs:
302313
cd ui-tests
303314
npm install
304315
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" \
305-
npm run cy:run:dashboard --headless --no-sandbox --disable-gpu --disable-dev-shm-usage
316+
npm run cy:run:dashboard
306317
307318
- name: Upload UI tests artifacts
308319
if: ${{ failure() }}
@@ -381,7 +392,7 @@ jobs:
381392
cd ui-tests
382393
npm install
383394
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" \
384-
npm run cy:run:onboarding --headless --no-sandbox --disable-gpu --disable-dev-shm-usage
395+
npm run cy:run:onboarding
385396
386397
- name: Upload UI tests artifacts
387398
if: ${{ failure() }}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Deploy Journey Engine
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
push:
9+
branches: [ next ]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
# This workflow contains a single job called "build"
17+
deploy:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22+
- uses: actions/checkout@v3
23+
24+
- name: Deploy server
25+
shell: bash
26+
env:
27+
SSH_PRIVATE_KEY: ${{ secrets.STABLE_JE_SSH_PRIVATE_KEY }}
28+
run: bash ./bin/scripts/deploy-je.sh

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,6 @@ frontend/express/public/stylesheets/vue/clyvue.css.map
4343
log/
4444
log/supervisord/
4545
plugins/plugins.json.*
46-
.sdk
46+
.sdk
47+
dump
48+
dist/

0 commit comments

Comments
 (0)