Commit graph

538 commits

Author SHA1 Message Date
Raffael Meyer
f00b1b44ba
fix: round negative and positive values the same way (#36242) 2026-02-17 11:23:37 +05:30
Akhil Narang
e6ea045d06
fix: improve sanitize_column regex
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2026-02-10 21:35:54 +05:30
Aarol D'Souza
c8b95bb350
Merge pull request #36499 from AarDG10/algerian-curr
fix(data): fix currency in words for Algerian compliance
2026-01-30 09:58:22 +05:30
AarDG10
2050a127bc fix(data): fix currency in words for Algerian compliance
Co-authored-by: half-ware <contact@half-ware.com>
2026-01-30 09:31:29 +05:30
Nikhil Kothari
6cfb09cef5 fix: add support for DD/MMM/YYYY when guessing date format 2026-01-29 16:07:51 +05:30
Satyam-Kolhe
e3ffbf8c6d
refactor: add strict type hints to weekday utility functions (#36057) 2026-01-22 16:04:27 +05:30
Satyam-Kolhe
842fe28e98
refactor: add strict type hints to duration utility functions (#36088) 2026-01-22 10:40:03 +05:30
Akhil Narang
b80ef0d89e
fix: correct some type annotations changed by ruff
Reference: commit 8723a2b6ee

These didn't need to be forward references

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-12-29 17:02:17 +05:30
Akhil Narang
8723a2b6ee
fix: ruff fixes
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-12-22 21:06:48 +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
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
khushi8112
d7106649ee fix: handle between condition properly in get_link_to_report filters 2025-11-06 00:12:01 +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
Sagar Vora
a93530e221 Merge branch 'develop' into computed_child_table 2025-10-14 12:53:32 +05:30
Sagar Vora
a084f5a2f3 refactor: separate only computed CTs, with new include_computed flag 2025-10-14 12:31:47 +05:30
Sagar Vora
2c9c6c0fd5 fix: correct table_fields references 2025-10-01 12:25:00 +05:30
Akhil Narang
355d218f8e
Merge pull request #34162 from akhilnarang/bump-ruff
refactor(treewide): bump ruff
2025-09-26 17:44:11 +05:30
Akhil Narang
6ca4d4d167
refactor(treewide): ruff format
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-09-26 13:16:43 +05:30
Raffael Meyer
878c089679
fix: special operators in compare util (#34145) 2025-09-25 20:45:29 +02:00
Raffael Meyer
83d221c104
fix: correct type check in sql_like function (#34076) 2025-09-22 12:52:21 +02:00
Raffael Meyer
3c0a378a41
refactor: prefer list patterns provided by babel (#33857)
* feat: prefer list patterns provided by babel

* test: comma_and, comma_or
2025-09-04 15:17:56 +05:30
Raffael Meyer
93b4700899
fix: make labels in error message translatable (#33166) 2025-07-23 18:11:51 +05:30
Soham Kulkarni
0e46eb6228
fix: handle fraction units being zero (#33137)
* fix: handle fraction units being zero

* Revert "fix: handle fraction units being zero"

This reverts commit 912a031b16fb1e1951093d5b384976f4dc2968e6.

* fix: remove bad fallbacks from money_in_words

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2025-07-01 11:56:42 +05:30
Soham Kulkarni
e1aa789acf
Merge pull request #32971 from sokumon/newsletter-removal
refactor: seperate newsletter into app
2025-06-27 11:59:02 +05:30
Sagar Vora
2e5c8bea03 feat: frappe.utils.orjson_dumps 2025-06-26 17:37:51 +05:30
sokumon
2b8d21d483 fix: add utm utils back 2025-06-24 18:43:28 +05:30
sokumon
6be013804d fix: remove tests utils and workspace card 2025-06-18 16:23:36 +05:30
Ankush Menat
47a47a9b5d refactor!: Change internal datastructure of db.value_cache
It's now a defaultdictionary of `[doctype][name/filters][fieldname]`

This allows us to implement granular clearing and improve usage of this cache.
2025-06-05 14:46:03 +05:30
Ankush Menat
03713cfd80
perf: faster time parsing (#32701)
Same as previous date and datetime improvement, this uses C parser
instead of python `parser`.
2025-05-28 15:56:34 +05:30
Ejaaz Khan
2e32468f86
Merge pull request #31255 from Sanket322/encode_filters
fix: Encode URL filters to handle special characters
2025-03-15 00:35:38 +05:30
Raffael Meyer
fed66a32ed
fix: support "Timespan" in evaluate_filters (#31190)
* fix: support "Timespan" in `evaluate_filters`

* fix: add None case
2025-03-13 12:51:49 +01:00
Ankush Menat
ae4e2ede1a refactor: move init.py utils to utils/* 2025-03-10 21:01:14 +05:30
Ankush Menat
f8dee98a33
fix: override sanitized column name (#31576) 2025-03-07 15:29:00 +05:30
Akhil Narang
627b8e04f5
fix(get_url): allow disabling host header override
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-03-04 15:13:10 +05:30
Ankush Menat
17d6d81fb5
feat: mini pretty dates (#31331)
Narrow format pretty dates for list views, works the same way as client
side function.
2025-02-20 05:18:45 +00:00
Sanket322
779f8dbca8 fix: Encode filters to handle special characters 2025-02-13 14:02:38 +05:30
Ankush Menat
ef3b0ef008
perf: Only filter last 3 months of data by default on large tables (#31216)
Applying something basic like `order id like xyz` filter can result in
full table scan on years of data. This isn't necessary most of the time.

Interactive queries are usually done on recent data, so add this filter
to ensure only recent data is checked first.

Users can remove this filter if they want to.
2025-02-11 09:24:08 +00:00
Akhil Narang
58268a6d8f
fix(sanitize_column): add newlines to the regex check
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-29 15:45:11 +05:30
barredterra
aeb8ac1cb9 feat: additional options for timespan filter 2025-01-28 12:37:38 +01:00
Ankush Menat
e4a2b8db38
refactor: trim init.py (#29866)
* refactor: Trim `__init__.py`

We strayed from the goal here: https://github.com/frappe/frappe/pull/29181

So making up for it.

* chore!: Delete unused get_version

Not used anywhere

* refactor: move few more functions to relevant place

* asd
2025-01-20 13:05:02 +00:00
Ankush Menat
c72e91f465
fix: backward compatible date parsing (#29155)
Even though we never use tz aware object in frappe this function
previously used to retain them, so keep TZinfo for sake of compat.

Nothing should be affected ideally.
2025-01-14 11:05:55 +00:00
Ankush Menat
2a5c778235
perf: speedup date parsing (#29090) 2025-01-09 06:55:13 +00:00