Commit graph

528 commits

Author SHA1 Message Date
Alfredo Altamirano
c6b1b026c5
fix: data-import command fails with local files (#20521) (#21381)
* fix: data is retrieved from db instead of local file

* fix: data import command only accepts absolute path

* fix: revert expanduser

- Shells expand it. Works fine with bash/zsh
- Doesn't work anyway as click wont let you init a path that doesn't
  exist

* Revert "fix: data is retrieved from db instead of local file"

This reverts commit cbe50a26da61e01b5a9a7c51f8632defb0913aab.

* fix: allow local import if from console

---------

Co-authored-by: Alfredo Altamirano <Ahuahuachi@users.noreply.github.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-06-20 18:09:23 +05:30
Anand Baburajan
38960f4219
feat: migrate translations command (#21362)
* feat: migrate translations command

* chore: formatting
2023-06-19 18:19:07 +05:30
Ankush Menat
63a1a32594 chore: remove unused argument 2023-06-13 19:03:52 +05:30
Ankush Menat
3005e66e45 refactor!: Drop previously deprecated code 2023-06-13 16:00:43 +05:30
Ankush Menat
b3d370a0b1 refactor!: remove rollback_observers
use `frappe.db.after_rollback.add` instead
2023-06-03 18:44:19 +05:30
Devin Slauenwhite
6bda014406
fix: install cypress plugins in frappe namespace (#20459) 2023-03-28 14:34:45 +05:30
Ankush Menat
f089e9108e
fix: hard link environment variable (#20467)
On docker based deploys symlinking inside volume doesn't work.

[skip ci]
2023-03-27 15:58:43 +05:30
gavin
c3fa753ed2
Merge branch 'develop' into cli-scheduler-status 2023-02-14 16:13:56 +05:30
Gavin D'souza
01cc586e20 fix: Use yarn to figure out bin path instead of npm
Npm v9 doesn't have bin anymore. This causes run-ui-tests to fail

refs:
- https://docs.npmjs.com/cli/v8/commands/npm-bin
- https://yarnpkg.com/cli/bin
2023-02-13 13:42:59 +05:30
Gavin D'souza
32cf13cb29 chore: Cleanup imports 2023-02-10 14:45:39 +05:30
Gavin D'souza
4738a1422d fix: Add format, verbose options to scheduler 2023-02-10 14:39:16 +05:30
Gavin D'souza
6b84c9ccf5 feat: Check scheduler status via CLI
new: `bench --site scheduler status`
2023-02-10 14:38:50 +05:30
Gavin D'souza
4ccabc4e21 fix(new-site): Pass sql archive as --source-sql
Add --source-sql option as an alias to --source_sql
2023-02-09 15:32:06 +05:30
Ankush Menat
11f7e41994 fix: Show local variables in tracebacks during migration 2023-02-03 16:01:30 +05:30
gavin
ee80d6a504
feat(cli): Pass extra args to DB console (#19809) 2023-01-27 22:57:19 +05:30
Ankush Menat
ffc5447548
fix: set-config without -g must specify site (#19782) 2023-01-25 20:33:55 +05:30
Gavin D'souza
d357af1533 refactor: Add a maxsplit limit to string splits 2023-01-24 19:22:51 +05:30
Ankush Menat
87561940a4
feat: Interactively add a new patch (#19722) 2023-01-23 15:04:43 +05:30
phot0n
16eeedc28c feat(minor): add use-default-authtoken to ngrok command 2023-01-02 16:27:38 +05:30
phot0n
31d1bd6cc7 chore: linter 2022-12-30 19:27:17 +05:30
Hussain Nagaria
b9a6db3c08 refactor: ngrok_auth_token -> ngrok_authtoken
* to be consistent with ngrok's naming convention
2022-12-24 12:45:24 +05:30
Hussain Nagaria
5c7b583582 fix(commands): require ngrok auth token in site_config.json to use ngrok command
* ngrok authtoken is now required to use the host_header feature
2022-12-24 12:32:51 +05:30
Ankush Menat
3ff49ec0ad fix: mariadb convert port to string for os.execv 2022-12-20 15:14:38 +05:30
Ankush Menat
db35431b8c fix(postgres): psql with remote databases
If you dont use unix socket psql command doesn't work.
2022-12-20 15:14:38 +05:30
Ankush Menat
8107781f1c
fix: move filelock imports to functions (#19300) 2022-12-15 15:21:31 +05:30
Ankush Menat
06becac459
fix(trim-database): Dont act on non-frappe tables (#19292) 2022-12-15 13:43:28 +05:30
Ankush Menat
49437f53b4
feat: operation level locking for CLI commands (#19162)
This prevents mistakenly issuing same commands twice which can be
dangerous.

added global lock(s):
- [x] bench build

added site level lock(s):
- [x] bench new-site sitename
- [x] bench --site sitename migrate
- [x] bench install-app appname
- [x] bench build
- [x] bench restore (the code is just meh, needs some cleanup)

closes https://github.com/frappe/frappe/issues/13215
2022-12-08 13:24:43 +05:30
Ankush Menat
5d1444c21c
docs: add missing help text for commands (#19039)
closes https://github.com/frappe/frappe/issues/19036

[skip ci]
2022-11-29 16:01:25 +05:30
Ankush Menat
d00b98f460 chore: typo 2022-11-25 13:10:43 +05:30
Ankush Menat
ed28626021 refactor: simpler deque strat selection
Co-authored-by: Ritwik Puri <ritwikpuri5678@gmail.com>
2022-11-25 12:14:37 +05:30
Ankush Menat
a8bf86ef75 feat: support dequeuing strategies for worker 2022-11-25 12:14:37 +05:30
Ankush Menat
aece93fbc5 feat: burst mode in workers
https://python-rq.org/docs/workers/#burst-mode
2022-11-25 12:14:33 +05:30
Ankush Menat
40b2929c0d feat(workers): allow consuming multiple queues 2022-11-25 12:03:34 +05:30
Himanshu Shivhare
c7461a05c6
chore: Typo correction (#18997)
[skip ci]
2022-11-24 16:25:11 +05:30
gavin
440825a372
refactor: which > find_executable (#18872)
Use shutil from the standard library instead of distutils to find
executables in PATH
2022-11-14 18:15:38 +05:30
Ankush Menat
cfee53d573
refactor: load balanced parallel tests without orchestrator (#18386)
* feat: dry run in test runner for debuggin

* refactor: load balance TestRunner using # of tests
2022-10-12 12:13:24 +05:30
Ankush Menat
40f6a34840 build: pin testing-library/dom temporarily
refer https://github.com/testing-library/dom-testing-library/issues/1169
2022-09-19 16:21:23 +05:30
Ritwik Puri
7f4974e923
Merge branch 'develop' into sync-dashboard 2022-09-12 16:19:19 +05:30
phot0n
3539dacdf0 fix: commit after app install
Since we destroy the connection after app installation,
mariadb implicitly rollsback the transaction hence committing upon successfull
app installation to prevent data sync loss
2022-09-12 12:23:14 +05:30
Ankush Menat
c400e18979 refactor: drop file upload plugin
Cypress supports this natively now!
2022-09-08 16:51:59 +05:30
Ankush Menat
e397b27d29 test: upgrade cypress from v6 to v10
chore: run cypress migrator

fix: specPattern should be an array

test: correct intercept URL

This is breaking change in cypress 7.0

test: make list view test rerunnable

test: redo undo tests and add compare doc

test: scroll to action button

chore: drop flaky tests

fix: remove scroll behaviour

fix: clear filters before running count test

test: input delay causes flake
2022-09-02 17:47:30 +05:30
Ankush Menat
4944246a0d
test: allow passing arbitrary args to cypress (#17997) 2022-08-30 21:27:25 +05:30
Alaa Alsalehi
40f54d04b7 feat(bench): add new bench command for add user 2022-08-24 14:29:50 +05:30
Gavin D'souza
287f33e0b1 fix(run-tests): Throw traceback with ctx variables 2022-08-08 16:06:41 +05:30
Ankush Menat
bdeb032fba
refactor: use separate config key for encryption (#17720) 2022-08-03 13:52:02 +05:30
Gavin D'souza
bcfa8c276e fix: Set default port attribute for Database classes
db.default_port wil be available as a class attribute to hold defaults
for DB types.

Usage: frappe.conf.db_port or frappe.db.default_port
Why: I couldn't run the mariadb command because the defaults aren't set
for my system. server is remote / containerized. Setting port in
equivalent mysql command fixes this.
2022-07-22 13:16:26 +05:30
Gavin D'souza
006ebcbede refactor: Use pymysql over mariadb client
This is supposed to be a temporary switch to make the parent PR easier
to digest. MariaDB client has some issues with release, and system
dependencies.

This commit may be reverted to enable mariadb client again.
2022-07-22 12:10:54 +05:30
Gavin D'souza
1ccdad811a Merge branch 'develop' of github.com:frappe/frappe into mariadb-client-refactor 2022-07-19 16:23:24 +05:30
Ankush Menat
468a5c55a3
ci: fix weird version check in cypress tests (#17499) 2022-07-13 18:08:20 +05:30
Gavin D'souza
71b5c77e6e Merge branch 'develop' of github.com:frappe/frappe into mariadb-client-refactor 2022-07-05 14:55:02 +05:30