Commit graph

48615 commits

Author SHA1 Message Date
Ankush Menat
2c2ec13874 perf: reuse jenv across requests 2025-01-15 11:53:00 +05:30
Ankush Menat
b2ff5e6125 perf: use cached navbar 2025-01-15 11:53:00 +05:30
Akhil Narang
b87e0a874f
fix(activity_log): strip html from full name before inserting
People can pass in HTML in the login page, it gets rendered here

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-15 11:46:51 +05:30
Akhil Narang
8b631dc0ed
Merge pull request #29156 from akhilnarang/partial-revert-26183
fix(csvutils): drop sniffer code
2025-01-15 11:20:18 +05:30
Akhil Narang
e5a3802dc5
feat(csvutils): make sniffer usage optional
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-15 10:58:41 +05:30
Ankush Menat
9fac1a06f6
Merge pull request #29159 from ankush/perf/faster_render
perf: ~3x faster `/app` loading
2025-01-15 09:47:08 +05:30
Frappe PR Bot
116f23c4e1
fix: sync translations from crowdin (#29120) 2025-01-14 23:24:22 +01:00
mahsem
2e3b6c9031
feat: datepicker_swedish (#29161) 2025-01-14 23:02:24 +01:00
Raffael Meyer
3b7df82a80
chore: remove unused method (#29163) 2025-01-14 21:39:09 +00:00
Ankush Menat
01f9787736 fix: catch template error for on-disk paths too 2025-01-14 20:04:36 +05:30
Ankush Menat
129212a916 perf: cache unseen notes 2025-01-14 19:43:22 +05:30
Ankush Menat
0ff3e6fd4c perf: cache meta tags existence 2025-01-14 19:19:36 +05:30
Ankush Menat
dc7636de8f perf: use cached user document 2025-01-14 19:01:31 +05:30
Ankush Menat
9bd6c95b3f perf: don't yaml-parse empty string and get nothing back
*surprise*
2025-01-14 18:52:50 +05:30
Ankush Menat
8682014259 perf: use client cached navbar 2025-01-14 18:49:19 +05:30
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
Akhil Narang
d9b9940a79
fix(csvutils): drop sniffer code
This seems to break certain CSVs, which the default excel dialect can handle fine

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-14 17:19:13 +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
Ejaaz Khan
2de0ea068b fix: child table ui issue with scroll 2025-01-14 12:47:00 +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
barredterra
23af997722 fix: str_to_user 2025-01-13 19:34:44 +01:00
barredterra
4212e7b0fc fix: convert_to_user_tz
specify format for parsing datetime
2025-01-13 19:34:10 +01:00
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