Commit graph

552 commits

Author SHA1 Message Date
Rushabh Mehta
f2fe49b5e1
Merge pull request #11328 from rmehta/safe-exec-sql
feat(server script): Allow frappe.db.sql for read
2020-08-24 17:46:09 +05:30
Rushabh Mehta
7895ddf865 fix(minor): client.get_value fix for single 2020-08-22 21:18:38 +05:30
Rushabh Mehta
2b80e710bc fix(minor): client.get_value fix for single 2020-08-22 21:15:45 +05:30
Rushabh Mehta
ffa785bb47 fix(client.py): fix get_value for name 2020-08-21 15:14:59 +05:30
Rushabh Mehta
275a70e9d0 feat(minor): allow frappe.db.sql for read in server script 2020-08-20 18:33:29 +05:30
Rushabh Mehta
89717b0060 fix(tests): test_insert_many 2020-08-19 15:03:17 +05:30
Rushabh Mehta
a4dfac507b fix(minor): use get_list in client.get_value for tighter checks 2020-08-19 14:57:59 +05:30
Rushabh Mehta
0192bcf45f fix(minor): frappe.db.set_value to allow multiple values 2020-08-17 22:19:44 +05:30
Rushabh Mehta
137df8290b fix(sider): fix sider issues 2020-08-17 09:41:54 +05:30
Rushabh Mehta
b0f2af0ac5 fix(tests): add tests for home page 2020-08-17 09:41:54 +05:30
Suraj Shetty
0919dbeccd test: Manually delete jobs instead of deleting job type
- This removes unwanted traceback of "Scheduled Job Type" not found
while running tests
2020-08-09 00:06:25 +05:30
Suraj Shetty
cd1ab8e23c
feat: Add validate_and_sanitize_search_inputs decorator (#11194)
* feat: Add validate_and_sanitize_search_inputs decorator

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
Co-authored-by: Prssanna Desai <prssud@gmail.com>
Co-authored-by: Shivam Mishra <scmmishra@users.noreply.github.com>

* refactor: Move validate_and_sanitize_search_inputs to init

* refactor: Move validate_and_sanitize_search_inputs to search.py

* test: validate_and_sanitize_search_inputs decorator

* chore: Add wrapt module

* refactor: Use @wrapt to define validate_and_sanitize_search_inputs decorator

* test: Add a case to make sure frappe.call works as well

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
Co-authored-by: Prssanna Desai <prssud@gmail.com>
Co-authored-by: Shivam Mishra <scmmishra@users.noreply.github.com>
2020-08-05 19:41:41 +05:30
Suraj Shetty
d3e4a97b6f
test: Make email account is email account test (#11139) 2020-07-29 17:17:53 +05:30
Chinmay Pai
e30161b222
fix: disallow global variable access through sql (#10875)
* fix: disallow global variable access through sql

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
Co-authored-by: Sahil Khan <sahilkhan28297@gmail.com>

* chore: add test for sql disallowed variable access

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

Co-authored-by: Sahil Khan <sahilkhan28297@gmail.com>
2020-07-10 13:55:06 +00:00
Rushabh Mehta
62a8774bb1
feat(role permission): if desk access is removed from a role, attempt to remove it from users too (#10838)
* feat(minor): if desk access is removed from a role, attempt to remove it from users too

* fix(minor): exception for install;

* fix(minor): exception for install
2020-06-29 02:43:23 +00:00
Suraj Shetty
fac4dbdd23
Merge branch 'develop' into force_listview_columns 2020-05-20 21:01:00 +05:30
Suraj Shetty
3bd2eb15df
Merge branch 'develop' into force_listview_columns 2020-05-15 18:05:20 +05:30
Himanshu Warekar
b28cab3512 Merge branch 'develop' of https://github.com/frappe/frappe into multiple_assignments 2020-05-15 15:21:05 +05:30
Aditya Hase
aef567fdde fix(rate-limiter): Remove duplicate headers 2020-05-13 13:45:55 +05:30
Aditya Hase
c532a87370 tests(rate-limiter): Rate Limiter tests 2020-05-13 12:34:07 +05:30
Himanshu Warekar
7c54f60ec3 Merge branch 'develop' of https://github.com/frappe/frappe into force_listview_columns 2020-05-12 11:42:41 +05:30
Suraj Shetty
3ae2c1294d test: Remove unwanted test and fix permission test 2020-05-08 13:55:56 +05:30
Himanshu Warekar
04a59352f7 fix: test cases 2020-05-06 17:40:50 +05:30
Himanshu Warekar
016547378d Merge branch 'develop' of https://github.com/frappe/frappe into force_listview_columns 2020-05-05 10:32:40 +05:30
Suraj Shetty
981da526f9 fix: Contextual translation key generation 2020-05-04 22:27:06 +05:30
Suraj Shetty
ba162425ac test: Add translation extraction test 2020-05-03 18:41:19 +05:30
Shivam Mishra
dabdab5c9f fix: test_set_only_once_child_table_row_value test 2020-04-30 16:24:41 +05:30
Himanshu Warekar
9641dd6f66 Merge branch 'develop' of https://github.com/frappe/frappe into force_listview_columns 2020-04-16 20:21:03 +05:30
Suraj Shetty
41d80b4184
Merge pull request #9949 from scmmishra/customize-datafield-fix
fix: ignore fieldtype check validation if new field type has unspecified maxlength
2020-04-16 13:05:20 +05:30
Rushabh Mehta
7800fdbfee fix(tests): sitemap and condition field for Web View 2020-04-16 09:38:34 +05:30
Shivam Mishra
7696f11e3c feat: update test to check DATA to Text change 2020-04-15 13:24:01 +05:30
Himanshu Warekar
2e2493a18e Merge branch 'develop' of https://github.com/frappe/frappe into force_listview_columns 2020-04-14 11:42:31 +05:30
mergify[bot]
428cfa3b25
Merge pull request #9815 from frappe/dependabot/pip/bleach-3.1.4
chore(deps): bump bleach from 3.1.2 to 3.1.4
2020-04-10 07:58:55 +00:00
Gavin D'souza
2c1ffaae9c fix(test): update test for updated bleach behaviour
bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=1623633
2020-04-10 12:13:48 +05:30
Himanshu Warekar
3f824d2686 Merge branch 'develop' of https://github.com/frappe/frappe into force_listview_columns 2020-04-09 10:23:54 +05:30
Chinmay D. Pai
5a4251bce8
chore: add test to check null result
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-03 09:54:34 +05:30
Chinmay D. Pai
5cd5d03038
chore: fix errors in global_search test
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-03-30 11:11:20 +05:30
Chinmay D. Pai
39df9fc8c0
chore: add test assertion for global_search
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-03-30 10:49:20 +05:30
Chinmay D. Pai
10e939d012
chore: update global_search and add test
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-03-30 10:46:00 +05:30
Suraj Shetty
5194bcd5a4
Merge branch 'develop' into fix-customized-form 2020-03-25 12:57:39 +05:30
Suraj Shetty
699e6f8d4c test: Delete contact phone and and contact email while deleting contact 2020-03-23 13:33:21 +05:30
Suraj Shetty
bf69b98cba test: Set docstatus type as Check 2020-03-21 18:24:15 +05:30
Suraj Shetty
641580a300 test: Add a fallback default 2020-03-21 18:11:42 +05:30
Suraj Shetty
8f8e361766 style: Fix formatting issues 2020-03-21 17:45:39 +05:30
Suraj Shetty
739f061871 test: Add test for frappe.db.updatedb 2020-03-21 12:30:54 +05:30
Aditya Hase
542a3ce222 fix: Remove flaky assertions 2020-03-05 17:20:59 +05:30
Aditya Hase
4e69326fac style: Remove unused imports 2020-03-05 16:27:22 +05:30
Aditya Hase
4740e4f7e6 refactor: Monitor
Do not collect request headers
Collect job wait time and whether it was scheduled
2020-03-05 15:06:15 +05:30
Aditya Hase
af3c4feb64 feat: Monitor
Collect HTTP Request and Background Job logs
2020-03-05 15:06:15 +05:30
prssanna
59a85b4b20 test: add test to check child table field permlevel 2020-03-02 16:40:19 +05:30