Commit graph

6114 commits

Author SHA1 Message Date
Sagar Vora
e01b6ff4ec test: improve report custom permission test 2025-06-27 14:35:34 +05:30
Sagar Vora
1812cdb613 test: improve report permission test 2025-06-27 14:30:52 +05:30
Ankush Menat
9e437cd071
fix: Git branch is not mandatory (#33131)
You can have an app without git repo 🤷
2025-06-27 04:43:30 +00:00
Sagar Vora
23becc0aa7 fix: hide Allow Import option for single doctypes 2025-06-24 17:25:29 +05:30
Soham Kulkarni
92adc5a3a0
Merge pull request #33055 from sokumon/prevent-recursion
fix: increment retry_count first to prevent recursion
2025-06-24 16:22:19 +05:30
sokumon
baf29c896c fix: remove like logic from permission query 2025-06-24 16:04:31 +05:30
Akhil Narang
60dd0377e8
refactor: store hide_descendants within user permissions data
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-06-24 11:18:23 +05:30
Ejaaz Khan
a723876bfb
Merge pull request #33052 from iamejaaz/37997-fix-linking-document
fix: unscrub after quote
2025-06-23 13:58:50 +05:30
Ejaaz Khan
acdc54ce8b fix: unscrub after quote 2025-06-23 13:44:41 +05:30
Ejaaz Khan
c4a5582985
Merge pull request #33037 from iamejaaz/37997-fix-linking-document
fix(email): resolve case mismatch in auto-linking from email address
2025-06-21 15:11:10 +05:30
Ejaaz Khan
73cf975a9a fix(email): resolve case mismatch in auto-linking from email address 2025-06-21 14:30:51 +05:30
Ankush Menat
18ecd6603b
perf: ~2x faster scheduling (#33027)
* perf: Use cached settings

* perf: Cache parsed crons, ~2x faster scheduling
2025-06-20 12:43:22 +00:00
Ankush Menat
02d72d2bbb
perf: faster gzip compression (#33014)
Same as https://github.com/frappe/press/pull/2400
2025-06-19 12:52:58 +00:00
Sagar Vora
e355a175d8
fix: always defer access log insertion (#32976) 2025-06-18 07:03:11 +05:30
Sagar Vora
b3e1eda4c8
feat: global frappe.in_test flag (#32960)
* feat: global `frappe.in_test` flag

* feat: helper utility to toggle `frappe.in_test`

* fix: use `toggle_test_mode` util

* fix: use `frappe.in_test`

* chore: add comment explaining global `in_test`

* chore: ignore commit replacing flag usage

* test: temporarily disable `frappe.in_test`

this worked earlier because flag was set in werkzeug.local which was separate for API test client

* test: add comment explaining change
2025-06-17 19:19:31 +05:30
Ankush Menat
7e2b4955f8
test: Cancel pending jobs in RQ tests (#32970)
This casues flake sometimes when other tests don't cleanup long running
pending jobs.
2025-06-17 13:27:36 +00:00
Sagar Vora
821e2dc689 chore: remove _make_access_log 2025-06-16 17:16:13 +05:30
robertmx
5052f55372
fix: transaction log report. (#32882) 2025-06-12 11:14:43 +05:30
Ejaaz Khan
a0e4f4ec3f
Merge pull request #32607 from Vengadesh27/timeline_format
feat: configurable timeline date format
2025-06-11 19:42:57 +05:30
Ejaaz Khan
9720dd8141 Merge branch 'develop' into timeline_format 2025-06-11 17:11:49 +05:30
Saqib Ansari
6bf73ef9c7
Merge pull request #32851 from nextchamp-saqib/setup-wizard-fixes
fix: setup wizard fixes
2025-06-11 17:07:19 +05:30
Ankush Menat
49f582ae57 perf: Use lazy doc in a lot more places 2025-06-11 09:55:45 +05:30
sokumon
af490b4e12 fix: set bcc in emails 2025-06-10 16:36:12 +05:30
Ankush Menat
8088bd3891
chore: Drop empty UnitTestCases (#32867)
Next to zero adoption after introduction, just noise in codebase.

I don't see any point in arguing about purity of test cases when
existence and quality of test cases is usually the bigger problem.

Dropped using semgrep
2025-06-10 05:28:53 +00:00
Ankush Menat
9de31d8516 ci: Don't run CI with PYTHONOPTIMIZE flag
🤦
2025-06-10 10:10:54 +05:30
Sagar Vora
7afe6dbbda
Merge pull request #32858 from sagarvora/add-test-comments
chore: add comments for test code
2025-06-09 16:04:18 +00:00
Sagar Vora
a822b2840d chore: add comments for test code 2025-06-09 21:22:59 +05:30
Soham Kulkarni
5d194fdbd3
Merge pull request #32814 from sokumon/communication-query-perm
fix: show communication based on recipient and sender
2025-06-09 16:32:12 +05:30
sokumon
d727b16a2b fix: show communication based on recipient and sender 2025-06-09 15:05:28 +05:30
Saqib Ansari
2a52e3763c fix: setup completion logic for india_compliance app
* india_compliance app uses the erpnext setup wizard stages, so it doesn't have its own stages to display when opening the app
* issue is only replicable when india_compliance is installed after erpnext setup is complete
2025-06-09 14:57:37 +05:30
Ankush Menat
f9ff807e4c
refactor: Rename get_settings -> get_single_value (#32840)
Not all single doctypes are settings, so this is better. Implicit
caching is fine, same is done for `db` APIs on singles. We *should* aim
for 100% correctness of caching implementation, especially for singles.

Thanks to @netchampfaris for the suggestion.
2025-06-09 04:20:29 +00:00
Vengadesh27
b2059545f4
Merge branch 'develop' into timeline_format 2025-06-06 20:55:11 +05:30
Ankush Menat
caf415f13e
feat: get_settings (#32821)
* feat: get_settings

get_cached_value doesn't work well with singles because you either need
to pass `None` or repeat doctype name... both are awekward and easy to
shoot yourself in foot with.

* refactor: Use cached settings
2025-06-06 18:34:17 +05:30
Akhil Narang
1a3602f715
feat: add in a doctype to optionally track API Requests (#32622) 2025-06-06 13:22:25 +05:30
Vengadesh
d90034f10e feat: Add user-configurable setting with system fallback 2025-06-05 23:58:37 +05:30
Ejaaz Khan
aebea5db98
Merge pull request #32746 from niraj2477/parse-html
refactor: parse html data in Data exporter
2025-06-03 15:08:54 +05:30
Ejaaz Khan
7d4e703318
Merge pull request #32733 from iamejaaz/json-to-csv-prepared
feat: add download as csv option in prepared report
2025-06-03 14:45:11 +05:30
rohitwaghchaure
5c6b2b5bec
refactor: track completed app setup wizards and re-run the setup wizard upon new app installation. (#32640) 2025-06-03 12:36:22 +05:30
Ankush Menat
2baedc18c6
feat(DX): let users skip next scheduled job execution (#32753)
Useful sometimes when configuring or re-configuring CRONs to avoid
duplicate executions.

Also, you can skip anniversary emails 🥴
2025-06-03 04:18:45 +00:00
Niraj Gautam
769952ecf5
refactor: 🔨 Parse html data in Data exporter 2025-06-02 11:08:15 +05:30
Ejaaz Khan
7d8c90dc41 refactor: remove unnecessay try catch 2025-05-30 21:14:11 +05:30
Ejaaz Khan
6bb2981329 refactor: remove unused import 2025-05-30 20:29:07 +05:30
Ejaaz Khan
5982741233 refactor: send system notification instead of realtime 2025-05-30 20:20:18 +05:30
Ejaaz Khan
e641483493 chore: remove debugging statement 2025-05-30 19:21:11 +05:30
Ejaaz Khan
6662d4a263 feat: add download as csv option in prepared report 2025-05-30 19:15:08 +05:30
Vengadesh
4659ee2a00 chore: rename field 'show_absolute_datetime_format' to 'show_absolute_datetime_in_timeline' 2025-05-27 22:19:02 +05:30
Ankush Menat
74aed9e231
refactor: redo maintenance cron logic (#32661)
The effect is same as before, except this allows migrating jobs between
old vs new queues without causing double executions on day of
migrations.
2025-05-25 05:02:29 +00:00
Ankush Menat
46041cfe71 fix: server script auto completions
ace do be like that, this isn't so important to figure out exact async
chain that makes it work 🤷
2025-05-22 22:16:34 +05:30
Ankush Menat
2300e6afba feat: autocompletions in system console 2025-05-22 22:14:16 +05:30
Ejaaz Khan
c74667caa5
Merge pull request #32567 from Vengadesh27/search_bar
feat: Dynamic and configurable child table search bar
2025-05-22 10:31:38 +05:30