Commit graph

35080 commits

Author SHA1 Message Date
Suraj Shetty
4e6ea8fdbd fix: Docstring of has_permission & made error title translatable
- doctype -> DocType
- fixed other typo
2021-10-28 15:25:45 +05:30
Suraj Shetty
57df0bad82 fix: Check permission for address and contact list 2021-10-28 15:14:53 +05:30
Suraj Shetty
bf34de1d04 fix: Assume that child doc will have parent references 2021-10-28 15:06:38 +05:30
Suraj Shetty
7670c0430a fix: Simplify code and fix typo 2021-10-28 14:49:52 +05:30
Suraj Shetty
cb76118268 refactor: Check parent validity using parent meta 2021-10-28 13:41:12 +05:30
Suraj Shetty
95258bf9f2 fix: Do not allow child table access via "get_list_data" 2021-10-28 13:38:54 +05:30
Suraj Shetty
26dfdf5c11 test: Update tests 2021-10-28 11:18:36 +05:30
Suraj Shetty
0d5cd86401 fix: Pass parent_doctype to get_list 2021-10-28 11:18:01 +05:30
Suraj Shetty
9ce52fcd18 fix: Properly pass kwargs to has_permission of parent 2021-10-28 11:17:10 +05:30
Suraj Shetty
b68d6fe879 fix: typo 2021-10-27 13:57:44 +05:30
Suraj Shetty
3b92971a8e test: Update test case 2021-10-27 13:53:08 +05:30
Suraj Shetty
9189c62437 fix: Pass parent_doctype while checking permission for child_table in db_query 2021-10-27 13:52:34 +05:30
Suraj Shetty
64822df6ff
Merge branch 'develop' into fix-has-permission-for-child-doc 2021-10-27 13:07:44 +05:30
Suraj Shetty
68cf640545 test: Test child table permission 2021-10-27 13:00:16 +05:30
Suraj Shetty
0f98b4d174 fix: Make parent_doctype mandatory while accessing child doctype 2021-10-27 12:59:42 +05:30
mergify[bot]
704d5e2fc6
Merge pull request #14582 from ankush/weasyprint_import_error
fix(dx): error message for missing system deps
2021-10-27 06:00:34 +00:00
Ankush Menat
50eb39eb5e fix(dx): error message for missing system deps 2021-10-27 10:15:11 +05:30
mergify[bot]
60eb66e3dd
Merge pull request #14305 from nextchamp-saqib/mask-sql-errors
feat: handle timeout and deadlocks in db.sql
2021-10-26 14:26:45 +00:00
mergify[bot]
13d594a51a
Merge pull request #14578 from Aradhya-Tripathi/at/fix/translate
fix: fixed erroneous query in translate
2021-10-26 13:24:52 +00:00
Aradhya-Tripathi
92ad93c9d7 fix: sider issues 2021-10-26 18:41:27 +05:30
Aradhya-Tripathi
56dfae64f3 fix: converted dependent queries 2021-10-26 18:32:50 +05:30
Aradhya-Tripathi
a76f64bbaf fix: fixing query in translate.py 2021-10-26 17:51:37 +05:30
Gavin D'souza
125233315f fix: errprint only if traceback? 2021-10-26 17:33:03 +05:30
mergify[bot]
b1aa6a25c5
Merge pull request #14455 from frappe/add-login-fields
feat: add login fields to social login page
2021-10-26 12:00:51 +00:00
Suraj Shetty
f4ff67dacd
Merge branch 'develop' into add-login-fields 2021-10-26 17:10:38 +05:30
Gavin D'souza
c755df29bd Merge branch 'develop' of github.com:frappe/frappe into mask-sql-errors 2021-10-26 15:37:03 +05:30
Suraj Shetty
494cc83bde fix: Return parent doc object for further permission check 2021-10-26 14:30:13 +05:30
Suraj Shetty
3728e6dfdb fix: Use get_all instead of get_list for doc creation to avoid permission check 2021-10-26 12:40:37 +05:30
mergify[bot]
d82c5e083c
Merge pull request #14575 from ankush/patch_failure
fix: patch failure due to incorrect args in query
2021-10-26 06:42:42 +00:00
Ankush Menat
e8e90d4320 fix: patch failure due to incorrect args in query 2021-10-26 11:40:19 +05:30
Paweł Wojciechowski
a956571d41
fix: Website URL parsing function parses absolute telephone/phone tel: URLs as relative (#14568)
* Update utils.py

Fix: #14567 

tel: URLs should be parsed as absolute path

* fix: Parsing telephone/phone tel: URLs as absolute
2021-10-26 05:34:23 +00:00
mergify[bot]
2ffab778c4
Merge pull request #14573 from vrslev/develop
fix(ui): Make user-wise grid customization translatable
2021-10-26 05:17:36 +00:00
Lev
b8470ba7f4 fix(grid): Make user-wise grid customization translatable 2021-10-25 20:33:22 +03:00
gavin
b2c973929a
Merge pull request #14564 from gavindsouza/misc-fixes-3
fix: Misc fixes
2021-10-25 22:35:01 +05:30
mergify[bot]
82852fdc37
Merge pull request #14566 from ankush/xmlrunner_fix
fix: only import xmlrunner if coverage is required
2021-10-25 16:11:23 +00:00
Saqib Ansari
4670207dbd refactor: extend Exception instead of ValidationError 2021-10-25 18:46:54 +05:30
Saqib Ansari
248f97f99b fix: sider issues 2021-10-25 18:41:56 +05:30
Ankush Menat
1bf4359f9c fix: only import xmlrunner if coverage is required 2021-10-25 16:59:43 +05:30
Gavin D'souza
78ba785cbd fix: Use all properly ugh 2021-10-25 15:59:24 +05:30
Gavin D'souza
46a8e20ac2 fix: Don't export migration_hash column in std json
Fixes https://github.com/frappe/frappe/issues/14563
2021-10-25 14:45:03 +05:30
Gavin D'souza
1b9961e508 fix(doctype): Update controller file on has_web_view change 2021-10-25 13:23:35 +05:30
Gavin D'souza
4ffc8e7660 chore(dev): Remove duplicate set owner & modifiedby 2021-10-25 13:18:52 +05:30
mergify[bot]
ebc29efae5
Merge pull request #14499 from ankush/configurable_max_writes
refactor: move max_writes constant to a class var
2021-10-25 07:01:13 +00:00
mergify[bot]
92c60983cc
Merge pull request #14463 from ankush/fuzzy_website_search
feat: allow fuzzy search in website search
2021-10-25 06:57:33 +00:00
Faris Ansari
179960d67f
Merge pull request #14134 from netchampfaris/print-format-builder-beta
feat: New Print Format Builder
2021-10-25 12:12:08 +05:30
gavin
76924b27dd
Merge pull request #14550 from ankush/move_semgrep
ci: move semgrep rules out of repo
2021-10-25 11:36:23 +05:30
mergify[bot]
4e3547fd08
Merge pull request #14552 from Aradhya-Tripathi/at/query/fix
fix: set_value takes for_update for pypika objects
2021-10-25 06:04:48 +00:00
Ankush Menat
99a6874aff feat: apply boosts on search queries
This gives higher priority to title and match over content.
2021-10-25 09:14:53 +05:30
Ankush Menat
4ef4ecdf01 fix: dont hardcode search fields
FullTextSearch uses name and content
WebsiteSearch uses title and content

Tests were failing because of hardcoded fieldnames which can't be
overridden by inheriting class without rewriting search function.

Made a separate function for defining search fields.
2021-10-25 09:14:48 +05:30
Ankush Menat
56f5b3d1f3 test: make global search tests less flaky 2021-10-24 14:46:02 +05:30