Commit graph

44617 commits

Author SHA1 Message Date
Raffael Meyer
5fc3cb6d79
Merge pull request #23915 from frappe/de-missing-comma 2023-12-22 11:43:05 +01:00
Raffael Meyer
f2b9f759ab
fix: missing comma in translations file 2023-12-22 11:41:16 +01:00
Ankush Menat
4d68a46b10
fix: Set default child table fields on save (#23913)
We set defaults on creation of new doc but when you append a new child
doc on existing document it doesn't seem to set the defaults.

This seems like a bug and not a deliberate choice.
2023-12-22 08:02:36 +00:00
Akhil Narang
7c9fbb637d
Merge pull request #23912 from akhilnarang/fix-redirect-mandatory-default
fix(redirect): make the status codes a `select` field instead of `int`
2023-12-22 12:59:47 +05:30
Akhil Narang
ff4dca3e16
fix(redirect): make the status codes a select field instead of int
Drop mandatory, assume sane defaults
The current implementation broke old users of redirects like helpdesk app

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-22 12:25:41 +05:30
Corentin Flr
1d23888475
fix(translations): Add context to Image Cropper text (#23908) 2023-12-21 23:20:25 +05:30
Ankush Menat
5e2ace4c08
perf: Use set for tracking whitelisted methods (#23905)
List look ups are O(N). This is still a microoptimization at best
considering other overhead.
2023-12-21 23:19:06 +05:30
Akhil Narang
25ba2822be
Merge pull request #23431 from barredterra/newsletter-welcome-url
feat(Newsletter): redirect to welcome URL
2023-12-21 17:10:06 +05:30
Shariq Ansari
fad6cff1ad
Merge pull request #23893 from shariquerik/allow-crop-attach-image-sidebar
fix: allow aspect ratio options to crop from sidebar image field
2023-12-21 14:31:20 +05:30
Shariq Ansari
9004578044
Merge pull request #23894 from shariquerik/bump-datatable-3
build(deps): bump datatable to latest
2023-12-21 14:24:05 +05:30
Shariq Ansari
cf69a6e340 build(deps): bump datatable to latest 2023-12-21 14:20:31 +05:30
Ankush Menat
36451b6951
Merge pull request #23765 from akhilnarang/http-307-redirect
feat: allow setting a custom http status code for redirects
2023-12-21 13:53:51 +05:30
Shariq Ansari
2fc3e2cddd chore: close sidebar was failing 2023-12-21 12:13:06 +05:30
Ankush Menat
0fd6f5eed7
Merge pull request #23827 from frappe/api-docs
docs: add Python API missing docstrings / type hints
2023-12-21 12:13:05 +05:30
Shariq Ansari
25c75cacc2 fix: allow aspect ratio options to crop from sidebar image field 2023-12-21 12:12:38 +05:30
Akhil Narang
2224d86c94
refactor: cache status code as well
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-20 17:47:16 +05:30
Akhil Narang
6819a38fbe
fix: set correct response code for redirections
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-20 17:36:42 +05:30
Akhil Narang
c8816a8b6a
fix(tests): fix redirect tests by adding new field + add another test scenario
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-20 17:36:42 +05:30
Akhil Narang
44667901bf
feat: allow setting a custom http status code for redirects
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-20 17:36:42 +05:30
Akhil Narang
91dce0b007
feat(sentry): drop events which have frappe.throw (#23886)
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-20 17:34:43 +05:30
bourouffala
3015852ce1
fix: Error when displaying dashboard with number card using average and sum functions (#23883) 2023-12-20 11:13:20 +00:00
Kunhi
b4d3132bf4
fix: optimize clear_permissions_cache method (#23858)
* fix:optimize clear_permissions_cache method

* fix: faster clear user cache on perm change

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-12-20 16:26:17 +05:30
Ankush Menat
052a2527dd
Merge pull request #23874 from ankush/del_check_links
fix: don't allow deleting original doc if amendment exists
2023-12-20 14:13:41 +05:30
Daizy Modi
5213915d66
fix: render new doctype dialog box if doctype is not copied (#23854) 2023-12-20 14:11:01 +05:30
Hussain Nagaria
369844a9cb fix: type hint 2023-12-20 14:09:01 +05:30
Hussain Nagaria
ecdd7b3e37 docs: consistency 2023-12-20 14:02:32 +05:30
Ankush Menat
02f3fd8470 test: retry flaky password_strength test thrice 2023-12-20 13:57:48 +05:30
Ankush Menat
3d3f982cbe
Merge pull request #23873 from frappe/img_fix
fix: ignore and gracefully handle img optimization failure
2023-12-20 13:12:22 +05:30
Ankush Menat
b51a479fc2 fix: don't allow deleting original doc if amendment exists 2023-12-20 13:11:34 +05:30
Ankush Menat
40bd7cdbfa
Merge pull request #23871 from akhilnarang/fix-sentry-user
fix(sentry): `name` field is ignored
2023-12-20 12:52:22 +05:30
Akhil Narang
39359f9793
fix(sentry): name field is ignored
Only `id`, `username`, `email`, and `ip_address` are accepted here

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-20 12:43:42 +05:30
Ankush Menat
3524cae48e fix: ignore and gracefully handle img optimization failure
PIL doesn't handle ALL image types. E.g. HEIC fails with bad error.
2023-12-20 12:25:56 +05:30
Ankush Menat
fdcd8ab0c6
Merge pull request #23866 from ankush/deleted_doc
fix: Allow periodically clearing deleted documents
2023-12-20 12:24:47 +05:30
Ankush Menat
5ecacd0cd7
Merge pull request #23865 from ankush/no_virtual_select_star
fix: skip virtual fields in perm level checks during DB Query
2023-12-20 12:15:48 +05:30
Ankush Menat
1cbcf537d9 fix: Allow periodically clearing deleted documents 2023-12-20 12:09:15 +05:30
Ankush Menat
5deabdde21 fix: skip virtual fields in perm level checks during DB Query
DB Query can't access virtual fields so it should ignore all virtual
fields.
2023-12-20 12:00:08 +05:30
Akhil Narang
178b699466
Merge pull request #23432 from marination/doc-connections
fix: Treat Document Links entries as all non-std fields
2023-12-19 16:05:58 +05:30
Akhil Narang
e38b5e04f8
fix(test_customize_form): drop checking of flags.update_db
The value changed is being checked directly
Checking the flag breaks if this or a similar test is run multiple times on the same database

Also extract 255 into a separate variable

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-19 15:50:13 +05:30
Hussain Nagaria
bb68d879c2 fix: type hint issue 2023-12-19 14:01:41 +05:30
Hussain Nagaria
2f277c66ae fix: use optional 2023-12-19 13:57:35 +05:30
Hussain Nagaria
c70229cd69 docs: consistency 2023-12-19 12:55:41 +05:30
Hussain Nagaria
3520bcb9b3 fix: add (more) type hints printview.py 2023-12-19 12:55:02 +05:30
Akhil Narang
58b75d7c35
Merge pull request #23855 from sagarvora/fix-get_rendered_raw_commands
fix: dont pass removed parameter `name`
2023-12-19 12:24:44 +05:30
Hussain Nagaria
0df45daacd docs: get_number_format_info 2023-12-19 12:17:00 +05:30
Hussain Nagaria
4d20ef9200 docs: get_gravatar and get_gravatar_url 2023-12-19 12:08:50 +05:30
Sagar Vora
3820926ffa fix: dont pass removed parameter name 2023-12-19 12:08:28 +05:30
Raffael Meyer
99f0745302
style: new app boilerplate (#23847)
* style: add spaces to hooks boilerplate

Black wants comments to start with a space. Adding them here means less formatting later.

* style: init_template

Put version on the first line and use double quotes.
2023-12-18 23:13:13 +05:30
Hussain Nagaria
370d575f29 docs: some more utils 2023-12-18 22:27:58 +05:30
Hussain Nagaria
3d35ee3e9e docs: get_link_to_form 2023-12-18 22:08:35 +05:30
Hussain Nagaria
a22451c6e2 docs: pdf_to_base64 2023-12-18 22:03:37 +05:30