Commit graph

3479 commits

Author SHA1 Message Date
David
d50e579317
feat(utm): make data helper more useful 2024-09-12 00:08:11 +02:00
Sumit Bhanushali
60fe377a72
Merge pull request #27429 from Vishnu7025/utils-functions
feat: add get_month function to return current or specific month as a…
2024-08-22 01:18:44 +05:30
vishnu
22042ae00b chore: pre-commit 2024-08-21 18:49:48 +00:00
vishnu
5b73b8c20a chore: added calendar module 2024-08-21 18:28:34 +00:00
vishnu
ace2122e92 chore: removed extra functiion 2024-08-21 18:07:03 +00:00
Akhil Narang
5149a92cbf
Merge pull request #27434 from akhilnarang/fix-html-sanitize
fix(sanitize_html): sanitize all string inputs if specified
2024-08-20 11:52:40 +05:30
Akhil Narang
82cd08afd2
fix(sanitize_html): sanitize all string inputs
No reason to exclude JSON and what bs4 *thinks* is invalid HTML
The browser is happy to render both of those if its remotely valid

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-08-19 13:10:15 +05:30
Devin Slauenwhite
f2422ad219
fix: allow rediss connection scheme 2024-08-17 16:15:25 -04:00
vishnu
b41083561e feat: Add get_month function to return current or specific month as a string 2024-08-17 14:11:00 +00:00
Akhil Narang
2c7852e6aa
Merge pull request #27394 from ljain112/fix-rename-nested-set
fix: incorrect parameters in `frappe.db.set_value` call in `after_rename` method
2024-08-13 18:32:13 +05:30
ljain112
38f6b9f9d9 fix: incorrect parameters in frappe.db.set_value call in after_rename method 2024-08-13 16:33:11 +05:30
Shariq Ansari
44eccd6135 fix: redirect to default path via social login 2024-08-13 12:23:20 +05:30
Shariq Ansari
4df61ed72c chore: added framework espresso logo 2024-08-12 22:22:18 +05:30
Shariq Ansari
1ea56db399 chore: renamed include_as_app to include_in_apps_screen 2024-08-12 19:24:32 +05:30
Shariq Ansari
5bd7d60962 fix: unit test is broken 2024-08-12 18:05:06 +05:30
Shariq Ansari
11b699c60d
Merge branch 'develop' into app-switcher 2024-08-12 16:29:34 +05:30
Shariq Ansari
0f0cf07ff5 fix: added include_as_app in hooks which is used to show app on apps page 2024-08-12 14:20:49 +05:30
Akhil Narang
3efd8c6d71
chore(scheduler): never mark sites as dormant if running in developer mode
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-08-12 13:27:14 +05:30
Raffael Meyer
71eb3704bd
fix: preserve exif data in optimized image (#27341) 2024-08-08 11:28:32 +02:00
Sumit Bhanushali
1c35f2216f fix(XLSX): remove unsupported characters from sheet title 2024-08-05 18:01:30 +05:30
Dany Robert
968800ce72
fix(babel): not a valid locale identifier (#26749) 2024-07-26 14:58:49 +02:00
Rushabh Mehta
f179a1286f
Merge pull request #26748 from blaggacao/perf/smaller-website-body
perf: significantly smaller website body
2024-07-18 07:33:56 +05:30
Gavin D'souza
aee278b6ae
fix: Pass string method path to q.enqueue_call
Passing a method results in rq doing some internal gymnastics to
generate this string. In our case, this function never changes so we can
get rid of those steps
2024-07-12 20:10:30 +02:00
Gavin D'souza
aae0cd896e
refactor: frappe.cache.set_value
redis.set accepts ex kwarg, etc
2024-07-12 19:55:38 +02:00
ljain112
28f575e254 fix: clear doctype cache for tree doctype on modification 2024-07-02 17:17:06 +05:30
Hussain Nagaria
69b2560cb7 fix: indentation 2024-06-25 14:05:44 +05:30
Hussain Nagaria
458fce7b1e fix: update apt before mariadb client install in ci boilerplate 2024-06-25 14:02:45 +05:30
Hussain Nagaria
0fb1a7264b fix: dynamic branch name in ci boilerplate 2024-06-25 14:01:43 +05:30
David
0aa652a565
fix: back compat 2024-06-24 10:16:51 +02:00
Suraj Shetty
4c1b858810
Merge pull request #26637 from blaggacao/feat/error-reraise 2024-06-21 16:43:19 +05:30
David
e2517d11e8
chore: add include_icons jinja global 2024-06-11 20:03:15 +02:00
Ankush Menat
82e6a9a081
fix: Slightly efficient scheduling (#26657)
- Scheduler tick is 1 minute
- Fastest jobs are at least 4 minutes apart.

3/4 times we are wasting cpu cycle for each site.

Fix:
- Check every 4 minutes.
- Align the sleep around real clock to fix problem of jobs executing
  randomly in any part of the minute.

Cons:
Anything not aligned with scheduler interval will be delayed.
2024-06-04 05:21:47 +00:00
David
153d7cb7a3
feat: support reraising with error cause 2024-06-01 14:57:07 +02:00
gavin
a71df1839f
fix: Drop file_manager.download_file (#26575)
Closes https://github.com/frappe/frappe/issues/26424
2024-05-27 19:30:48 +05:30
Ankush Menat
148b3f771d
build: bump RQ to latest (#26576)
* build: Bump RQ

Latest version simplifies workerpool extension a bit

* fix: Disable RQ's scheduler

It's now enabled by default with no easy way to disable it except
upstream change or overriding the run_worker method. So better to
disable it with custom worker class.
2024-05-27 13:54:34 +00:00
Ankush Menat
d13178755b refactor: keep scheduler+worker behaviour to workerpool
- Single worker adds some extra costs to each worker (importing scheduler)
- Workerpool can import it all once and share
- This way we need not have many different
2024-05-27 12:29:41 +05:30
Ankush Menat
59bbbd7b56 perf: optimize scheduling
- Randomize scheduling order
- Cache dormant status for 1 hour (this gets checked every second, too much work)
2024-05-27 12:21:11 +05:30
Ankush Menat
433e7281f7 feat: make running scheduler with worker optional 2024-05-27 12:14:15 +05:30
Ankush Menat
f7ff829ea7 perf: Merge worker and scheduler 2024-05-26 12:44:00 +05:30
Ankush Menat
c973d08fe2
fix: ignore apps without pyproject (#26498) 2024-05-21 07:44:07 +00:00
Akhil Narang
45ffcf606e
Merge pull request #26462 from akhilnarang/tar-ignore-file-changed-as-we-read-it
feat: ignore `tar: file changed as we read it` during backups
2024-05-21 11:46:05 +05:30
Ankush Menat
025727674f
fix: scheduled type syncing (#26490)
- Scheduled Job sync when type was changed from scheduled to some other
  type didn't work.
- It updates on every save with message, bad DX IMO (can't save script
  and edit without dismissing)
- This was because of complex walrus which was triggering rest of code
  even when nothing changed. Maybe walrus opponents were onto something.
- `Truthy` couples two different operations and hence makes code
  complicated. In most cases where these checks are required it's not
  performance critical, we can do 1 more function call to avoid this
  coupling of change + actual value.
2024-05-20 13:43:20 +00:00
Ankush Menat
445e1dbd6b
perf: num2words, babel, gettext, sentry imports (#26475)
num2words - 260KB - Used frequently on ERPNext sites.
babel - 1.1MB Gets imported because of dates, localization
sentry - 2.8MB should be loaded only if envvar is set
gettext - required for reading translations
2024-05-18 07:20:41 +00:00
Akhil Narang
e3e6834b5d
fix: add errors=replace to decode() call
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-05-17 15:03:32 +05:30
Ankush Menat
513957ee40
Merge pull request #26457 from ankush/ci_skip
fix(DX): Don't run CI if there are no tests
2024-05-17 13:17:16 +05:30
Ankush Menat
1b0ad4137a fix(DX): Don't run CI if there are no tests
New apps keep burning CI just to install the app and run nothing.
This adds a small check before install to avoid unnecessary CI runs.
2024-05-17 13:05:06 +05:30
Ankush Menat
afed21e29f fix: dont translate syntax error messages
closes https://github.com/frappe/frappe/issues/26443
2024-05-17 13:05:06 +05:30
Akhil Narang
803b45b9fa
feat: ignore tar: file changed as we read it during backups
This seems to occur when new files are being created as we're archiving
the files on a site. Doesn't make sense to fail the entire backup
because of that.

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-05-17 11:39:41 +05:30
Akhil Narang
3a4dd9a671
Merge pull request #26183 from vmatt/data_import_delimiter
feat(Data Import): custom csv delimiters, UTF-8 BOM handling
2024-05-15 16:45:31 +05:30
Ankush Menat
6fb6c4035c
Merge pull request #26433 from ankush/query_optimzier
feat(recorder): Suggest index for optimizing query
2024-05-14 19:08:41 +05:30