Skip to content

Commit 81ff8ef

Browse files
Merge pull request #2248 from frappe/develop
chore(release): dev to main
2 parents cdff4a6 + f9af8b1 commit 81ff8ef

File tree

82 files changed

+1268
-618
lines changed

Some content is hidden

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

82 files changed

+1268
-618
lines changed

.github/helpers/install.sh

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ cd ~ || ex
66

77
sudo apt update
88
sudo apt remove mysql-server mysql-client
9-
sudo apt install libcups2-dev redis-server mariadb-client-10.6
9+
sudo apt install libcups2-dev redis-server mariadb-client libmariadb-dev
1010

1111
pip install frappe-bench
1212

13-
git clone "https://github.com/frappe/frappe" --branch "develop" --depth 1
13+
git clone "https://github.com/frappe/frappe" --branch "develop" --depth 1
1414
bench init --skip-assets --frappe-path ~/frappe --python "$(which python)" frappe-bench
1515

1616
mkdir ~/frappe-bench/sites/test_site
@@ -19,23 +19,20 @@ cp -r "${GITHUB_WORKSPACE}/.github/helpers/site_config_mariadb.json" ~/frappe-be
1919

2020
mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "SET GLOBAL character_set_server = 'utf8mb4'"
2121
mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "SET GLOBAL collation_server = 'utf8mb4_unicode_ci'"
22+
2223
mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "CREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe'"
2324
mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "CREATE DATABASE test_frappe"
2425
mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "GRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost'"
26+
2527
mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "FLUSH PRIVILEGES"
2628

2729
install_whktml() {
28-
if [ "$(lsb_release -rs)" = "22.04" ]; then
29-
wget -O /tmp/wkhtmltox.deb https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
30-
sudo apt install /tmp/wkhtmltox.deb
31-
else
32-
echo "Please update this script to support wkhtmltopdf for $(lsb_release -ds)"
33-
exit 1
34-
fi
30+
wget -O /tmp/wkhtmltox.tar.xz https://github.com/frappe/wkhtmltopdf/raw/master/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
31+
tar -xf /tmp/wkhtmltox.tar.xz -C /tmp
32+
sudo mv /tmp/wkhtmltox/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
33+
sudo chmod o+x /usr/local/bin/wkhtmltopdf
3534
}
3635
install_whktml &
37-
wkpid=$!
38-
3936

4037
cd ~/frappe-bench || exit
4138

@@ -47,8 +44,7 @@ sed -i 's/redis_socketio:/# redis_socketio:/g' Procfile
4744
bench get-app helpdesk "${GITHUB_WORKSPACE}"
4845
bench setup requirements --dev
4946

50-
wait $wkpid
5147

52-
bench start &> bench_run_logs.txt &
53-
CI=Yes bench build &
48+
bench start &>> ~/frappe-bench/bench_start.log &
49+
CI=Yes bench build --app frappe &
5450
bench --site test_site reinstall --yes

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- develop
78
tags:
89
- "*"
910

@@ -38,11 +39,12 @@ jobs:
3839

3940
- name: Set Branch
4041
run: |
41-
export APPS_JSON='[{"url": "https://github.com/frappe/helpdesk","branch": "main"}]'
42+
export APPS_JSON='[{"url": "https://github.com/frappe/helpdesk","branch": ${{ github.ref_name }}}]'
4243
echo "APPS_JSON_BASE64=$(echo $APPS_JSON | base64 -w 0)" >> $GITHUB_ENV
4344
echo "FRAPPE_BRANCH=version-15" >> $GITHUB_ENV
4445
4546
- name: Set Image Tag
47+
if: github.ref_name == 'main'
4648
run: |
4749
echo "IMAGE_TAG=stable" >> $GITHUB_ENV
4850

.github/workflows/server-tests.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
branches:
66
- main
7+
- develop
78

89
paths-ignore:
910
- '**.js'
@@ -25,7 +26,7 @@ on:
2526
type: string
2627

2728
concurrency:
28-
group: server-mariadb-develop-${{ github.event_name }}-${{ github.event.number || github.event_name == 'workflow_dispatch' && github.run_id || '' }}
29+
group: develop-${{ github.event.number }}
2930
cancel-in-progress: true
3031

3132
jobs:
@@ -37,14 +38,23 @@ jobs:
3738
strategy:
3839
fail-fast: false
3940

41+
services:
42+
mysql:
43+
image: mariadb:10.6
44+
env:
45+
MARIADB_ROOT_PASSWORD: 'root'
46+
ports:
47+
- 3306:3306
48+
options: --health-cmd="mariadb-admin ping" --health-interval=5s --health-timeout=2s --health-retries=3
49+
4050
steps:
4151
- name: Clone
4252
uses: actions/checkout@v2
4353

4454
- name: Setup Python
4555
uses: actions/setup-python@v2
4656
with:
47-
python-version: '3.11'
57+
python-version: '3.10'
4858

4959
- name: Check for valid Python & Merge Conflicts
5060
run: |
@@ -99,24 +109,17 @@ jobs:
99109
restore-keys: |
100110
${{ runner.os }}-yarn-
101111
102-
- name: Setup MariaDB
103-
uses: getong/mariadb-action@v1.1
104-
with:
105-
collation server: 'utf8mb4_unicode_ci'
106-
mariadb version: '10.6'
107-
mysql root password: 'root'
108-
109112
- name: Install
110113
run: bash ${GITHUB_WORKSPACE}/.github/helpers/install.sh
111114
env:
112115
TYPE: server
113116
FRAPPE_USER: ${{ github.event.inputs.user }}
114117
FRAPPE_BRANCH: ${{ github.event.inputs.branch }}
115118

116-
- name: Run Tests
117-
run: 'cd ~/frappe-bench/ && bench --site test_site run-tests --app helpdesk'
118-
env:
119-
TYPE: server
120-
CI_BUILD_ID: ${{ github.run_id }}
121-
ORCHESTRATOR_URL: http://test-orchestrator.frappe.io
119+
# - name: Run Tests
120+
# run: 'cd ~/frappe-bench/ && bench --site test_site run-tests --app helpdesk'
121+
# env:
122+
# TYPE: server
123+
# CI_BUILD_ID: ${{ github.run_id }}
124+
# ORCHESTRATOR_URL: http://test-orchestrator.frappe.io
122125

desk/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717
"@tailwindcss/typography": "^0.5.9",
1818
"@tiptap/core": "^2.2.4",
1919
"@vee-validate/zod": "^4.8.2",
20-
"@vitejs/plugin-vue": "^4.0.0",
2120
"@vueuse/core": "^10.0.2",
2221
"@vueuse/integrations": "^12.0.0",
2322
"autoprefixer": "^10.4.13",
2423
"dayjs": "^1.11.7",
2524
"echarts": "^5.4.1",
26-
"frappe-ui": "0.1.119",
25+
"frappe-ui": "0.1.122",
2726
"lodash": "^4.17.21",
2827
"lucide-static": "^0.276.0",
2928
"mime": "^3.0.0",
@@ -36,18 +35,20 @@
3635
"unplugin-icons": "^0.16.1",
3736
"unplugin-vue-components": "^0.25.2",
3837
"vee-validate": "^4.8.2",
39-
"vite": "^4.4.9",
4038
"vue": "^3.4.12",
4139
"vue-echarts": "^6.5.4",
4240
"vue-router": "^4.2.2",
4341
"vuedraggable": "^4.1.0",
4442
"gemoji": "^8.1.0",
45-
"zod": "^3.21.4"
43+
"zod": "^3.21.4",
44+
"@vitejs/plugin-vue": "^4.2.3"
4645
},
4746
"resolutions": {
4847
"cheerio": "1.0.0-rc.12"
4948
},
5049
"devDependencies": {
50+
"vite": "^4.4.9",
51+
"@vitejs/plugin-vue-jsx": "^3.0.1",
5152
"vite-plugin-pwa": "^0.20.5",
5253
"typescript": "^5.0.2",
5354
"prettier": "2.8.4"

desk/src/App.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import { createToast } from "@/utils";
1212
import { useConfigStore } from "@/stores/config";
1313
import KeymapDialog from "@/pages/KeymapDialog.vue";
1414
import { stopSession } from "@/telemetry";
15-
import { Dialogs } from "frappe-ui";
15+
import { Dialogs } from "@/components/dialogs";
16+
1617
useConfigStore();
1718
1819
onMounted(() => {
-137 KB
Binary file not shown.
-102 KB
Binary file not shown.
-143 KB
Binary file not shown.
-107 KB
Binary file not shown.

desk/src/assets/Inter/Inter-Bold.woff

-140 KB
Binary file not shown.
-105 KB
Binary file not shown.
-146 KB
Binary file not shown.
-110 KB
Binary file not shown.
-140 KB
Binary file not shown.
-105 KB
Binary file not shown.
-146 KB
Binary file not shown.
Binary file not shown.
-139 KB
Binary file not shown.
-103 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-139 KB
Binary file not shown.
-105 KB
Binary file not shown.
-138 KB
Binary file not shown.
-103 KB
Binary file not shown.
-145 KB
Binary file not shown.
-109 KB
Binary file not shown.
-139 KB
Binary file not shown.
-104 KB
Binary file not shown.
-146 KB
Binary file not shown.
-110 KB
Binary file not shown.
-131 KB
Binary file not shown.
-97.8 KB
Binary file not shown.
-140 KB
Binary file not shown.
-105 KB
Binary file not shown.
-146 KB
Binary file not shown.
-110 KB
Binary file not shown.

desk/src/assets/Inter/Inter-Thin.woff

-134 KB
Binary file not shown.
-99 KB
Binary file not shown.
-141 KB
Binary file not shown.
-105 KB
Binary file not shown.
-235 KB
Binary file not shown.
-221 KB
Binary file not shown.

desk/src/assets/Inter/Inter.var.woff2

-309 KB
Binary file not shown.

desk/src/assets/Inter/inter.css

Lines changed: 0 additions & 152 deletions
This file was deleted.

desk/src/components/Autocomplete.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Popover v-model:show="showOptions" class="w-full">
44
<template #target="{ open: openPopover, togglePopover }">
55
<slot name="target" v-bind="{ open: openPopover, togglePopover }">
6-
<div class="w-full">
6+
<div class="w-full -ml-0.5">
77
<button
88
class="flex w-full items-center justify-between focus:outline-none"
99
:class="inputClasses"

desk/src/components/CustomActions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div v-if="normalActions.length">
2+
<div v-if="normalActions.length" class="flex gap-2">
33
<Button
44
v-for="action in normalActions"
55
:key="action.label"

0 commit comments

Comments
 (0)