Commit graph

1647 commits

Author SHA1 Message Date
Rushabh Mehta
ddee23f5ad fix(ui): sortable sidebar, fixes to breadcrumbs etc 2024-09-06 14:12:36 +05:30
Rushabh Mehta
1d678146a9 fix(styles): cleaner sidebars for list and form 2024-08-14 16:13:57 +05:30
Philipp Gruener
7df4185f87 fix: removed TODO marks 2024-07-08 15:16:51 +02:00
Philipp Gruener
1b56b4f3f7 fix: Reset to orig env vars in specs 2024-07-05 15:44:04 +02:00
Philipp Gruener
abba28be3b feat: Added env db options for db, password and pg_schema 2024-07-05 12:05:20 +02:00
gruener
c6af3ab8d3
Merge branch 'frappe:develop' into feature/db_env_credentials 2024-07-04 23:16:19 +02:00
Philipp Gruener
a63cd89607 fix: Fixed wrong quotes for changes 2024-07-04 22:24:42 +02:00
Philipp Gruener
442ad03d7b feat: Adds possibility of permitting DB credentials via ENV vars instead of persisting them on the volume. 2024-07-04 22:24:21 +02:00
mahsem
659baa1591
fix: make error title translatable (#26922) 2024-07-01 19:12:58 +02:00
Ankush Menat
1269e31170
fix: cast port to integer (#26623)
Not using cint to avoid converting bad input to 0.
2024-05-31 12:44:14 +05:30
Ankush Menat
4fbeb4617a
fix: Use true stderr for dumping trace (#26524)
closes https://github.com/frappe/frappe/issues/26302
2024-05-22 07:00:29 +00:00
Ankush Menat
e240c6bdf8
perf: Avoid caching module_app (#26349)
module_app is just reverse of app_module.

This saves ~1.5% of overhead.
2024-05-07 07:06:44 +00:00
Ankush Menat
8ab308838b feat: Keep certain keys persistent in cache 2024-05-04 15:08:35 +05:30
Ankush Menat
79d18c1fbb
fix: print debug log to stderr (#26128) 2024-04-23 13:22:29 +00:00
Akhil Narang
f2c109394e
Merge pull request #26001 from kittiu/patch-3
fix: unknown charset windows-874 problem on incoming mail
2024-04-22 12:52:31 +05:30
Akhil Narang
441379e7a8
refactor: don't modify email library's dictionary
Keep our own map of alternative character sets

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-04-22 12:23:59 +05:30
Ankush Menat
a49189ad6e fix: register faulthandler on true stderr only
https://github.com/frappe/frappe/issues/25613
2024-04-18 13:38:12 +05:30
Akhil Narang
bf931598a2
Revert "Merge pull request #25755 from akhilnarang/optional-skip-msgprint"
This reverts commit f8121b99df, reversing
changes made to 14e2d95947.
2024-04-01 21:42:12 +05:30
Akhil Narang
ca83ad580c
feat: allow skipping msgprint
If we're handling the exception on our own, we don't need to show the user anything
Example: https://github.com/frappe/frappe/blob/version-15/frappe/desk/doctype/event/event.py#L398

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-04-01 14:21:47 +05:30
David
39d4318a27
feat: enable db socket connection 2024-03-29 10:29:50 +01:00
Akhil Narang
07f93e2817
fix(generate_hash): Deprecate txt parameter - its not used.
`length` has a default value anyway, no need of checking and setting a default.

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 12:12:15 +05:30
Ankush Menat
dbcf7ad30c refactor: update usage of modified everywhere 2024-03-27 11:23:13 +05:30
Ankush Menat
6560d4587a fix: debug stuck process by sending SIGUSR1
It will print stack to stderr.
2024-03-18 11:59:47 +05:30
Revant Nandgaonkar
77618cde1f
feat: connect to redis sentinel for redis cache (#25398) 2024-03-14 13:54:46 +05:30
Ankush Menat
4ef0740ad5 fix: print frappe.log message 2024-03-12 20:20:07 +05:30
Akhil Narang
88c5da4d62
Merge pull request #25149 from akhilnarang/minor-fixes
fix(setup_module_map): fix caching
2024-02-28 17:53:32 +05:30
Akhil Narang
e6be7d6648
fix(setup_module_map): fix caching
Use a separate cache key depending on the arguments passed

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-28 17:41:18 +05:30
Ankush Menat
dbc2e092f1 fix: escalate print failures
Print failures shouldn't generate PDF with failure message but instead escalate the error.

This prevent all the PDFs that just contain "PermissionError" from being sent.
2024-02-28 16:42:03 +05:30
Ankush Menat
2588de6384
fix: invalid lru_cache usage (#25046)
- using it on closure is useless because a new cache is created
and destroyed everytime.
2024-02-24 12:04:18 +05:30
Ankush Menat
1ff7b84140
fix: wrap read_only functions correctly (#25018)
`functools.wraps` preserves signature useful for introspection.
2024-02-22 11:16:15 +00:00
Akhil Narang
3f1e19de85
refactor(treewide): enable RUF rules
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-21 16:20:28 +05:30
Ankush Menat
3aa7fd77ed
fix: patch QB before setup_module_map (#24981)
This function if cache isn't available CAN result in a DB query, this
will cause cold starts to fail because QB is not yet patched.
2024-02-21 09:57:50 +00:00
Ankush Menat
64a5ebb112
refactor!: Drop user based workflow action compatibility (#24956)
* test: run workflow actions in tests

* test: fix workflow action tests

* refactor!: Remove compatibility with `user` based workflow action

* test: cleanup test cleanups

* fix: restore form dict after printing

* test: patch printing during workflow tests
2024-02-20 14:37:13 +00:00
Akhil Narang
26ae0f3460
fix: ruff fixes
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-07 17:04:31 +05:30
Ankush Menat
7b83fceadc
Merge pull request #24782 from ankush/file_locking_changes
feat: let users unlock stuck documents
2024-02-06 13:19:53 +05:30
Ankush Menat
40f1ae1cce feat: support primary_action for frappe.throw 2024-02-06 12:55:29 +05:30
Akhil Narang
986e8bc766
feat: include only installed apps in module map in certain scenarios
"all" apps are only really needed during setup, installation of new apps, etc.

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-06 11:32:56 +05:30
Ankush Menat
de9ac89748 style: re-format with ruff 2024-02-05 18:53:33 +05:30
Akhil Narang
54ba72ba74
feat: allow extending site config with a hook
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-05 11:43:21 +05:30
Akhil Narang
f19c25ec42
Merge pull request #24432 from blaggacao/chore/cleanup-frappe-connect-2
chore: cleanup frappe connect II/II
2024-02-02 16:53:19 +05:30
Ankush Menat
aad0c19f3a
fix: lazy translate circular imports (#24672)
* Revert "fix: remove _lt from frappe.model.std_fields (#24662)"

This reverts commit 833d108614.

* fix: circular import
2024-02-01 12:27:25 +00:00
David Arnold
161bb42508
fix: deprioritize precedence of db_name argument to connect 2024-01-31 09:59:14 +01:00
Ankush Menat
d53a0ae45e
Revert "fix(module_map): only include apps installed on the site - not everything on the bench" (#24605) 2024-01-30 07:39:09 +00:00
Akhil Narang
db72dd37aa
refactor: fallback to all apps on bench when site isn't ready yet
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-01-29 17:31:52 +05:30
Akhil Narang
f967aa9508
feat: print a warning if module names conflict
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-01-29 17:25:37 +05:30
Akhil Narang
f48ec5b690
refactor(module_map): fetch only installed apps if a site is initialized
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-01-29 17:25:37 +05:30
David Arnold
e7284be5a3
fix: remove db name 'hack'; now the code path is clean 2024-01-24 11:56:23 +01:00
David Arnold
25168b858f
feat: db_user can be set by env varbiable
Co-authored-by: Akhil Narang <me@akhilnarang.dev>
2024-01-24 11:56:23 +01:00
David Arnold
78aad52b2c
fix: default db_user where config defaults are set 2024-01-21 18:24:22 +01:00
David Arnold
f1bcdabb6c
fix: assert minimum contract for frappe.connect 2024-01-21 18:24:18 +01:00