Commit graph

37627 commits

Author SHA1 Message Date
Gavin D'souza
4e533682ba feat: get_traceback with context 2022-04-21 13:26:12 +05:30
Suraj Shetty
c1e477ce5d
Merge pull request #16697 from surajshetty3416/fix-field-group
fix: Do not use `set_value` for default to avoid change event
2022-04-21 12:52:56 +05:30
Suraj Shetty
b5c3ff16ee fix: Do not use set_value for default to avoid change event 2022-04-21 12:43:46 +05:30
mergify[bot]
cc8d096bd1
Merge pull request #16582 from alyf-de/fix-open-count-no-data
fix: handle no data in set_open_count
2022-04-21 06:15:56 +00:00
Suraj Shetty
acbbeb1de5
Merge pull request #16693 from surajshetty3416/fix-rtl-table 2022-04-21 10:16:06 +05:30
Suraj Shetty
56bb11dc17 fix: Do not change direction of text if already in RTL mode 2022-04-21 08:49:48 +05:30
gavin
5e707d3527
Merge pull request #16689 from gavindsouza/bulk_insert-fix
fix(bulk_insert): Cast values as list before subscripting
2022-04-20 16:59:28 +05:30
Gavin D'souza
35c606707e fix(bulk_insert): Cast values as list before subscripting 2022-04-20 16:43:19 +05:30
Rushabh Mehta
78bddb4127
Merge pull request #16653 from rmehta/error-log-ref
feat(minor): Add document reference to Error Log and doc.log_error
2022-04-20 15:54:59 +05:30
Ankush Menat
296a6bd02f
test: show locals on test failure (#16687)
- Show locals always in CI
- Show locals locally when running in verbose mode
2022-04-20 15:37:54 +05:30
Rushabh Mehta
248c3555e3 fix(minor): add error_log for failed webhooks and web pages 2022-04-20 15:16:44 +05:30
Ankush Menat
dcee40046a
perf!: simpler frappe.get_system_setting (#16685)
Not sure why this needs to be "cached" in locals again when db object
already caches it in value_cache.
2022-04-20 15:16:04 +05:30
Faris Ansari
620a944104
Merge pull request #16622 from netchampfaris/less-flaky-date-test
test: less flaky date control test
2022-04-20 14:10:55 +05:30
Shariq Ansari
11360c5fd8
fix: Check mandatory_depends_on also while checking mandatory on save (#16515) 2022-04-20 13:02:42 +05:30
gavin
0a1b75c452
Merge pull request #16680 from gavindsouza/migrate-fix
fix: Check for required services running after frappe init
2022-04-20 12:05:59 +05:30
Gavin D'souza
91e0cac029 fix: Check for required services running after frappe init
Each site on a single app server can run on separate DBMS' on separate
servers. This site specific config resides in each site's
site_config.json file. Thereby, we need to load site's config before
checking for service's availability.
2022-04-20 11:25:38 +05:30
Pruthvi Patel
8b010e1732
refactor: make frappe.db.bulk_insert work as expected (#16527)
## Issue

`frappe.db.bulk_insert` is not working as expected:
 - It will not insert any row if there are less than 3 values
 - It will not add 1st row at all. e.g if I'm adding 5 values, it will only add 4.
 - It will add values one by one after 2 values, instead it should have inserted items (in db) in chunk of 10000 (as per the code written before).

## Changes Made
 - Solved above issues 
 - use better way to chunk list
 - Added Postgres support for bulk_insert API
 
And now `bulk_insert` will only do **1 db call for each 10000** values.

Note: For testing purpose I made `Test Bulk Insert` doctype and keep chunk size of 100.

## Before
![image](https://user-images.githubusercontent.com/43115036/161979365-c1100745-7602-47d2-a9b8-62d797d2039f.png)

## After
![image](https://user-images.githubusercontent.com/43115036/161978344-3c17d56b-2195-40f4-b00c-e9478d4083f1.png)

nodocs
2022-04-19 14:47:22 +00:00
gavin
d3e7090688
Merge pull request #16675 from gavindsouza/invalid-git-version
fix(version): Handle unable to read commit errors in version command
2022-04-19 20:07:41 +05:30
Gavin D'souza
aef0c0f66e fix: Handle unable to read commit errors 2022-04-19 19:21:25 +05:30
gavin
d1f8c87364
Merge pull request #16666 from phot0n/remove-tag-link-patch
chore: remove tag link patch
2022-04-19 18:52:56 +05:30
Ritwik Puri
586dd3ff02
Merge pull request #16612 from phot0n/customize-form-xss
feat(minor): add ignore_xss_filter to customize form field
2022-04-19 17:50:51 +05:30
Deepesh Garg
b59619f764
chore: Update creds to allow updates on protected branch (#16672) 2022-04-19 17:29:09 +05:30
Faris Ansari
fc4e2780bd chore: pretty logging for dialog command 2022-04-19 16:49:34 +05:30
Faris Ansari
d1978d8e62 fix: check dates in frappe realm
new Date in Cypress context and new Date in frappe context differs sometimes in CI
2022-04-19 16:49:08 +05:30
Shariq Ansari
ea463d1387
Merge branch 'develop' into customize-form-xss 2022-04-19 16:04:48 +05:30
Shariq Ansari
ef6bb79f65
test: Typing on focused input issue (#16669) 2022-04-19 15:51:03 +05:30
phot0n
317ff3b9e2 chore: remove tag link patch 2022-04-19 13:50:45 +05:30
phot0n
1aa267a519 chore: move the field to permission section
* chore: fix type in description of ignore_xss_filter in docfield doctype
2022-04-19 12:41:33 +05:30
phot0n
bb58ee5ee6 feat(minor): add ignore_xss_filter to customize form field 2022-04-19 12:37:09 +05:30
Faris Ansari
9482ac4399 style: semicolons 2022-04-19 00:21:08 +05:30
Faris Ansari
afebaa0a23 test: less flaky date control test 2022-04-19 00:21:08 +05:30
Ankush Menat
7b19c91c37
fix: kanban board without title field (#16659) 2022-04-18 19:44:01 +05:30
Faris Ansari
5b046ded15
Merge pull request #16634 from netchampfaris/fix-background-jobs-workers
fix: current job was not shown in workers view
2022-04-18 18:32:17 +05:30
Ankush Menat
d4c4cdce62
Merge pull request #16647 from deepeshgarg007/semantic_releases
chore: Add semantic releases
2022-04-18 17:43:11 +05:30
Ankush Menat
95a13853c7
ci(Mergify): configuration update (#16655)
Signed-off-by: Ankush Menat <me@ankush.dev>

[skip ci]
2022-04-18 17:34:44 +05:30
Shariq Ansari
de8f066dce
fix: Set dependant property of grid fields while rendering (#16548) 2022-04-18 17:31:36 +05:30
Rushabh Mehta
930ae45fb8 fix(test): add a test for Error Log 2022-04-18 17:29:03 +05:30
Rushabh Mehta
626ef14e1e fix(linting): fix quotes 2022-04-18 17:29:03 +05:30
Rushabh Mehta
d9fbee3b9c fix(minor): frappe.log_error 2022-04-18 17:29:03 +05:30
Rushabh Mehta
6e6fe9521e fix(linting): no single quotes :'| 2022-04-18 17:29:03 +05:30
Rushabh Mehta
fca6c3d305 fix(minor): circular imports? 2022-04-18 17:29:03 +05:30
Rushabh Mehta
d55986d56d fix(conflicts): fix conflicts' 2022-04-18 17:29:03 +05:30
Rushabh Mehta
57a55e4225 feat(minor): Add document reference to Error Log and doc.log_error 2022-04-18 17:29:03 +05:30
Deepesh Garg
bf21d2fe2a chore: use ubuntu latest 2022-04-18 16:46:14 +05:30
Deepesh Garg
17aeec04c8 chore: do not publish any assets 2022-04-18 16:45:39 +05:30
Himanshu
803f1fb061
feat: add/remove fields from kanban board (#16257)
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
2022-04-18 15:45:19 +05:30
Faris Ansari
8b9ae0da23
Merge pull request #16633 from netchampfaris/enh-client-get-filters-json
fix: handle filters passed as dict to client.get
2022-04-18 14:44:01 +05:30
Suraj Shetty
1b5203c78f
Merge pull request #16648 from surajshetty3416/check-in-report-print 2022-04-18 14:12:36 +05:30
borgdb
289242a685
fix: Update default currency & date format for Malta. (#16630) 2022-04-18 14:09:19 +05:30
Deepesh Garg
6c7d867dbd chore: block major releases 2022-04-18 13:10:59 +05:30