Commit graph

2288 commits

Author SHA1 Message Date
AarDG10
27eca4f74c test(postgres): enable test_store_attachments for postgres 2025-11-07 18:17:06 +05:30
AarDG10
1ffbe4eaad test(postgres): add pg-compatible query for unique index check 2025-11-07 17:19:35 +05:30
AarDG10
907f3de872 test(postgres): enable test_varchar_length for postgres 2025-11-07 12:37:55 +05:30
AarDG10
886b3b33e3 fix(reportview): remove redundant DISTINCT in get_count for postgres 2025-11-06 10:54:07 +05:30
AarDG10
420c1e7994 test(postgres): update test_is for postgres 2025-11-05 16:52:29 +05:30
AarDG10
c5d7601513 test(postgres): fix test_dynamic_fields_in_group_by for Postgres 2025-11-05 10:03:22 +05:30
AarDG10
de600a42c8 test(postgres): fix test_dynamic_fields_in_group_by for Postgres 2025-11-04 22:22:14 +05:30
AarDG10
d910dbff19 test(postgres): fix test_multiple_dynamic_fields_group_order for Postgres 2025-11-04 21:17:20 +05:30
AarDG10
af08b40c09 test(postgres): fix test_sql_functions_in_fields for Postgres 2025-11-04 18:48:23 +05:30
AarDG10
4fc7661bfe test(postgres): enable test_string_fields to run on Postgres 2025-11-04 18:17:52 +05:30
AarDG10
cb636f7c5c test(postgres): fix test_filters for Postgres 2025-11-04 17:42:33 +05:30
AarDG10
b4d75132d4 test(postgres): fix test_multiple_tables_in_filters for Postgres 2025-11-04 17:17:38 +05:30
AarDG10
5ec28f99c6 test(postgres): fix test_not_equal_condition_on_none for Postgres 2025-11-04 16:47:54 +05:30
AarDG10
b955cdc4c0 test(postgres): fix test_build_match_conditions for Postgres 2025-11-04 12:55:08 +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
daniel.radl
45a0471f5c fix(utils): added format_duration test 2025-10-25 17:16:15 +00:00
Sumit Bhanushali
4cfc0c6b55 test: added rest api test user to avoid past user creation inconsistency 2025-10-22 12:12:36 +05:30
Akhil Narang
fad80b892e
fix: reset list outside loop
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-10-17 16:59:09 +05:30
Sumit Bhanushali
ed13cf2527 test: added test for expand getdoc and getlist 2025-10-16 18:00:27 +05:30
Akhil Narang
2fc4778cdd
fix: tighten allowed referrer checks
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-10-15 18:22:12 +05:30
Akhil Narang
984c641bff
fix(sanitize_fields): use sqlparse for function detection
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-10-14 16:10:14 +05:30
Aarol D'Souza
4ecb9bc57d
fix: clear cache and prevent data access after DocType deletion (#34307)
* fix: clear cache and prevent data access after DocType deletion

* fix: Handle potential DB failures during migrate

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2025-10-10 08:00:51 +00:00
Ankush Menat
598ba6d63d
fix: Clear DB value cache after commit/rollback (#34335)
Respect repeatable read, but not beyond transaction, if transaction is committed during a request then cache should be invalidated.

This will likely slow down some code in a loop that did repeated queries + commit but we can't compromise correctness here.
2025-10-10 07:42:11 +00:00
Nabin Hait
d3251ad3af
fix: Backups not showing on Download Backups page due to time conversion issue (#34329) 2025-10-09 18:27:35 +05:30
Chris Hemmings
fbf07ddf6e
fix: OAuth2 absolute authorize, access token and api urls (#34266)
* fix: OAuth2 absolute authorize, access token and api urls

* fix: add back keycloak check, just use the function instead

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

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: Akhil Narang <me@akhilnarang.dev>
2025-10-09 16:47:38 +05:30
Suraj Shetty
4bec26bb90 test: Add test case to validate forward_query_parameters functionality 2025-10-06 13:18:59 +05:30
Soham Kulkarni
2c3b85a7e0
Merge pull request #33491 from sokumon/row-size-issue
fix: prevent row-size limit error
2025-10-03 11:32:54 +05:30
sokumon
6f9c7f3241 fix: add a correct test 2025-10-01 17:43:39 +05:30
Ejaaz Khan
3f5b192326 test: add test for not equal none condition 2025-09-30 14:55:44 +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
Akhil Narang
15daa00c4c
Merge pull request #34017 from the-bokya/better-redirect-handling
fix: better redirect handling
2025-09-18 11:47:52 +05:30
Ayush Chaudhari
9f3e327231 test: better redirect handling 2025-09-17 21:42:25 +05:30
Sagar Vora
bdcd7c8eed
Merge pull request #33956 from sagarvora/extend_doctype_class
fix: minor improvements to extended class logic
2025-09-09 06:18:52 +00:00
Sagar Vora
c5bc3875df fix: minor improvements to extended class logic 2025-09-09 11:15:17 +05:30
Sagar Vora
d81cf3856c
Merge pull request #33943 from sagarvora/extend_doctype_class
feat: new `extend_doctype_class` hook
2025-09-08 13:54:41 +00:00
Sagar Vora
18e2e61cad feat: support pickling extended class 2025-09-08 18:25:18 +05:30
Sagar Vora
1ff85611ff feat: new extend_doctype_class hook 2025-09-08 17:02:34 +05:30
Rahul Agrawal
c52e5157b4
feat: allow users to export report in background (#33861)
* feat: allow users to email prepared report

* fix: add export in background checkbox in export dialog

* chore: use a common function to send report email

* feat: delete generated files from system after user defined duration

* feat: add exported reports in a folder and periodically clean it

* test: add test for export via report

* fix: add exported folder path as constant

* chore: un-edit report.json

* refactor: for readability

* chore: type hint

* refactor: let the BG job fail if email fails

* refactor: consistent `report_name`

* it reads better now, e.g. attached_to_name=report_name instead of attached_to_name=title

* refactor: `return_file` to its inverse `populate_response`

* chore: more specific error message

---------

Co-authored-by: Rahul Agrawal <deathstarconsole@Rahuls-MacBook-Air.local>
Co-authored-by: Hussain Nagaria <hussainbhaitech@gmail.com>
2025-09-05 14:34:55 +00: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
sokumon
3cb061bacb fix: add reference and test_case 2025-09-04 12:54:35 +05:30
barredterra
b1c7821911 feat: validate IBAN in backend 2025-08-29 15:21:56 +02:00
Akhil Narang
7f7405788c
chore: temporarily increase __init__.py length allowance. (#33803)
So I can merge #33730 before fixing #33750

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-08-26 12:20:58 +00:00
Ejaaz Khan
435b6d0144
Merge pull request #32143 from marination/list-view-buttons
fix: Render List row buttons as columns
2025-07-31 12:13:20 +05:30
Faris Ansari
2676c9c2ec
feat: SQLite FTS5 search framework for Frappe apps (#33359)
- Abstract SQLiteSearch base class with full-text search
- Spelling correction, recency boosting, and custom scoring
- Supports search filtering and configurable document indexing
- hooks for auto-indexing
  - build index after migrate
  - build index (if not exists) every 15 mins
  - update doc index on_update
  - remove doc index on_trash
2025-07-29 11:18:56 +05:30
Soham Kulkarni
64db88228f
refactor: seperate blogs into a seperate app (#32737)
* fix: remove doctypes,workspace blocks, files

* fix: minor python tests and UI tests

* fix: remove blog post from tests

* fix: remove blogger as role for tests

* fix: add check for if doctype exists

* fix: ui test

* fix: more cleanup

* fix: cleanup comments and fix test_query

* fix: resolve conflicts

* fix: add warning and handle comments
2025-07-28 14:35:02 +05:30
marination
723a95c955 Merge branch 'develop' into list-view-buttons 2025-07-24 11:16:10 +02:00
Shadrak Gurupnor
68246a73fb
fix: add order_by params to Frappeclient get_list (#33324)
* fix: add order_by params to client getlist

* fix(test): Test for groupby and orderby

* chore: pre-commit

* fix(test): Add test for group_by

* fix(test): Use dbapi for testing

* linter fix

* chore(test): linter
2025-07-21 19:23:32 +05:30
Ankush Menat
b443851ce1
test: fix test data generation code (#33314)
This never worked, it was just silently ignored till now.
2025-07-14 09:19:53 +00:00