Ankush Menat
e810fb7eca
feat: nowait to skip blocking locks
2024-02-29 16:30:24 +05:30
Akhil Narang
3f1e19de85
refactor(treewide): enable RUF rules
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-21 16:20:28 +05:30
Akhil Narang
26ae0f3460
fix: ruff fixes
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-07 17:04:31 +05:30
Ankush Menat
de9ac89748
style: re-format with ruff
2024-02-05 18:53:33 +05:30
Ankush Menat
e45e313bfb
feat: Skip locked rows while selecting ( #24298 )
2024-01-13 09:49:27 +05:30
Hussain Nagaria
8d2137c265
docs: consistent doc strings
2023-12-18 18:27:39 +05:30
Sagar Vora
1b2d1dd567
chore: move statement to set validate_filters property
2023-05-31 14:20:26 +05:30
Sagar Vora
9f5a994f70
fix!: improved filter validation in Engine.get_query
2023-05-31 14:16:52 +05:30
Ankush Menat
a1c40d9158
feat: support tree-link-fields filtering in QB
2023-05-29 17:00:37 +05:30
Ankush Menat
842195ce29
fix: simplify plucking
...
no idea why itertools are used for this dumb operation
2023-05-29 17:00:37 +05:30
Sagar Vora
38c1207abe
fix: multiple fixes to Engine.get_query ( #21135 )
2023-05-29 10:48:26 +05:30
Faris Ansari
c4bb732eaa
fix: use dict syntax instead of string
2023-05-08 18:55:11 +05:30
Faris Ansari
41d7563aff
feat: child_field[] syntax sugar for qb
...
- fetch child table rows in qb.get_query
- runs one query each for each child field
2023-05-08 18:55:11 +05:30
Gavin D'souza
5d3453eeb9
refactor: Re-use DefaultOrderBy value as global constant
2023-02-02 13:43:31 +05:30
Faris Ansari
543458b473
fix: handle empty list as filters
2023-01-16 15:38:15 +05:30
Faris Ansari
52e3d8d58b
fix: handle empty string passed to filters
2023-01-16 14:11:37 +05:30
Faris Ansari
a93380ac9c
fix: handle empty list for "in" and "not in"
2023-01-13 16:22:25 +05:30
Faris Ansari
5340efd156
fix: don't cast integer value in filter
2023-01-13 16:21:51 +05:30
Faris Ansari
76deeb531c
fix: support list of str or int in filters
2023-01-10 18:22:05 +05:30
Faris Ansari
95d8a0f919
fix: allow Table instance
2023-01-10 16:48:38 +05:30
Faris Ansari
fe13108eec
fix: refactor
...
- move operator map in separate file
- remove unnecessary code
- organize functions
2023-01-10 16:15:33 +05:30
Faris Ansari
08fc5b5c90
fix: allow list of dict in filters
2023-01-09 19:54:26 +05:30
Faris Ansari
9e9de7053c
fix: set default order_by direction to desc
2023-01-09 18:19:31 +05:30
Faris Ansari
6192a9285a
fix: use Field objects as is in apply_filter
2023-01-09 17:51:55 +05:30
Faris Ansari
f982439eb9
fix: pass fields explicitly
...
- to prevent addition of default `name` field
- also, add fields only if it is a select query
2023-01-09 16:43:44 +05:30
Faris Ansari
e4ac91a035
fix: ignore string with parenthesis
...
if it is not an sql function
2023-01-09 15:20:30 +05:30
Faris Ansari
b7c0ba1bea
fix: allow dynamic fields in filters
...
e.g.,
`filters={'link.field': 'value'}`
`filters={'child.field': 'value'}`
2022-12-31 22:55:00 +05:30
Faris Ansari
e272adb0b1
fix: use table.field instead Field('field')
2022-12-31 22:17:39 +05:30
Faris Ansari
847206222f
fix: delete option
2022-12-31 22:17:20 +05:30
Faris Ansari
726fcfdb79
refactor: qb.engine
...
- simplify
- qb.engine.get_query -> qb.get_query
- qb.engine.build_conditions -> qb.get_query
2022-12-25 23:19:11 +05:30
Aradhya
8b73108270
feat: added PseudoColumnMapper for postgres support
2022-11-03 20:43:24 +05:30
Aradhya
e1719fd30c
feat: Added support for table_field.fieldname and tests
2022-11-03 03:56:59 +05:30
Aradhya
88d506864b
refactor: consistent quries and better naming
2022-11-02 17:21:37 +05:30
Aradhya
0bc2ba0545
refactor: better naming
2022-11-02 02:40:23 +05:30
Aradhya
e5d19d78d7
feat: considering parenttype while joining
2022-11-02 02:39:53 +05:30
Aradhya
8e118773f3
refactor: joining tables
2022-11-01 14:35:37 +05:30
Aradhya
5703303abb
Merge branch 'develop' of https://github.com/frappe/frappe into qb-fixes
2022-11-01 13:45:11 +05:30
Ankush Menat
fec24632a9
style: format
...
[skip ci]
2022-11-01 13:36:37 +05:30
Aradhya Tripathi
5ed696cd3d
fix(qb): fixed implicit join for child tables ( #18692 )
...
* test: Added test for multiple joins
2022-11-01 11:25:02 +05:30
Aradhya
e6a281f19e
refactor: better naming
2022-10-27 13:11:15 +05:30
Aradhya
15db8228f4
fix: adding additional conditions
2022-10-26 15:58:24 +05:30
Aradhya
e16ca03572
fix: fixed multiple descendants
2022-10-25 20:34:47 +05:30
Aradhya
69112cec39
refactor: removed static methods
2022-10-25 18:05:48 +05:30
Aradhya
a65db344ee
fix: empty nested result clause
2022-10-21 19:44:15 +05:30
Aradhya
35ce3c0ecc
fix: fixed nested query results
2022-10-21 16:10:22 +05:30
Aradhya
48f2080769
refactor: better function naming
2022-10-20 22:35:08 +05:30
Aradhya
4a573e252c
Merge branch 'develop' of https://github.com/frappe/frappe into qb-fixes
2022-10-20 22:25:44 +05:30
Aradhya Tripathi
457de5c6b3
fix: stripping comments sent to the database API ( #18229 )
...
* feat: stripping comments sent to the database API
* test: Added tests for comment stripping
* fix: only stripping comments in string fields
* refactor: removing on the fly mutations
* refactor: added helper to avoid mutations
* refactor: simplify sanitization
* refactor: removing indexing from everywhere
* refactor: readable functions
* test: only run mdb test on mdb
Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-10-12 16:36:55 +05:30
Aradhya
ee3651b103
refactor: separated nested set logic
2022-09-20 01:54:41 +05:30
Aradhya
38f1a9708a
refactor: simplified logic
2022-09-20 01:45:20 +05:30