Commit graph

32247 commits

Author SHA1 Message Date
Gavin D'souza
0b06a67aee feat: Validate field name conflicts in DocType.validate
# Conflicts:
#	frappe/core/doctype/doctype/doctype.py

(cherry picked from commit c652c7b7f5)
2021-05-10 13:04:44 +00:00
Gavin D'souza
f7f400985b chore: Rename function to validate conflicting methods and properties
(cherry picked from commit 255a959a3e)
2021-05-10 13:04:43 +00:00
Gavin D'souza
1154753a6f fix: Don't execute dynamic properties to check if conflicts exist
(cherry picked from commit 9aa2f366dd)
2021-05-10 13:04:43 +00:00
rohitwaghchaure
4f408730bb
Merge pull request #13149 from rohitwaghchaure/cherk-delete-permission
fix: show delete button on portal if user has permission to delete document
2021-05-10 12:49:21 +05:30
gavin
36fe9020a8
Merge pull request #13128 from frappe/mergify/bp/version-13-hotfix/pr-13102
refactor(CLI): Show config (backport #13102)
2021-05-07 13:01:07 +05:30
Gavin D'souza
3b5c54df54 Merge branch 'version-13-hotfix' of github.com:frappe/frappe into mergify/bp/version-13-hotfix/pr-13102 2021-05-07 12:34:45 +05:30
gavin
477e5e78e9
Merge pull request #13125 from frappe/mergify/bp/version-13-hotfix/pr-12966
feat(cli): Format Option for list-apps (backport #12966)
2021-05-07 12:32:48 +05:30
Gavin D'souza
983e29d666 chore(cli): Add pending deprecation warning
* Add PDW for --as-dict in command set-config
* Move all top level imports inside each util to optimize imports for
  CLI
* Set always show filter for DeprecationWarning, PendingDeprecationWarning via frappe module

(cherry picked from commit bf9fcb3)

---

Conflicts Resolved. 1 Pending

Depends on https://github.com/frappe/frappe/pull/13125
2021-05-07 12:30:15 +05:30
Suraj Shetty
bd8ce96a00
Merge pull request #13151 from frappe/mergify/bp/version-13-hotfix/pr-13121
feat(DX): Add simple __repr__ for DocTypes (backport #13121)
2021-05-07 11:50:26 +05:30
Suraj Shetty
c10ae1d291
Merge pull request #13156 from frappe/mergify/bp/version-13-hotfix/pr-13155
fix: Typo (backport #13155)
2021-05-07 11:44:46 +05:30
Suraj Shetty
e869f8fc04 fix: Typo
(cherry picked from commit a2bb92f6a4)
2021-05-07 06:14:16 +00:00
Suraj Shetty
ff04aee051
Merge pull request #13154 from frappe/mergify/bp/version-13-hotfix/pr-13153 2021-05-07 11:26:40 +05:30
Suraj Shetty
bb276f08f5 fix: Quill Table border color
(cherry picked from commit 4fb545fb8c)
2021-05-07 05:37:06 +00:00
Suraj Shetty
c5da8436c2 fix: Summary Item width
(cherry picked from commit 5fabd51a03)
2021-05-07 05:37:06 +00:00
Ankush Menat
c9fd0031dc feat(DX): Add __repr__ and __str__ for DocTypes
- Show doctype and name
- if docstatus != 0, show docstatus
- if child doctype, show parent

(cherry picked from commit adbf267212)
2021-05-07 04:44:36 +00:00
Rohit Waghchaure
a302393bc2 fix: show delete button on portal if user has permission to delete document 2021-05-06 23:23:21 +05:30
Nabin Hait
a5ea898204
perf: Performance enhancement on creation of custom fields from setup wizard (#13137) 2021-05-06 17:05:33 +05:30
Suraj Shetty
4010dfbcd7
Merge pull request #13119 from frappe/mergify/bp/version-13-hotfix/pr-12965 2021-05-05 18:02:09 +05:30
Gavin D'souza
769d1f4ec4 refactor(minor): Bench set-config
* Replace --as-dict with a more apt --parse
* Fixed styling
* Renamed variables

(cherry picked from commit 8cd6b520ed)
2021-05-05 12:31:59 +00:00
Gavin D'souza
8f0ae65b9b chore: Drop redundant command auto-deploy
(cherry picked from commit 73ff84da8e)
2021-05-05 12:31:59 +00:00
Gavin D'souza
0ea3c3f2a5 fix(bench-console): Show only apps in namespace
(cherry picked from commit 3c1b6c66d9)
2021-05-05 12:31:59 +00:00
Gavin D'souza
affeb672a6 fix: Show complete frappe.conf including common conf
(cherry picked from commit bcbc0d0a7c)
2021-05-05 12:31:59 +00:00
Gavin D'souza
b30980ebf5 test: Add tests for bench show-config
(cherry picked from commit 3b34474f8d)

# Conflicts:
#	frappe/tests/test_commands.py
2021-05-05 12:31:59 +00:00
Gavin D'souza
e9fab5da38 fix: Format JSON outputs better
(cherry picked from commit 991965fe6b)

# Conflicts:
#	frappe/commands/site.py
2021-05-05 12:31:59 +00:00
Gavin D'souza
fa5dabca1a feat(cli): Format option in bench show-config
(cherry picked from commit 95db79a1d0)
2021-05-05 12:31:59 +00:00
Gavin D'souza
229e472820 refactor: bench show-config
* Handle no site being specified. Fixes https://github.com/frappe/frappe/issues/13100
* Remove tabbed output in favour of table
* Add multi site support

(cherry picked from commit bb25caa97f)
2021-05-05 12:31:58 +00:00
Suraj Shetty
0014cf3b09
Merge pull request #13126 from frappe/mergify/bp/version-13-hotfix/pr-13120
perf(PDDR): Replace filter_by like with full text filter (backport #13120)
2021-05-05 18:00:55 +05:30
Suraj Shetty
765ef10434
Merge pull request #13124 from frappe/mergify/bp/version-13-hotfix/pr-12996 2021-05-05 18:00:45 +05:30
Gavin D'souza
7b7708251a perf: Replace filter_by like with full text filter
* Remove like %email%  in where clause
* Add fallback for all dict getattrs to owner

(cherry picked from commit 86d6eb51a6)
2021-05-05 12:11:37 +00:00
gavin
e351596165 chore: Use click.echo in favour of print
Accepting suggested changes because `click.echo` has improved support for handling Unicode and binary data that "does not fail no matter how badly configured the system is" _(ref: docstring)_.

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
(cherry picked from commit 8d1711ebc5)
2021-05-05 12:10:05 +00:00
Gavin D'souza
dbf83ed89e chore: Re-trigger CI builds
(cherry picked from commit 66cb873817)
2021-05-05 12:10:05 +00:00
Gavin D'souza
77dfa33aac test: Added tests for bench list-apps -f json
(cherry picked from commit 520143d43a)
2021-05-05 12:10:05 +00:00
Gavin D'souza
e346744bfa feat(cli): Format Option for list-apps
(cherry picked from commit a4a32fc4ed)
2021-05-05 12:10:04 +00:00
Gavin D'souza
b0ee19cf75 fix(PDDR): Translation String
(cherry picked from commit c6356b12c0)
2021-05-05 12:08:37 +00:00
Gavin D'souza
bddd895d96 feat: Deletion Steps in Data Deletion Tool
* Track deletion steps in PDDR
* Option to commit via pddr._anonymize_data

(cherry picked from commit 7953896ab5)
2021-05-05 12:08:37 +00:00
Sagar Vora
993ed39d2f fix: hide scrollbar on touch devices
(cherry picked from commit ed2ca98502)
2021-05-05 05:34:59 +00:00
Sagar Vora
667e33dc3f fix: sticky header and footer for accessibility
(cherry picked from commit 17e1d03a47)
2021-05-05 05:34:59 +00:00
Sagar Vora
49faecc354 fix: remove scrollable behavior
(cherry picked from commit d6a3621650)
2021-05-05 05:34:59 +00:00
Sagar Vora
30d085f0b9 fix(UI): dont disable dialog scroll on focusing a Link/Autocomplete field
(cherry picked from commit cf42986d88)
2021-05-05 05:34:58 +00:00
Suraj Shetty
ffcb5969be
Merge pull request #13118 from frappe/mergify/bp/version-13-hotfix/pr-13095 2021-05-05 09:47:55 +05:30
Deepesh Garg
1fdafc43a4 fix: Errors
(cherry picked from commit 4e4e0fa3d9)
2021-05-05 04:17:20 +00:00
Deepesh Garg
7f12d2b053 fix: Error while exporting reports with duration field
(cherry picked from commit eafadcca47)
2021-05-05 04:17:19 +00:00
Suraj Shetty
c5ee45f905
Merge pull request #13111 from frappe/mergify/bp/version-13-hotfix/pr-13098
fix(setup): do not show messsage when exception is handled (backport #13098)
2021-05-04 10:56:56 +05:30
Sagar Vora
710bc1a5bf fix(setup): do not show messsage when exception is handled
(cherry picked from commit ac9fe71733)
2021-05-04 05:26:34 +00:00
Suraj Shetty
001438effd
Merge pull request #13110 from frappe/mergify/bp/version-13-hotfix/pr-13103
chore: remove py2 specific code from boilerplate (backport #13103)
2021-05-04 10:43:19 +05:30
Ankush Menat
6e0b256afa chore: remove py2 specific code from boilerplate
(cherry picked from commit a617348a79)
2021-05-04 05:11:20 +00:00
Suraj Shetty
e8edc92a60
Merge pull request #13109 from frappe/mergify/bp/version-13-hotfix/pr-13099 2021-05-04 10:39:12 +05:30
Sagar Vora
09e406395a fix: add docstring
(cherry picked from commit e288b781bf)
2021-05-04 05:08:50 +00:00
Sagar Vora
65b6d14dcf fix: disable reloading files in __pycache__ directory
(cherry picked from commit b214a993da)
2021-05-04 05:08:50 +00:00
Suraj Shetty
1b70fe7be8
Merge pull request #13094 from hasnain2808/version-13-hotfix-coveralls 2021-05-03 16:50:04 +05:30