Commit graph

300 commits

Author SHA1 Message Date
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
Aradhya
520c8503a8 refactor: using cached property 2022-09-05 16:04:38 +05:30
Aradhya
ae18f74311 feat: Added nested set support 2022-09-03 19:15:35 +05:30
Aradhya
3cb98121a8 refactor: more PseudoColumn checks :( 2022-09-02 00:16:08 +05:30
Aradhya
0c09dd4863 fix: not joining twice implicitly 2022-09-01 20:03:43 +05:30
Aradhya
e576d16855 refactor: using refactored TABLE_PATTERN for finding fields 2022-08-31 15:44:43 +05:30
Aradhya
c55afe23f8 refactor: removed flaky implicit joins 2022-08-30 16:40:47 +05:30
Aradhya
ec100d7a8a fix: misc fixes 2022-08-30 16:36:00 +05:30
Aradhya
f36eda1e83 refactor: using enumerate while indexing on the fly 2022-08-24 14:44:18 +05:30
Aradhya
8fe5a64140 fix: fixed complex toupper implementation 2022-08-24 14:39:43 +05:30
Aradhya
712416ceb0 refactor: changed function name to better define usage 2022-08-22 14:52:41 +05:30
Aradhya
535b64931e refactor: using enumerate to iterate over fields & warn when passing query object to def sql 2022-08-22 14:49:30 +05:30
Aradhya
0d4020e3ed refactor: removed excess branching 2022-08-20 19:27:14 +05:30
Aradhya
0b50e6371b refactor(minor): lint 2022-08-19 16:01:38 +05:30
Aradhya
e400df90ff refactor: removed iterable from iteration ;/ 2022-08-19 15:56:34 +05:30
Aradhya
0addffafb9 refactor: minor changes 2022-08-17 19:52:51 +05:30
Aradhya
40bfad9aeb refactor: moved join operations to function 2022-08-14 15:24:06 +05:30
Aradhya
caab7ff863 fix: fixed foreign doctype parsing in get_query
lint: removed redundant imports
2022-08-11 18:33:36 +05:30
Aradhya
306e259847 fix: fixed join logic 2022-08-11 00:13:07 +05:30
Aradhya
85d1e41738 fix: fixed join query from fields 2022-08-10 23:42:01 +05:30
Aradhya
f4eaa4a481 feat: joining on tables mentioned in fields 2022-08-10 01:24:26 +05:30
Aradhya
2ed0e1e648 fix: fixed filters when getting field names from child tables 2022-08-05 14:51:44 +05:30
Aradhya
4df8b18503 fix: fixed fields when getting field names from child tables 2022-08-04 18:58:03 +05:30
Aradhya
5792265f77 feat: Added support for fieldnames from child tables 2022-08-03 16:31:04 +05:30
Aradhya Tripathi
5ccaebca34
Merge branch 'develop' into get-all-mod 2022-07-29 14:27:37 +05:30
Shariq Ansari
a772cc0796
fix: removing unused import line (#17654) 2022-07-29 10:24:49 +05:30
Aradhya
6c905233c5 feat: Added support for string filters in query 2022-07-28 23:55:58 +05:30
Aradhya
65e0251e70 feat: Added support for "`" in alias name 2022-07-27 18:38:02 +05:30
Aradhya
90282d968e fix: added support for non iterables in "in" and "not in" 2022-07-26 20:01:17 +05:30
Aradhya
41f62ba0d2 fix: converting back to capitalized doctype names 2022-07-26 19:33:45 +05:30
Aradhya
4779443466 feat: Added support for aliasing in PseudoColumns 2022-07-24 22:53:48 +05:30
Aradhya
1a74d19bad feat: Added support for pseudocolumns in functions 2022-07-24 16:56:47 +05:30
Aradhya
a7d74266d2 feat: Flexible pseudocolumns 2022-07-24 15:40:48 +05:30
Aradhya Tripathi
62786c7316
Merge branch 'develop' into get-all-mod 2022-07-24 14:28:30 +05:30
Aradhya
a3ae6794ec fix: fixed PseudoColumn fields 2022-07-24 01:25:38 +05:30
Aradhya
f2ada4630c fix: removed exessive quotes from query 2022-07-23 17:18:43 +05:30
Gavin D'souza
1ccdad811a Merge branch 'develop' of github.com:frappe/frappe into mariadb-client-refactor 2022-07-19 16:23:24 +05:30
Aradhya
4e0ec7919e fix: removing additional "`" from fields 2022-07-18 22:19:52 +05:30
Ankush Menat
0164a87ac9
Merge pull request #17350 from Aradhya-Tripathi/get-all-mod
feat: Adding support to Query engine
2022-07-13 18:36:04 +05:30
Ankush Menat
3fdd89a737
refactor!: remove old weekly cleanup for route history (#17493)
This is now configurable with log settings.

This also fixes circular import issue that occurs when restoring backup
2022-07-13 11:02:56 +05:30
Aradhya
7658c60f57 feat: Added fall back for custom functions 2022-07-13 03:25:02 +05:30
Aradhya
64463791a1 feat: Added support for multiple functions in string fields & fixed aliasing 2022-07-12 22:07:11 +05:30
Aradhya
dbbd9e9095 fix: removing functions from strings when alias is same as function name 2022-07-12 17:59:37 +05:30
Aradhya
613065fa2e feat: Added support for aliasing in function objects 2022-07-09 22:27:29 +05:30
Gavin D'souza
71b5c77e6e Merge branch 'develop' of github.com:frappe/frappe into mariadb-client-refactor 2022-07-05 14:55:02 +05:30
Aradhya Tripathi
ebd1d5b48c
Merge branch 'develop' into get-all-mod 2022-07-01 13:25:32 +05:30
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
refactor: clean up code to py39+ supported syntax

- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes

Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
Gavin D'souza
fddd624a7c Merge branch 'develop' of github.com:frappe/frappe into mariadb-client-refactor 2022-06-30 14:31:52 +05:30