Commit graph

37602 commits

Author SHA1 Message Date
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
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
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
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
Suraj Shetty
155dbb5652 refactor: Move checkbox style to a separate file to re-use it in print 2022-04-18 11:54:44 +05:30
Deepesh Garg
bafb1faa48 chore: Add semantic releases 2022-04-18 10:52:49 +05:30
Nikhil Kothari
746e017aef
fix: Fixed spelling of "Submitting" in Bulk Upload Modal (#16638)
* Fixed spelling of "Submitting"

* Updated translation files
2022-04-16 14:15:59 +05:30
Faris Ansari
839eee7bd5 fix: current job was not shown in workers view
because of `if` conditions that should only be checked when view is Jobs
2022-04-16 08:04:07 +05:30
Faris Ansari
112da07451 test: dict and JSON filters in client.get 2022-04-16 06:03:40 +05:30
Faris Ansari
7233c257c7 fix: handle filters passed as dict to client.get 2022-04-16 05:45:15 +05:30
Suraj Shetty
dff622d38e
Merge pull request #16631 from surajshetty3416/fix-webform 2022-04-15 18:45:46 +05:30
Suraj Shetty
bb4c2a80a3
Merge branch 'frappe:develop' into fix-webform 2022-04-15 18:41:35 +05:30
Suraj Shetty
3c1175ea15 fix: Directly pass link_title_doctypes instead of calling it
To avoid permission error
2022-04-15 18:41:07 +05:30
HENRY Florian
0ae7248847
fix: update translation (#16623) 2022-04-14 22:43:57 +05:30
Deepesh Garg
2af2b80ba6
feat: Expose add index in exec_globals (#16605)
* feat: Expose add index in exec_globals

* fix: Linting issues
2022-04-14 18:59:39 +05:30
mergify[bot]
6890f83324
Merge pull request #16591 from netchampfaris/allow-multiple-client-scripts
feat: allow multiple client scripts
2022-04-14 12:48:18 +00:00
mergify[bot]
b0de2dda1d
Merge pull request #16624 from ankush/autoname_field_validation
fix: extend autoname validation to child items
2022-04-14 11:46:17 +00:00
Ankush Menat
a615c60be4 test: naming on child tables 2022-04-14 16:33:23 +05:30
Ankush Menat
b409a7eeba fix: extend autoname validation to child items 2022-04-14 15:16:59 +05:30
mergify[bot]
b8114eea9c
Merge pull request #16007 from netchampfaris/better-autocompletion-api
fix(ux): Images in Markdown
2022-04-14 08:07:21 +00:00
mergify[bot]
b656c8da58
Merge pull request #16610 from gavindsouza/reload-doc_force
fix: Obey force kwarg frappe.reload_doc
2022-04-14 06:28:23 +00:00
Gavin D'souza
5564f1e007 fix: Allow adding JSON fields via Customize Form 2022-04-14 09:52:26 +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
![json](https://user-images.githubusercontent.com/11792643/156367383-8f8492c2-3817-449d-a2dd-c983eeadbb48.gif)



---

**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
Faris Ansari
168bf6d3e4 test: ui test for inserting image in markdown 2022-04-14 00:46:32 +05:30
Faris Ansari
5740dbb447 fix: handle attaching images in new form 2022-04-14 00:46:08 +05:30
Faris Ansari
32e4f932bb test: ui test for client scripts 2022-04-14 00:17:26 +05:30
Ankush Menat
2fbf8c905f
fix: dont override local proxies (#16611) 2022-04-13 20:44:10 +05:30