Ankush Menat
b409a7eeba
fix: extend autoname validation to child items
2022-04-14 15:16:59 +05:30
Shridhar Patil
39f8267a15
feat: added support for data type json ( #16187 )
...
> Please provide enough information so that others can review your pull request:
Added json support for postgres and mariadb
> Explain the **details** for making this change. What existing problem does the pull request solve?
https://github.com/frappe/frappe/projects/4#card-50160428
> Screenshots/GIFs

---
**Previous attempts:**
https://github.com/frappe/frappe/pull/8128
https://github.com/frappe/frappe/pull/7096
Docs: https://frappeframework.com/docs/v13/user/en/basics/doctypes/fieldtypes#json
2022-04-14 04:21:41 +00:00
mergify[bot]
5f0a95f8bd
Merge pull request #16449 from resilient-tech/refactor-_dict
...
refactor!: improved `frappe._dict`
2022-04-14 03:51:55 +00:00
Gavin D'souza
03d542edce
fix!: Allow child table naming
2022-04-13 17:32:58 +05:30
Sagar Vora
77879933ce
style: make changes as per linter
2022-04-13 13:21:01 +05:30
Sagar Vora
38959637e7
perf: move less expensive condition first
...
Co-authored-by: gavin <gavin18d@gmail.com>
2022-04-13 11:40:35 +05:30
Sagar Vora
93051389b1
fix: use isinstance instead of looping over __dict__
2022-04-13 11:20:01 +05:30
Gavin D'souza
20742e396f
Merge branch 'develop' of github.com:frappe/frappe into test-nestedset
2022-04-12 18:09:22 +05:30
Gavin D'souza
01e101d4b8
chore: Add typing and and style conflicts
2022-04-12 15:40:37 +05:30
Nabin Hait
b4476e0257
feat: Ignore permlevel for specific fields
2022-04-12 12:24:23 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black ( #16453 )
...
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Suraj Shetty
2a994a3be4
Merge branch 'develop' into use-backticks
2022-04-10 07:50:53 +05:30
Sagar Vora
73fc2f1d59
fix: require key in doc.get
2022-04-04 11:18:46 +05:30
Sagar Vora
e9b1cdcdca
refactor(BaseDocument)!: dont return __dict__ if key is falsy
2022-04-04 11:11:13 +05:30
Sagar Vora
aedd2fb2b6
Revert "perf: 80% faster doc.get for fields with None as value" ( #16490 )
2022-04-01 20:39:27 +05:30
gavin
4756efca91
Merge pull request #16477 from resilient-tech/perf-doc-get
...
perf: 80% faster `doc.get` for fields with `None` as value
2022-04-01 16:26:27 +05:30
gavin
3f6bbd6349
Merge pull request #16474 from resilient-tech/perf-get-doc-filters
...
perf: reduce query when calling `get_doc` with filters
2022-04-01 15:53:55 +05:30
Sagar Vora
428fc98fa7
chore: add comment to explain line
2022-04-01 14:28:13 +05:30
Sagar Vora
e73c552632
fix: implement for_update for Single documents
2022-04-01 14:15:35 +05:30
Ankush Menat
046f5d31af
fix: don't update autoname field when using Document.save ( #16436 )
2022-04-01 14:00:27 +05:30
Sagar Vora
811c213082
perf: 80% faster doc.get for fields with None as value
2022-04-01 04:35:19 +05:30
Sagar Vora
0ec26cee70
perf: use as_dict parameter
2022-04-01 01:57:09 +05:30
Sagar Vora
d3f8f676d4
fix: show parent in __repr__ only if available
2022-04-01 01:30:58 +05:30
Sagar Vora
e1cc626bd5
style: improve code readability
2022-04-01 01:18:25 +05:30
Sagar Vora
bd35734307
perf: reduce query when calling get_doc with filters
2022-04-01 00:03:54 +05:30
phot0n
8296d6e84a
fix: use backticks for fieldname while preparing filters
2022-03-31 18:12:09 +05:30
Sagar Vora
76779e7452
fix: incorrect logic for parenttype parameter in get_all_children
2022-03-31 10:12:44 +05:30
Mohammad Hasnain Mohsin Rajan
fda544f424
refactor!: make automatically following documents optional ( #16030 )
...
* fix: make automatically following documents optional
* fix: optimize email triggers for document followed
* test: add tests for document follow settings
* test: sync global search before testing
* fix: extend pypika's cast function to mimic varchar cast in MariaDB
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
Co-authored-by: phot0n <ritwikpuri5678@gmail.com>
2022-03-25 02:01:15 +05:30
Sagar Vora
4bb5ea609c
fix: get currency name from DB only if options are set and value is truthy ( #16382 )
...
* fix: call `frappe.db.exists` only if `options` are set and value is truthy
* fix: sider issue
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
* fix: use `get_value` instead of `exists`
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
* test: ensure currency formatting works without currency set in df options or param
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2022-03-23 19:28:01 +05:30
mergify[bot]
f47331cd1d
Merge pull request #16200 from alyf-de/refactor-db-exists
...
refactor: `frappe.db.exists`
2022-03-21 05:47:27 +00:00
barredterra
c26cf25478
fix: avoid invalid call to frappe.db.exists
2022-03-17 02:46:00 +01:00
phot0n
f21f526ae6
fix: sider
2022-03-15 16:49:33 +05:30
phot0n
86c9791813
fix: use next sequence number for ammended doc
...
* chore: use meta
2022-03-15 16:07:08 +05:30
phot0n
15ae019b12
fix: set_next_val function for sequences
...
postgres uses t & f, mariadb uses 0 & 1 for is_value_used
2022-03-11 23:46:01 +05:30
phot0n
93fbace331
fix: set next val of sequence when name is of int type in validate_name
2022-03-11 23:46:01 +05:30
phot0n
906f671d9c
fix(db_query): ordering in extract_tables
...
this will allow the fields to be casted first
2022-03-11 23:46:00 +05:30
phot0n
4ea87fd9cc
chore: rename cast_autoincremented_name to cast_name
2022-03-11 23:46:00 +05:30
phot0n
b876520ef0
fix: logic for is_autoincremented
2022-03-11 23:46:00 +05:30
phot0n
bebc8058b6
feat: integer primary keys
2022-03-11 23:46:00 +05:30
Gavin D'souza
e8ec8410e6
fix(rename_doc): Allow updating only document title or name
2022-03-09 12:57:27 +05:30
Sagar Vora
def10e1e13
chore: remove unused variable doc_before_save
2022-03-07 12:41:45 +05:30
gavin
e233b7beb7
Merge branch 'develop' into fix-rename-tool
2022-03-01 22:31:26 +05:30
gavin
501a1675ec
chore(rename_doc): Consistent error message for no change
2022-03-01 22:31:17 +05:30
gavin
873c4ad0ec
Merge pull request #16165 from gavindsouza/creation-doc-man
...
fix: Set creation dates of standard DocTypes correctly
2022-03-01 12:14:34 +05:30
Sagar Vora
c6049d7e7c
fix: always execute method if found in __dict__ ( #15958 )
...
285823
2022-02-28 12:42:08 +00:00
Gavin D'souza
7d04541b68
fix: Don't reset creation dates in install
2022-02-28 17:02:08 +05:30
Suraj Shetty
6caa0a5954
Merge branch 'develop' into autocomplete-control
2022-02-28 14:14:43 +05:30
Sagar Vora
741ea13db2
fix: forget return value after run_method execution
2022-02-28 12:28:02 +05:30
Saqib Ansari
7ce128de6c
Merge branch 'develop' of https://github.com/frappe/frappe into autocomplete-control
2022-02-25 15:49:13 +05:30
Devin Slauenwhite
7dc5c358da
fix: log failed rename record.
2022-02-24 16:50:10 -05:00