Commit graph

48493 commits

Author SHA1 Message Date
Ankush Menat
f963758a1d perf: Avoid duplicate queries 2025-01-14 18:48:28 +05:30
Ankush Menat
a8265bdc30 perf: avoid unnecessary query for user type
WHY?
2025-01-14 18:45:08 +05:30
Ankush Menat
80f324cc04 perf: cache simple jinja templates 2025-01-14 18:26:56 +05:30
Ankush Menat
a89fd99794 perf: keep jloader across requests
This doesn't have anything that needs to be created for each request.
2025-01-14 18:18:19 +05:30
Ankush Menat
e768f679ff perf: Speedup rendering of simple templates
Also, slowdown rendering of complex ones. Nothing comes free.
2025-01-14 18:11:27 +05:30
Ankush Menat
c72e91f465
fix: backward compatible date parsing (#29155)
Even though we never use tz aware object in frappe this function
previously used to retain them, so keep TZinfo for sake of compat.

Nothing should be affected ideally.
2025-01-14 11:05:55 +00:00
Ankush Menat
7f30905b10
Merge pull request #29154 from ankush/perf/redundant_translations
perf: Dont send useless translations
2025-01-14 15:47:58 +05:30
Ankush Menat
b32f74e6af perf: Dont send useless translations
src => target same strings are not useful to anyone, unnecessary
computations.
2025-01-14 15:46:21 +05:30
Ankush Menat
7ae7e87178
Merge pull request #29150 from ankush/perf/misc_page_render
perf: speedup `get_website_settings`
2025-01-14 15:32:22 +05:30
Ankush Menat
9a0429ad1e
perf: Skip one dump + load on boot.json (#29153)
Since we are json.dumping it, there's no point in sanitizing using SCRIPT_TAG_PATTERN.

This removes dumb json dump + load + dump.
2025-01-14 09:52:20 +00:00
Ankush Menat
b6a0e849a0 fix: Avoid mixing client cache and redis_wrapper 2025-01-14 15:20:47 +05:30
Ankush Menat
cc838022b1 perf: use client cache for fetching website settings and theme 2025-01-14 14:40:25 +05:30
Ankush Menat
aed412f9eb perf: Use client-cached website settings 2025-01-14 14:36:35 +05:30
Ankush Menat
b49d512404 feat: cache documents in client cache
No need to query 1 key at a time.
2025-01-14 14:33:10 +05:30
Ankush Menat
d6f47e8060 perf: use cached user for fetching time zone 2025-01-14 14:15:06 +05:30
Ankush Menat
b338bdd5f2
Merge pull request #29149 from ankush/perf/client_assets_json
perf: use client cache for assets.json
2025-01-14 14:14:13 +05:30
Ankush Menat
cde1662791 perf: use client side cache for assets.json
Single shared key, worth the costs.
2025-01-14 13:57:41 +05:30
Ankush Menat
4d1ef02e25 feat: generator support for client cache
Similar to redis, for ergonomics
2025-01-14 13:55:28 +05:30
Ankush Menat
fab464effb feat: support shared keys in client cache 2025-01-14 13:52:29 +05:30
Ankush Menat
d46e2c20af
fix: Forward shared flag to cache generator (#29146)
Right now assets.json is read on every requests because of this bug.
2025-01-14 08:15:29 +00:00
Ankush Menat
f6c8808483
Merge pull request #29145 from ankush/perf/metadata_version
perf: use client cache for metadata version
2025-01-14 13:38:30 +05:30
Ankush Menat
374bba5979 perf: use client cache for metadata version 2025-01-14 13:28:42 +05:30
Sumit Bhanushali
3a3b1d8499
Merge pull request #29138 from frappe/email_action
fix: move ifnull logic to applicaiton for better orm support
2025-01-14 12:39:54 +05:30
Sumit Bhanushali
2b08d7c348 fix: move ifnull logic to applicaiton for better orm support 2025-01-14 12:29:20 +05:30
Ankush Menat
14e46495c0
test: use environment's python (#29137)
This test is only passing because ci is sourcing env, it won't work IRL
like this.
2025-01-14 06:21:44 +00:00
Akhil Narang
1b52de9b97
Merge pull request #29133 from ruthra-kumar/mandatory_scheduler_event
refactor: make scheduled_against mandatory
2025-01-14 11:11:46 +05:30
ruthra kumar
4ab7c103c1 refactor: make scheduled_against mandatory 2025-01-14 10:49:32 +05:30
Frappe PR Bot
cb414ff752
chore: update POT file (#29116) 2025-01-13 18:00:55 +01:00
Ankush Menat
98c0f8d4f7
Merge pull request #29127 from ankush/gunicorn_fork
build: switch to gunicorn fork
2025-01-13 20:08:59 +05:30
Ankush Menat
2214116318 test: sanity tests for gunicorn workers 2025-01-13 19:55:30 +05:30
Ankush Menat
678d234bd9 build: switch to gunicorn fork
This adds request timeouts for gthread workers.

`gunicorn` repo isn't that active and this issue has been brought up
multiple times so I don't think it's gonna get fixed upstream. This is
our last resort.
2025-01-13 19:55:28 +05:30
Akhil Narang
a26fa20683
Merge pull request #29122 from ruthra-kumar/custom_persistant_cron_jobs
feat: Allow for configurable persistant cron jobs without hooks.py
2025-01-13 12:21:27 +05:30
Ejaaz Khan
0dfc347563
refactor: enhance button UX for better user experience (#29114) 2025-01-13 11:51:55 +05:30
Ejaaz Khan
2fb0629197
fix: alignment Issues with Serial Numbers and Descriptions (#29093)
* fix: serial numbers not aligned with other cells

* refactor: remove top margin from editor
2025-01-13 11:50:01 +05:30
ruthra kumar
8e6feb62c2 refactor: link to scheduled job type 2025-01-13 10:39:49 +05:30
ruthra kumar
58e291d61c feat: Scheduler Event 2025-01-13 10:31:31 +05:30
Ankush Menat
fc1c3f895a
Merge pull request #29110 from ankush/bump_gunicorn
build(deps): bump gunicorn to latest
2025-01-10 17:01:15 +05:30
Ankush Menat
924d615609 build(deps): bump gunicorn to latest
Nothing breaking seems to affect us, can roll out after some internal
testing for a while.
2025-01-10 16:37:58 +05:30
Soham Kulkarni
2f0e5a0ce9
Merge pull request #29097 from iamejaaz/splash-logo-style
fix: splash logo is not rendering properly
2025-01-10 15:54:55 +05:30
Soham Kulkarni
3c0fe07641
Merge pull request #29101 from iamejaaz/dropdown-top-seperator
fix: hide dropdown top separator in desktop view
2025-01-10 15:54:19 +05:30
Soham Kulkarni
4f9fb9f76c
Merge pull request #29100 from sokumon/treeview-ux
fix: Treeview ux cleanup
2025-01-10 15:52:31 +05:30
sokumon
5a80b79be9 fix: include/exclude labels added for better ux 2025-01-10 15:16:18 +05:30
Ankush Menat
aa7f4596b6
Merge pull request #29094 from ankush/lock_timeout
fix: improve migrate reliablity
2025-01-10 14:29:42 +05:30
Ankush Menat
4805f1d7c4 fix: force kill all other DB connections before migrating 2025-01-10 14:05:29 +05:30
Soham Kulkarni
16c49f5ab5
Merge pull request #29103 from sokumon/right-sidebar-height
fix(style): fix right sidebar height
2025-01-10 12:23:36 +05:30
Akhil Narang
198ee6cd81
Merge pull request #29105 from akhilnarang/fix-naming-conflicts
fix: don't allow creating an app/site if there is a site/app with the same name already
2025-01-10 12:11:58 +05:30
Akhil Narang
ef341933e4
fix(make-app): don't allow creating an app with the same name as a site
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-10 12:02:40 +05:30
Akhil Narang
2610b8435c
fix(new-site): don't allow creating a site with the same name as an app
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-10 11:25:13 +05:30
Suraj Shetty
0202de361f
Merge pull request #29104 from the-bokya/develop 2025-01-10 11:18:05 +05:30
Ayush Chaudhari
522220ba54 fix: Reports were not viewable from desk due to improper routing 2025-01-10 10:52:57 +05:30