Commit graph

44603 commits

Author SHA1 Message Date
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
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
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
Hussain Nagaria
cc9a866142 docs: get_thumbnail_base64_for_image 2023-12-18 22:00:44 +05:30
Hussain Nagaria
8f7638860f docs: remainder, image_to_base64, get_url, get_host_name*, get_link_to_report*, get_url_to_form 2023-12-18 21:55:55 +05:30
Hussain Nagaria
541e99e1c8 refactor: only import types when TYPE_CHECKING 2023-12-18 21:49:13 +05:30
Ankush Menat
7e821a131a
fix: allow enabling telemetry for either posthog/sentry (#23845)
posthog is not required to be present everwhere and is more of a
solution for onboarding problems. Sentry on other hand should be
available everywhere.
2023-12-18 19:41:41 +05:30
Hussain Nagaria
caae0bacc9 docs: add missing full stop 2023-12-18 19:09:45 +05:30
Hussain Nagaria
8d2137c265 docs: consistent doc strings 2023-12-18 18:27:39 +05:30
Hussain Nagaria
aefe634ff7 docs: password_strength.py
* also add type hints
2023-12-18 18:20:52 +05:30
Hussain Nagaria
47626e96fb fix: type hint 2023-12-18 12:44:07 +05:30
Suraj Shetty
2564d0e939
Merge pull request #23512 from GursheenK/include-filter-values-in-exported-report-excel 2023-12-18 12:40:37 +05:30
Ankush Menat
85a661f273
test: flakey currency UI test (#23834) 2023-12-18 12:29:20 +05:30
Gursheen Anand
806708650c chore: linter issue 2023-12-18 12:15:51 +05:30
Ankush Menat
4c5511721d
Merge pull request #23760 from barredterra/jinja-syntax
feat: Jinja syntax highlighting
2023-12-18 11:07:33 +05:30
Akhil Narang
f110b6eea3
refactor(data_import): handle RQ timeouts better (#23811)
* refactor(data_import): handle RQ timeouts better

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

* refactor(data_import): display count of documents even for timed out jobs

Also handle "0" cases better - should be plural there

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-18 10:56:51 +05:30