Commit graph

38493 commits

Author SHA1 Message Date
marination
4dcd579b47 fix: Translate Footer Items 2025-02-25 13:22:57 +01:00
Ankush Menat
c229f5a34a
fix: handle large URL on webhook logs (#31428)
Missed in https://github.com/frappe/frappe/pull/24761
2025-02-25 09:57:29 +00:00
Soham Kulkarni
0040c7f852
Merge pull request #31360 from sokumon/attach-file-spam-issue
fix: check if duplicate_file url matches incoming file url
2025-02-25 14:33:35 +05:30
Soham Kulkarni
ce237efd58
Merge pull request #31386 from sokumon/orphan-child-table
fix: add check for child doctype if it has a valid parent
2025-02-25 14:33:20 +05:30
Sagar Vora
ffba20a160 perf: faster _init_child 2025-02-25 14:01:09 +05:30
Sagar Vora
aae5860efc perf: faster init_valid_columns 2025-02-25 13:20:35 +05:30
Ankush Menat
573028ad3f
fix: always persist all indexes added via db.add_index (#31177)
* fix: always persist all indexes added via db.add_index

* fix: Add `if not exists` clause for index creation

This allows replica to have same index and master to add it later
without causing SQL error. Just minor DX benefit.

* fix(postgres): don't cache if table doesn't exist

* chore: revert postgres changes

Hopeless to maintain this
2025-02-25 07:25:49 +00:00
Ankush Menat
d2fe49c0c2 fix: potential mismatch between meta and formmeta 2025-02-25 12:25:45 +05:30
Ankush Menat
fe3e5021a4 perf: use client_cache for form meta 2025-02-25 12:25:42 +05:30
Ankush Menat
7721fdb054
fix: clear cache using client_cache (#31420)
It's faster than relying on indirect invalidations. This was avoided
before only because delete_keys didn't exist on client_cache.
2025-02-25 06:43:39 +00:00
Sagar Vora
c31cb69d5c fix: update reserved keywords 2025-02-25 12:00:51 +05:30
Ankush Menat
9ef1ad279a
test(health_report): avoid silently failing in tests (#31417) 2025-02-25 05:40:10 +00:00
Ankush Menat
dc5bbc15ce
fix: Wild card cache clearing for doctypes (#31415)
Clear all keys that contain doctype name. This is just a hack to avoid
dealing with many random partial caches that exist.

Possible improvement:
- Standardize ALL doctype specific cache keys so this becomes simple.
2025-02-25 05:19:41 +00:00
Ankush Menat
55ad9c9c94
Merge pull request #31377 from cogk/feat-breaking-scheduler-opt-in-to-dormant_days
fix: allow disabling auto-dormancy, disable on self hosted
2025-02-25 10:47:53 +05:30
Sagar Vora
99574a74e2
Merge pull request #31400 from sagarvora/better-table-fieldnames 2025-02-25 10:43:29 +05:30
Ankush Menat
967d3e828c fix: granular status in system health report
differentiate between dead process, manually disabled or dormant.
2025-02-25 10:38:25 +05:30
Ankush Menat
6db7cb096d fix: Better proxy for active site and disable on selfhosted 2025-02-25 10:37:29 +05:30
Ankush Menat
0d85bec58f fix: allow disabling dormancy behaviour
Set it to 0 to never trigger this again.
2025-02-25 10:37:29 +05:30
Corentin Forler
83f572d3d6 feat(scheduler)!: Make dormant sites opt-in 2025-02-25 10:37:29 +05:30
Ankush Menat
efee329adf
fix: Unlock old locks automatically (#31411) 2025-02-24 13:49:08 +00:00
Nikhil Kothari
9c6f25afb0
fix: fetch data from submitted child rows for global search indexing (#31405) 2025-02-24 18:27:47 +05:30
Sagar Vora
26b5d8de15 perf: better _table_fieldnames cache 2025-02-24 17:41:00 +05:30
Sagar Vora
a811aecbc2
Merge pull request #31395 from sagarvora/no-new-weakref 2025-02-24 16:16:14 +05:30
Ankush Menat
dd44b3dba6
perf: cast int-link field filters to string (#31396)
Comparing varchar field with ints makes indexes unusable in MariaDB.

This PR is just one small fix for DB query, similar fixes won't be made
for DB APIs which do not assume anything about database schema.
2025-02-24 10:39:55 +00:00
Sagar Vora
fc7202ade4 perf: dont create a new weakref.ref for each child 2025-02-24 15:57:42 +05:30
Sagar Vora
b381cc4874
Merge branch 'develop' into ref-docstatus 2025-02-24 15:22:06 +05:30
Sagar Vora
be5e856dd9
Merge pull request #31391 from sagarvora/perf-nosingledispatchmethod 2025-02-24 15:21:05 +05:30
Abdeali Chharchhodawala
e38d60b5ec
fix: check score in response to set strength indicator (#31384) 2025-02-24 15:18:44 +05:30
Frappe PR Bot
39b8e31c5a
chore: update POT file (#31387) 2025-02-24 15:17:31 +05:30
Sagar Vora
bb1080dfac perf: dont use singledispatchmethod 2025-02-24 15:11:14 +05:30
Sagar Vora
fcf657ba80 perf: improved DocStatus API and other minor improvements 2025-02-24 12:51:10 +05:30
sokumon
d943c9e463 fix: dont skip if any record is present 2025-02-23 19:49:41 +05:30
sokumon
78df15970c fix: add check for child doctype if it has a valid parent 2025-02-23 00:59:03 +05:30
sokumon
0c945af0fb fix: cleanup save_file_on_filesystem method 2025-02-22 18:16:07 +05:30
sokumon
287a5f50a9 fix: add duplicate file url if no file url 2025-02-22 17:21:18 +05:30
sokumon
620c8bfef2 fix: cleanup copied methods and simpler fix 2025-02-22 13:23:26 +05:30
git-avc
17ea9e2a1c fix: let's customize grid_page_length 2025-02-21 20:21:37 +01:00
Frappe PR Bot
344e5348b4
fix: sync translations from crowdin (#31191) 2025-02-21 18:47:19 +01:00
Corentin Forler
f72dc93446
fix(workflow_action): Pass context as dict to render template 2025-02-21 14:47:28 +01:00
Ejaaz Khan
42f9e537d0
Merge pull request #31372 from frappe/fix-custom-print
fix(print): handle custom format with custom module
2025-02-21 14:36:11 +05:30
Ankush Menat
37da1d43bd
fix: remove duplicate clear_cache calls (#31374)
This is internally handled in clear_document_cache

Fix was only required for websitegenerator specific things.
2025-02-21 08:54:05 +00:00
Suraj Shetty
d8478d7a03
Merge pull request #31321 from asmitahase/one-more-color 2025-02-21 13:57:43 +05:30
Hussain Nagaria
4f453f2ef2 fix(print): handle custom format with custom module
Co-authored-by: Aman <amanupadhayay2906@gmail.com>
Co-authored-by: Khushbu <mittalk1802@gmail.com>
Co-authored-by: Manya <girdharmanya28@gmail.com>
Co-authored-by: Ritika <ritika@korecent.com>
Co-authored-by: Siddharth <siddharth.khati03@gmail.com>
Co-authored-by: Yashvi <yashvi@korecent.com>
2025-02-21 12:57:47 +05:30
Hardik Zinzuvadiya
1d76370424 feat: Add Grid Page Length field for child tables in DocType 2025-02-21 12:19:05 +05:30
Ankush Menat
51e08371b0
fix: erase cron frequency when type changes (#31368)
Right now hiddent cron field is taking priority over event_frequency.
Which is confusing and not something anyone expects.
2025-02-21 05:23:18 +00:00
Ankush Menat
f90a450bd4
feat: specify row compression for tables (#31361)
Certain tables contain A LOT of duplicate data, it makes sense to enable
compressed row format on them by default. I've seen 5-10 fold reduction
in DB size after enabling compressed format on select few tables.

This has some performance overhead:
- both compressed and uncompressed pages live in buffer pool.
- compression/decompression

Note:
- These cons don't apply much on DocTypes I am enabling this for.
- I am not enabling this on existing sites, migration can take a long
  time! Do it manually with `transform-database` command if you want to.
2025-02-21 09:44:40 +05:30
Corentin Forler
7f0aa436f3
Merge pull request #31363 from cogk/fix-check-empty-assign_to-comment
fix(assign_to): Check if HTML description is empty
2025-02-21 00:03:00 +05:30
Corentin Forler
07b080abcb
fix(EmailAccount): Fix always_bcc condition 2025-02-20 17:44:53 +01:00
sokumon
5557ede3d5 fix: typo in method name 2025-02-20 19:33:43 +05:30
sokumon
4ba8ec637d fix: check if duplicate_file url matches incoming file url 2025-02-20 19:20:20 +05:30