Commit graph

48877 commits

Author SHA1 Message Date
Sagar Vora
19f54c8a6e
Merge pull request #31423 from sagarvora/perf-init-child 2025-02-25 14:12:03 +05:30
Sagar Vora
ffba20a160 perf: faster _init_child 2025-02-25 14:01:09 +05:30
Sagar Vora
7ee16afa3f
Merge pull request #31422 from sagarvora/perf-get-valid-cols 2025-02-25 13:32:48 +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
3485c091e5
Merge pull request #31421 from ankush/form_meta_client_cache
fix: use client_cache for form meta
2025-02-25 12:35:07 +05:30
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
6bbbc916d5
Merge pull request #31419 from sagarvora/update-reserved-words 2025-02-25 12:10:47 +05:30
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
4e7e2b7f21
Merge pull request #31389 from sagarvora/ref-docstatus 2025-02-24 15:34:58 +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
Ejaaz Khan
5f4511ba4e
Merge pull request #31382 from git-avc/grid_length_custom
fix: let's customize grid_page_length
2025-02-22 12:07:54 +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
Ejaaz Khan
4dca5185cf
Merge pull request #31378 from cogk/fix-workflow-render-template-context-should-be-dict
fix(workflow_action): Pass context as dict to render template
2025-02-21 21:35:17 +05:30
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
Ejaaz Khan
dc01badc3f
Merge pull request #31371 from Z4nzu/grid_page_length_feature
feat: Add Grid Page Length field for child tables in DocType
2025-02-21 13:08:33 +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
Akhil Narang
0b342fa4c2
Merge pull request #31364 from cogk/fix-always_bcc-empty-string-condition
fix(EmailAccount): Fix always_bcc condition
2025-02-20 23:48:10 +05:30
Corentin Forler
07b080abcb
fix(EmailAccount): Fix always_bcc condition 2025-02-20 17:44:53 +01:00
Soham Kulkarni
c600314b4c
fix: change condition to not generate more File records (#31181)
* fix: check if name exists

* fix: if name is null add file_name in filter
2025-02-20 18:40:56 +05:30
Sagar Vora
6ef67c7a38
Merge pull request #31357 from sagarvora/reqd-fields-only 2025-02-20 17:57:29 +05:30