Commit graph

3865 commits

Author SHA1 Message Date
Akhil Narang
659b3bac8e
fix(msgprint): cleanup checks
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-12-23 17:33:54 +05:30
Akhil Narang
a7cfb11e4b
fix(msgprint): let as_table work properly
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-12-23 17:30:03 +05:30
Sabu Siyad
4f0e303f18
fix(types): msgprint: use Sequence instead of list 2025-12-23 17:26:06 +05:30
Sabu Siyad
7c4d64157c
fix(types): msgprint can take of list of strings
`msg` argument to `msgprint` can be either a string, a list of strings
or a list of list of strings.
2025-12-23 17:26:06 +05:30
Ankush Menat
5b87d55b7e perf: Cache get_apps and internals 2025-12-23 16:06:10 +05:30
Akhil Narang
0ac52c1bb4
chore: update boilerplate
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-12-23 13:27:48 +05:30
Akhil Narang
e859b1d312
fix: disable UP040, revert some instances to TypeAlias
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-12-23 13:12:04 +05:30
Akhil Narang
90a40dbfe0
fix: ruff manual fixes
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-12-22 21:06:48 +05:30
Akhil Narang
f7feeea0a0
fix: ruff "unsafe" fixes
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-12-22 21:06:48 +05:30
Akhil Narang
8723a2b6ee
fix: ruff fixes
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-12-22 21:06:48 +05:30
Akhil Narang
588cb1e44d
refactor: tomli -> tomllib
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-12-22 21:06:48 +05:30
sokumon
0ea047a776 fix: reroute portal users correctly 2025-12-19 20:34:28 +05:30
Abdeali Chharchhodawala
a333241d95
fix: handle password feedback for common words and suggestions (#35156)
* fix: handle password feedback for common words and suggestions

* refactor: enhance password strength failure msg

* refactor: keep suggestion html align with title
2025-12-19 14:44:22 +05:30
sokumon
dd2dc053ca chore: more renames to /desk 2025-12-18 20:45:04 +05:30
sokumon
0e3ff92996 chore: rename app to desk in get url methods 2025-12-18 19:56:04 +05:30
Ankush Menat
dc3e598be8
fix: Always show traceback on dev server (#35263) 2025-12-16 07:13:28 +00:00
Akhil Narang
ec615fe9aa
fix(goal): improve validation (#35186) 2025-12-12 13:50:12 +05:30
Abdeali Chharchhodawala
4647986aeb
fix!: Always Bold report header row (#34703)
* fix: Always bold report header row

* fix: update test cases

* refactor: add option to bold filter rows in XLSX output

* chore: minor changes

* chore: rename index variable

* revert: undo bold filters param use

* refactor: remove duplication for building xlsx data

* revert: add has_filters parameter to check for filter row bold

* refactor: add type hints and docstrings for XLSX data handling functions
2025-12-11 15:55:51 +05:30
Hardik Zinzuvadiya
b5f22227ab feat(utils): replace custom email parsing with RFC-compliant validation (fixes #27337)
Replaced the old comma-split based email parsing with `email.utils.getaddresses`
to correctly handle RFC 5322 formatted addresses, including display names
containing commas (e.g. `"Last, First" <email@example.com>`).

The previous implementation incorrectly split on commas and treated parts of
display names as standalone emails, causing valid inputs to fail validation and
breaking Communication creation (e.g. `"Gritton, Howard" <hgrit@example.com>`).

The new validator:
- correctly parses display names with commas
- handles multiple addresses and multiline input
- skips undisclosed recipients
- preserves existing EMAIL_MATCH_PATTERN validation
- returns only the email addresses (same as before)

Added additional test cases covering RFC-compliant inputs and empty-addr scenarios.
Fixes frappe/frappe#27337.
2025-12-07 06:38:12 +00:00
Trusted Computer
d870caf6c4
fix: there is no attribute for closed, just handle the exception as the docs suggest (ported from frappe/print_designer #496) (#35098) 2025-12-06 05:05:32 +05:30
Aarol D'Souza
cf69e4bed1
fix(postgres): misc query building fixes + CI (#34831)
* fix(query): check standard field definitions

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

* fix(postgres): fix order_by problem in pg

* fix(postgres): fix order_by in get_all for _test_connection_query

* fix: add check to a proper numeric fallback in _get_ifnull_fallback

* test(postgres): fix pg query used in assertion in test_permission_query

* fix(postgres): fix order_by in get_all for possible_link

* fix(postgres): fix order_by in get_all for set_modules

* fix(postgres): fix pg query count *

* fix(postgres): fix order_by in get_all for ask_pass_update

* fix(postgres): fix order_by statement in search_widget

* fix(postgres): fix order_by in get_list for get_stats

* test(postgres): normalize_sql for pg queries in test_arithmetic_operators_in_fields

* test(postgres): normalize_sql for pg queries in test_field_alias_in_group_by

* test(postgres): normalize_sql for pg queries in test_field_alias_permission_check

* test(postgres): fix order_by statement in get_all for test_db_keywords_as_fields

* test(postgres): fix order_by statement in get_all for test_prepare_select_args

* fix(treeview): use 0 instead of false to check since check field is an integer

* fix(postgres): fix order_by in get_all for sync_communication

* fix(postgres): fix order_by in get_all for get_references_across_doctypes_by_dynamic_link_field

* test(postgres): fix order_by in get_all for test_list_summary

* fix(postgres): fix order_by in get_all for email queries

* test(postgres): use order_by none and update assertion for postgres

* fix(postgres): use ILIKE to support case insensitive search in postgres

* test(test_query): update pg specific query assert to use ILIKE

* test(test_query): update test_nested_filters to use ilike instead for PG

* test(postgres): update pg query in assert to test updated qb query

* fix(search): update query to be db-agnostic

* test(postgres): normalize query for pg in test_build_match_conditions

* fix(postgres): suppress ORDER BY when SELECT DISTINCT in query for postgres specific behavior

* fix(postgres): suppress ORDER BY when GROUP BY is explicitly asked for pg specific behavior

* test(postgres): fix test behavior for pg ORDER BY drop when used with GROUP BY

* refactor: reducing noise in code by formatting code

* fix(query): use Star() to handle SQL wildcard character * correctly

* fix(postgres): display warning for ORDER BY fields that will be dropped

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: Akhil Narang <me@akhilnarang.dev>
2025-12-05 10:30:49 +05:30
sokumon
34b221d097 fix: delete sidebars when app is deleted 2025-12-02 13:50:29 +05:30
Akhil Narang
e5b340fad4
feat(error_log): add in some request/job metadata (#34937)
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-11-28 15:29:30 +05:30
ALB.Leach
029b1fd3c6
feat: allow tel: protocol hyperlinks (#34699) 2025-11-21 06:05:59 +00:00
Akhil Narang
0ea49a8f1e
fix: make sure limit is an integer
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-11-19 21:15:57 +05:30
Soham Kulkarni
518e94ea98
Merge pull request #34769 from sokumon/desktop-fixes
fix: delete desktop icons when app is uninstalled
2025-11-19 16:45:36 +05:30
sokumon
7c93730cfc fix: semgrep issues 2025-11-19 13:21:52 +05:30
sokumon
a0edd3e3f2 fix: delete desktop icons when app is uninstalled 2025-11-19 12:30:15 +05:30
Akhil Narang
1e2d730202
Merge pull request #34670 from trustedcomputer/cogkfix-host-url-when-printing-outside-request
fix: Get host URL when printing outside of request
2025-11-18 17:39:32 +05:30
Saqib Ansari
d4a0181379
Merge pull request #33905 from nextchamp-saqib/custom-perm-types
feat: custom permission types
2025-11-17 16:00:17 +05:30
sokumon
a0caf8e320 refactor: add auto-creation of icons 2025-11-14 23:05:14 +05:30
Akhil Narang
edc4b4bbd5
fix: set multiprocessing start mode to fork instead of forkserver
worker-pool with fork workers seem to not pick up jobs otherwise - the test `test_multi_queue_burst_consumption_worker_pool` just times out.

https://docs.python.org/3/whatsnew/3.14.html#concurrent-futures

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-11-14 18:36:34 +05:30
Corentin Forler
cb8ac9b14f
fix: Get host URL when printing outside of request
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-11-14 12:52:29 +05:30
Ankush Menat
f7e594a618 fix: Update value if conflicting 2025-11-14 10:54:38 +05:30
Ankush Menat
e8961aee80 fix: Dont fail silently in tests 2025-11-14 10:52:47 +05:30
Raffael Meyer
0df57b6133
feat(translations): add hook to exclude translatable strings from dependencies (#34544) 2025-11-10 12:50:21 +01:00
Ejaaz Khan
27ce9a3df4
Merge pull request #34624 from khushi8112/get-link-to-report-between-condition
fix: handle between condition properly in get_link_to_report filters
2025-11-06 17:29:02 +05:30
Saqib Ansari
52b88e9518 feat: add test cases 2025-11-06 15:17:45 +05:30
khushi8112
d7106649ee fix: handle between condition properly in get_link_to_report filters 2025-11-06 00:12:01 +05:30
Saqib Ansari
8de26fe3e8 feat: admin can search non-searchable doctypes 2025-11-03 17:49:30 +05:30
Akhil Narang
6dfcc2bf4c
Merge pull request #34027 from sumitbhanushali/expand-link
feat: add support of expand in rest api v1/document_list
2025-10-28 17:02:14 +05:30
Akhil Narang
21fde3a507
Merge pull request #34474 from AMR-Mannesmann/fix(utils)--format_duration-for-negative-values
fix(utils)!: format_duration for negative values
2025-10-28 15:51:10 +05:30
Abdeali Chharchhodawala
fed7b3bb69
feat: utility to generate filtered list URLs and links for doctype (#34503) 2025-10-28 07:33:16 +00:00
Sumit Bhanushali
6f0242db6a chore: added docstring for attach_expanded_links 2025-10-27 15:21:41 +05:30
Sumit Bhanushali
8955f079a1 fix: use get_list to only fetch permitted records 2025-10-27 13:27:13 +05:30
Sumit Bhanushali
f5fed5b4be perf: optimize expand link for table fields 2025-10-27 13:00:43 +05:30
daniel.radl
45a0471f5c fix(utils): added format_duration test 2025-10-25 17:16:15 +00:00
daniel.radl
4908b926c0 fix(utils): format_duration for negative values 2025-10-22 12:38:22 +00:00
Ankush Menat
727775f820
Merge pull request #33088 from ankush/computed_child_table
feat: Computed/virtual child-tables
2025-10-15 18:32:16 +05:30
Ejaaz Khan
a4ba3c1940
Merge pull request #34191 from iamejaaz/chrome-pdf
feat: Chrome PDF generator
2025-10-14 17:31:49 +05:30