Ankush Menat
290a3df68d
chore!: drop backup.py direct calls + pragma nocov
2022-12-13 14:18:19 +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
b11793ab02
fix: set filename explicitly for safe_exec
2022-12-07 16:34:27 +05:30
Sagar Vora
5f2cc8ec79
chore: keep previous order for easy backport
2022-12-07 14:09:02 +05:30
Sagar Vora
0c220169da
chore: reorder pylint disable
2022-12-07 13:50:59 +05:30
Sagar Vora
aa53779e6b
fix: improve condition to init context
2022-12-07 13:46:34 +05:30
Sagar Vora
7d47d10692
fix: override RestrictedPython transformer to allow _dict, revert frappe.as_dict
2022-12-07 13:45:28 +05:30
Sagar Vora
10695d3d49
feat: make context optional when calling render_template
2022-12-07 13:32:38 +05:30
Sagar Vora
f2e1dbe7eb
fix: restore _dict, used in Jinja code
2022-12-07 13:13:27 +05:30
Ankush Menat
d389fffbb7
feat: inter-process file locks ( #19133 )
2022-12-06 16:31:51 +05:30
Sagar Vora
9a3819e608
fix: disable signups by default ( #19114 )
...
* fix: disable signups by default
* fix: set `disable_signup` to `0` for tests
2022-12-05 16:40:51 +05:30
Sagar Sharma
cc9499c613
chore: typo in validate_loop msg ( #19091 )
...
* fix: typo in `validate_loop` msg
* chore: update translations
[skip ci]
Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-12-03 12:08:41 +05:30
Ankush Menat
7d52df875f
perf(install): bulk insert country and currencies ( #19084 )
2022-12-03 12:03:05 +05:30
Ankush Menat
7a3faf23e1
Merge pull request #18664 from barredterra/csv-params
...
feat: configurable CSV delimiter and quoting
2022-11-29 13:27:24 +05:30
HarryPaulo
f25358ad63
fix: "_dict" is an invalid attribute name because it starts with "_" ( #19010 )
...
* fix: "_dict" is an invalid attribute name because it starts with "_"
* chore: move to frappe namespace
2022-11-29 11:43:23 +05:30
Raffael Meyer
83e2f524e2
Merge branch 'develop' into csv-params
2022-11-26 20:10:51 +01:00
barredterra
433b285b92
refactor: use provide_binary_file
2022-11-26 20:08:50 +01:00
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
0ebd3945ff
refactor: consider multi-queue consumption
2022-11-25 12:03:34 +05:30
Ankush Menat
40b2929c0d
feat(workers): allow consuming multiple queues
2022-11-25 12:03:34 +05:30
Ankush Menat
b7cef3ae71
fix: prioritize short queue when using all queues
2022-11-25 12:03:34 +05:30
Raffael Meyer
920606f10e
fix: handle "No Letterhead" in new print format builder ( #18990 )
...
[skip ci]
2022-11-24 10:54:46 +05:30
Faris Ansari
5695346668
fix: allow mark tag in texteditor ( #18871 )
2022-11-14 17:33:28 +05:30
Ritwik Puri
518b7e1c66
Merge pull request #18251 from Aradhya-Tripathi/bg-submissions
...
feat: Background submissions for submittable doctypes
2022-11-12 20:06:57 +05:30
Ankush Menat
6c01d1d417
refactor: hmac generation
...
Reduce code duplication
2022-11-12 13:05:57 +05:30
Aradhya Tripathi
07bd958dfd
Merge branch 'develop' into bg-submissions
2022-11-12 08:37:55 +05:30
Ankush Menat
ba27434d81
refactor: Use safer hashing algorithm for verified_command ( #18848 )
2022-11-11 21:42:51 +05:30
Ankush Menat
668a730788
fix: avoid patching QB if already patched
2022-11-11 16:38:05 +05:30
Anand Baburajan
bc0abd9cfd
feat(util): add is_last_day_of_the_month ( #18835 )
...
* feat: add is_last_day_of_the_month
2022-11-10 15:18:49 +05:30
Ankush Menat
f34f7030a3
refactor: remove txt param from generate_hash use
2022-11-10 11:56:48 +05:30
Ankush Menat
66f5f4dd46
refactor(db): deprecated unused functions
2022-11-09 16:10:09 +05:30
Ankush Menat
ce360b6fce
feat: Set default SQL statement timeouts
2022-11-08 14:51:43 +05:30
Daizy Modi
62c4a3c020
fix: check permission before print or download document ( #18757 )
2022-11-06 19:59:59 +05:30
Ankush Menat
44a5bdc3f1
fix: ignore internal methods ( #18784 )
2022-11-06 19:18:30 +05:30
Ankush Menat
e02b90cd5b
fix: dont allow reading attributes of unsafe objects ( #18706 )
2022-11-06 17:33:02 +05:30
Aradhya
f587140f6f
Merge branch 'develop' of https://github.com/Aradhya-Tripathi/frappe into bg-submissions
2022-11-04 18:34:41 +05:30
Ankush Menat
0ed7600604
build: py3.11 support ( #18550 )
...
* chore: bump RestrictedPython
* ci: use py3.11 on development version
* fix: py311 compat changes
* chore: bump to final versions
2022-11-03 20:49:05 +05:30
Ankush Menat
56640a0723
fix: support symlinked and /files directory
...
Easiest way to move site/files or site/private directories is to symlink
them, the validation for file path was failing because it resolves only
until site path.
Resolving real path doesn't seem to be _REALLY_ required here.
2022-11-01 13:25:21 +05:30
Ankush Menat
f0ab6cb488
Revert "fix: use is_file_path_valid instead of is_safe_path ( #18316 )" ( #18688 )
...
This reverts commit d35aa6c545 .
2022-11-01 12:40:54 +05:30
Sagar Vora
d35aa6c545
fix: use is_file_path_valid instead of is_safe_path ( #18316 )
...
* fix: use `validate_file_path` instead of `is_safe_path`
* test: specify `is_private` for file with private URL
2022-10-28 13:56:24 +05:30
Ankush Menat
1c613179bb
fix: correct stacklevel for warnings ( #18633 )
...
Stacklevel=2 just points to frame that called warning and not frame
where it originated. This frame is useless in most cases as you can just
`grep` for it instead of looking at log.
stacklevel=3 gives frame which is calling the code with warnings.
[skip ci]
2022-10-28 12:22:24 +05:30
Aradhya
7cefc240ac
fix: merge conflicts
2022-10-21 14:22:51 +05:30
Daizy Modi
fce9ccedaa
fix: only execute generator if value is not found in redis cache ( #18472 )
...
* fix: use of generator in
* fix: improve docstring
* fix: improve docstring
* fix: directly assign value to flags
Co-authored-by: Daizy <DaizyModi>
2022-10-20 16:48:03 +05:30
Faris Ansari
4f650854b8
fix(dx): resolve_class ( #18417 )
...
* fix(resolve_class): ignore False values
* fix: allow multiple arguments
* fix: remove unnecessary condition
* test: resolve_class
2022-10-15 17:40:22 +05:30
Aradhya
3852eaea74
feat: Added on_success and on_failure to enqueue
2022-10-15 14:41:08 +05:30
Ankush Menat
eebf7e1fff
chore: dead code removal ( #18410 )
...
* chore!: Drop dead code related to configs/moduelview
* chore!: Drop dead boilerplate
* chore: drop desktop.py boilerplate
* chore!: Remove report dump
2022-10-13 15:55:40 +05:30
Ankush Menat
45645c3f73
feat: consistent, translatable timeline messages ( #17526 )
...
reapply accidentally reverted commit
[skip ci]
2022-10-12 22:27:04 +05:30