Commit graph

43131 commits

Author SHA1 Message Date
Shariq Ansari
4e4e77b1e5 fix: added close message button on form message 2023-08-23 15:37:58 +05:30
Shariq Ansari
e0944419ca fix: moved doctypes's conections to separate tab 2023-08-23 15:16:05 +05:30
Ankush Menat
56b409d069
fix: limit job count in RQ failed registry (#22162)
* fix: limit job count in RQ failed registry

* chore: remove unnecessary test

This just checks if func is called with right values, which keep
changing as things evolve.
Everything is individually tested now so need for this test.
2023-08-23 09:21:51 +00:00
Ankush Menat
498cf04e67
Merge pull request #22126 from ankush/trace_sql_queries
feat: basic tracing using monitor trace id
2023-08-23 14:40:24 +05:30
HENRY Florian
54c36add24
chore: update fr translation (#22164)
* chore: update fr translation

* chore: update fr translation

* chore: update fr translation


[skip ci]
2023-08-23 14:20:58 +05:30
Ankush Menat
11806c37a0 feat: error logs to include trace id 2023-08-23 14:20:24 +05:30
Ankush Menat
db90d4504e fix: let web servers set monitor trace id 2023-08-23 14:11:19 +05:30
Ankush Menat
59e49d89fe feat: include Trace ID in all SQL queries 2023-08-23 13:59:24 +05:30
mergify[bot]
fe820ae8c8
Merge pull request #22142 from barredterra/abs-pymodule-path
feat(DX): return absolute path
2023-08-23 05:40:38 +00:00
Raffael Meyer
6ea739e4cf
refactor(File): explicitly import utils (#22143) 2023-08-23 11:08:22 +05:30
Ankush Menat
04a13ca97c
fix: frappe.clear_cache should drop all keys (#22156)
We are dropping some keys which are hardcoded in function.

- this over time might be out of sync with rest of the code.
- other apps cache stuff too.

Best fix: just clear everything.
2023-08-23 11:02:45 +05:30
Rutwik Hiwalkar
04c8a54900
chore: remove unused import (#22157) 2023-08-22 23:36:31 +05:30
Ankush Menat
88c5c7546f
Merge pull request #22149 from ankush/email_queue_errors
fix: don't enqueue sendmail jobs
2023-08-22 21:29:15 +05:30
Sagar Vora
82b5dfec5c
Merge pull request #22148 from resilient-tech/fix-doc-label 2023-08-22 10:03:39 +00:00
Ankush Menat
89c0c1b07b fix: don't enqueue sendmail jobs
- sendmail just creates email queue, it should be done on the fly.
- if OutgoingEmailError occurs then skip all future ones.
2023-08-22 15:25:32 +05:30
Sagar Vora
29e5ad4fca fix: set correct document label in case doc is of type str 2023-08-22 15:24:26 +05:30
barredterra
158a6f8140 refactor: use get_app_path in get_module_list 2023-08-21 17:53:47 +02:00
barredterra
8971709655 feat: return absolute site path 2023-08-21 17:53:10 +02:00
barredterra
41b0308951 refactor: use higher level get_app_path
It's just nicer to read; less mental load.
2023-08-21 17:15:45 +02:00
barredterra
8cfee4dfe2 feat: return absolute pymodule path 2023-08-21 17:13:35 +02:00
Raffael Meyer
8f7a4f6697
Merge pull request #21873 from blaggacao/dont-exceed-python-module-boundary 2023-08-21 17:10:27 +02:00
Raffael Meyer
8f1c083857
Revert "chore: typo" (#22139)
This reverts commit 3784ce8507.
2023-08-21 18:56:48 +05:30
ruthra kumar
08d5b59778
refactor: filter on name while fetching custom column (#22133) 2023-08-21 15:05:10 +05:30
Himanshu Shivhare
3784ce8507
chore: typo
typo fix

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-08-21 14:43:48 +05:30
Shariq Ansari
769fa08a00
Merge pull request #22134 from shariquerik/create-doctype-with-meta 2023-08-21 13:30:45 +05:30
Ankush Menat
85ca83ae45 Revert "feat: allow re-running patches in developer mode"
This reverts commit 3bbe4498a0.
2023-08-21 13:06:42 +05:30
Ankush Menat
8ddde056a0 fix: dont allow NamedExpr in safe_eval 2023-08-21 12:42:21 +05:30
Ankush Menat
fd740b780b fix: use vanilla eval 2023-08-21 12:09:45 +05:30
Ankush Menat
eede56d5df fix: dont allow writes to live objects 2023-08-21 12:04:55 +05:30
Shariq Ansari
05adc0b777 fix: Unable to create doctype using 'Copy To Clipboard' 2023-08-21 12:01:56 +05:30
Ankush Menat
1c15c556d4 test: add more safe_eval tests 2023-08-21 11:59:53 +05:30
Ankush Menat
f449262050 fix: allow dict access and unpacks 2023-08-21 11:59:53 +05:30
Ankush Menat
14b62d7ff1 fix: correct getattr implementation for safe_eval 2023-08-21 11:59:53 +05:30
Ankush Menat
3531f58b54 refactor: unify safe_exec and safe_eval code
A lot of duplication was present for this code.
2023-08-21 11:59:53 +05:30
mergify[bot]
d6d82eb581
Merge pull request #22110 from resilient-tech/perf-as_dict-2
perf: undo regression in `as_dict` performance
2023-08-21 06:10:54 +00:00
mergify[bot]
2a086cf9c6
Merge pull request #22128 from resilient-tech/unsafe-attrs-jinja
fix: disallow unsafe attrs in jinja env
2023-08-21 04:55:53 +00:00
Sagar Vora
01c269726f fix: disallow unsafe attrs in jinja 2023-08-20 22:26:19 +05:30
Raffael Meyer
6fbfc3192d
Merge pull request #21837 from barredterra/refactor-attach-print 2023-08-20 17:47:58 +02:00
barredterra
5944d387be Merge remote-tracking branch 'upstream/develop' into refactor-attach-print 2023-08-20 15:38:05 +02:00
David Arnold
8dabd2bae6
refactor: make the app source accessor explicit
The parent folder of a python module (inside `./site-packages`) can be
`./lib`. Separate code paths that depend on the app source into its own
getter so that patching that function becomes easier in those cases
where the python module is not served from the source checkout.
2023-08-20 01:11:05 +02:00
Sagar Vora
91ceb889cc test: ensure only property can be called for virtual docfields 2023-08-18 23:04:22 +05:30
Sagar Vora
151874c035 test: ensure get_permitted_fieldnames is called only once per doc 2023-08-18 22:47:37 +05:30
Sagar Vora
7dc67f2feb chore: add back getattr for virtual docfields which get value from a property 2023-08-18 21:51:56 +05:30
Ankush Menat
8243d3d5a3 fix: dont guess extension without filename 2023-08-18 18:59:42 +05:30
Ankush Menat
412c9811a9
Merge pull request #22109 from ankush/misc_fixes
fix: misc fixes related to setup etc
2023-08-18 18:18:16 +05:30
RitvikSardana
18cdfc3b84
fix: Re Run Logs in System Console (#22103) 2023-08-18 18:10:54 +05:30
Ankush Menat
66ea947ae6 fix: clear system settings cache explicitly 2023-08-18 17:48:22 +05:30
Ankush Menat
8ec5a8e84b refactor: Add all roles while creating new user 2023-08-18 17:48:14 +05:30
Ankush Menat
a1927bcf31 fix: delete prepared report job from queue 2023-08-18 17:48:14 +05:30
Ankush Menat
d1495bb991 perf: ignore log links and disable in background jobs
Scheduled job type keeps getting updated for every scheduled job. This
is not required at all and not triggered by user.

This feature is for prioritizing user selected links, background jobs
should be ignored.
2023-08-18 17:47:58 +05:30