Skip to content

Commit

Permalink
Merge pull request #6022 from Countly/release.24.12
Browse files Browse the repository at this point in the history
Release.24.12 -> master
  • Loading branch information
ArtursKadikis authored Mar 3, 2025
2 parents e4a02ed + 8e02f37 commit 5890b94
Show file tree
Hide file tree
Showing 463 changed files with 27,107 additions and 6,989 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ root = true
end_of_line = lf
insert_final_newline = false

[*.{js,html,scss,json}]
[*.{js,html,scss,json,vue}]
indent_style = space
indent_size = 4
108 changes: 94 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,62 @@
]
},
"overrides": [
{
"files": [
"plugins/content/frontend/vite.config.js",
"plugins/journey_engine/frontend/vite.config.js",
"plugins/journey_engine/frontend/vite-manifest.js"
],
"rules": {
"no-console": "off"
},
"parserOptions": {
"ecmaVersion": 2023,
"sourceType": "module"
},
"env": {
"node": true,
"es2023": true
}
},
{
"files": [
"plugins/content/frontend/content-blocks/**/*.js",
"plugins/journey_engine/frontend/builder/**/*.js",
"plugins/content/frontend/content-blocks/**/*.vue",
"plugins/journey_engine/frontend/builder/**/*.vue"
],
"plugins": [
"vue",
"@stylistic"
],
"extends": [
"eslint:recommended",
"plugin:vue/vue3-essential",
"plugin:vue/vue3-strongly-recommended",
"plugin:vue/vue3-recommended"
],
"rules": {
// override these post initial content release, to make them fit with countly convention
"no-console": ["error"],
"@stylistic/quotes": ["error", "single"],
"@stylistic/quote-props": ["error", "as-needed"],
"no-unused-vars": "off",
"vue/no-unused-vars": ["error", {
"ignorePattern": "^_"
}]
},
"parserOptions": {
"ecmaVersion": 2023,
"sourceType": "module",
"extraFileExtensions": [".vue"]
},
"env": {
"node": true,
"es2023": true,
"es6": true
}
},
{
"files": [
"frontend/express/public/javascripts/countly/*.js",
Expand Down Expand Up @@ -195,6 +251,28 @@
]
}
},
{
"files": [ "plugins/content/api/positioning/**/*.js" ],
"parserOptions": {
"ecmaVersion": 2023,
"sourceType": "module"
},
"env": {
"node": true,
"es2023": true
}
},
{
"files": [ "plugins/content/api/positioning/**/*.cjs" ],
"parserOptions": {
"ecmaVersion": 2023,
"sourceType": "commonjs"
},
"env": {
"node": true,
"es2023": true
}
},
{
"files": [
"api/**/*.js",
Expand All @@ -206,13 +284,19 @@
"plugins/*/frontend/**/*.js",
"plugins/*/extend/**/*.js"
],
"excludedFiles": "plugins/*/frontend/public/**/*.js",
"excludedFiles": [
"plugins/*/frontend/public/**/*.js",
"plugins/content/frontend/content-blocks/**/*.js",
"plugins/journey_engine/frontend/builder/**/*.js",
"plugins/content/frontend/content-blocks/**/*.vue",
"plugins/journey_engine/frontend/builder/**/*.vue"
],
"env": {
"es2020": true,
"es2023": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2020
"ecmaVersion": 2023
},
"rules": {
"no-console": "off",
Expand All @@ -237,9 +321,6 @@
"for-direction": [
"off"
],
"no-console": [
"off"
],
"no-control-regex": [
"off"
],
Expand Down Expand Up @@ -288,11 +369,11 @@
],
"excludedFiles": "plugins/*/tests.js",
"env": {
"es2020": true,
"es2023": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2020
"ecmaVersion": 2023
},
"rules": {
"no-console": "off"
Expand All @@ -305,13 +386,12 @@
"plugins/*/tests.js"
],
"env": {
"es2020": true,
"es2023": true,
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
"ecmaVersion": 2023
},
"rules": {
"no-console": "off",
Expand All @@ -324,7 +404,7 @@
"ui-tests/**/*.js"
],
"env": {
"es2020": true,
"es2023": true,
"node": true,
"mocha": true
},
Expand All @@ -333,7 +413,7 @@
"cy": "readonly"
},
"parserOptions": {
"ecmaVersion": 2020,
"ecmaVersion": 2023,
"sourceType": "module"
},
"rules": {
Expand All @@ -343,4 +423,4 @@
}
}
]
}
}
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Deploy
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, next ]
branches: [ master, next, release.24.10, release.24.12 ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
36 changes: 28 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:

services:
mongodb:
image: mongo:6.0
image: mongo:8.0
options: >-
--health-cmd mongosh
--health-interval 10s
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- name: ESLint
shell: bash
run: |
npm install [email protected]
npm install [email protected] [email protected] @stylistic/[email protected]
npx eslint .
- name: NPM install
Expand All @@ -126,7 +126,7 @@ jobs:

services:
mongodb:
image: mongo:6.0
image: mongo:8.0
options: >-
--health-cmd mongosh
--health-interval 10s
Expand Down Expand Up @@ -160,6 +160,11 @@ jobs:
shell: bash
run: "sed -i 's/port: 3001,/port: 3001, workers: 1,/' /opt/countly/api/config.js"

- name: NPM install
shell: bash
working-directory: /opt/countly
run: npm install

- name: Run tests
shell: bash
working-directory: /opt/countly
Expand All @@ -173,7 +178,7 @@ jobs:

services:
mongodb:
image: mongo:6.0
image: mongo:8.0
options: >-
--health-cmd mongosh
--health-interval 10s
Expand Down Expand Up @@ -207,6 +212,11 @@ jobs:
shell: bash
run: "sed -i 's/port: 3001,/port: 3001, workers: 1,/' /opt/countly/api/config.js"

- name: NPM install
shell: bash
working-directory: /opt/countly
run: npm install

- name: Install plugins
shell: bash
run: |
Expand All @@ -226,7 +236,7 @@ jobs:

services:
mongodb:
image: mongo:6.0
image: mongo:8.0
options: >-
--health-cmd mongosh
--health-interval 10s
Expand Down Expand Up @@ -260,6 +270,11 @@ jobs:
shell: bash
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"

- name: NPM install
shell: bash
working-directory: /opt/countly
run: npm install

- name: Prepare environment
shell: bash
working-directory: /opt/countly
Expand Down Expand Up @@ -287,7 +302,7 @@ jobs:
cd ui-tests
npm install
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" \
npm run cy:run:dashboard --headless --no-sandbox --disable-gpu --disable-dev-shm-usage
npm run cy:run:dashboard
- name: Upload UI tests artifacts
if: ${{ failure() }}
Expand All @@ -304,7 +319,7 @@ jobs:

services:
mongodb:
image: mongo:6.0
image: mongo:8.0
options: >-
--health-cmd mongosh
--health-interval 10s
Expand Down Expand Up @@ -338,6 +353,11 @@ jobs:
shell: bash
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"

- name: NPM install
shell: bash
working-directory: /opt/countly
run: npm install

- name: Prepare environment
shell: bash
working-directory: /opt/countly
Expand All @@ -361,7 +381,7 @@ jobs:
cd ui-tests
npm install
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" \
npm run cy:run:onboarding --headless --no-sandbox --disable-gpu --disable-dev-shm-usage
npm run cy:run:onboarding
- name: Upload UI tests artifacts
if: ${{ failure() }}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ frontend/express/public/stylesheets/vue/clyvue.css.map
log/
log/supervisord/
plugins/plugins.json.*
.sdk
.sdk
dump
Loading

0 comments on commit 5890b94

Please sign in to comment.