Commit graph

23817 commits

Author SHA1 Message Date
Suraj Shetty
1d92a15fa5
chore: Update travis badge link 2020-03-17 17:15:27 +05:30
mergify[bot]
a5e6aebdc3
Merge pull request #9721 from prssanna/editable-grid-fix-develop
fix: Set fields in grid form as read only for non-editable grids
2020-03-17 10:37:11 +00:00
Shivam Mishra
3f07136a4b
Merge pull request #9720 from prssanna/desk-dict-fix
fix(Desk): cross-compatible check to see if object is string
2020-03-17 15:41:47 +05:30
prssanna
ba3af96729 fix: set fields in grid form as read only for non-editable grids 2020-03-17 15:36:34 +05:30
Suraj Shetty
82ec7d884d
Merge pull request #9715 from hrwX/timeline-fix
fix: remove timeline-new-email class
2020-03-17 15:32:30 +05:30
mergify[bot]
0ca8e829f2
Merge pull request #9709 from dinukasal/develop
fix: Change mysql host from localhost to 127.0.0.1
2020-03-17 09:59:42 +00:00
mergify[bot]
258cfa56a4
Merge pull request #9714 from v1kku/fix/cleanup-page-name
fix: Return empty string if title arg is falsey
2020-03-17 09:41:45 +00:00
mergify[bot]
9af4fb9c13
Merge pull request #9718 from prssanna/dashboard-week-ending-fix-develop
fix: Calculation of week ending date in dashboard charts
2020-03-17 09:39:25 +00:00
prssanna
a2fb73036c fix: cross-compatible check to see if object is string 2020-03-17 14:59:39 +05:30
prssanna
24c2cec144 fix: fix calculation of week ending date in dashboard charts 2020-03-17 13:26:55 +05:30
Himanshu Warekar
d60d118df8 fix: remove timeline-new-email class 2020-03-17 11:41:00 +05:30
Victor Munene
06f3b7a35f return empty string if title arg is falsey 2020-03-17 08:09:50 +03:00
mergify[bot]
85aaaf2f06
Merge pull request #9707 from Anurag810/document_follow_fixes
fix: remove unnecessary network call for document follow
2020-03-16 14:51:14 +00:00
Dinuka Salwathura
e3dfb148e3
Change mysql host from localhost to 127.0.0.1
Having localhost makes mandatory to connect via mysqld.sock
changing host to 127.0.0.1 makes it to connect via tcp
2020-03-16 19:32:24 +05:30
Anurag Mishra
ebf2597bb5 fix: remove unnessary network call for document follow 2020-03-16 18:49:36 +05:30
mergify[bot]
f8d2625bc5
Merge pull request #9706 from netchampfaris/html-frontmatter
fix: Allow frontmatter blocks in html
2020-03-16 12:25:30 +00:00
Alirio Castro
23d3f0e63b
feat: Indicate orientation for PDF file (#9660)
Same as other attributes, we could indicate default orientation by indicating in the .print-format css class without hardcoding, which is useful for cloud users.

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-03-16 17:31:28 +05:30
Faris Ansari
d85cc180b4 fix: Allow frontmatter blocks in html 2020-03-16 17:30:03 +05:30
mergify[bot]
125abcda4e
Merge pull request #9704 from scmmishra/styling-summary
fix: use agent style for details & summary
2020-03-16 11:59:45 +00:00
mergify[bot]
a26f76fa22
Merge pull request #9703 from prssanna/minimizable-workflow-dialog
fix: make bulk workflow status dialog minimizable
2020-03-16 11:43:16 +00:00
Suraj Shetty
16c0406bdc
Merge branch 'develop' into minimizable-workflow-dialog 2020-03-16 16:46:35 +05:30
Shivam Mishra
63856f6a70 refactor: use agent style for details & summary 2020-03-16 16:13:01 +05:30
prssanna
c0f87b8ab5 fix: make bulk workflow status dialog minimizable 2020-03-16 16:00:38 +05:30
mergify[bot]
69d932f59a
Merge pull request #9658 from prssanna/customize-form-fix
feat: change fieldtype in db with customize form
2020-03-16 08:13:51 +00:00
Suraj Shetty
1dd6ccb8ce
Merge branch 'develop' into customize-form-fix 2020-03-16 09:07:08 +05:30
Suraj Shetty
bb9401d249
Merge pull request #9512 from scmmishra/setup-wizard-dev
refactor: improvements for setup_wizard
2020-03-16 08:51:40 +05:30
Suraj Shetty
98f5366fac
fix: Remove duplicate on_trash key 2020-03-14 16:16:16 +05:30
dependabot-preview[bot]
b3b94197a1
chore(deps): [security] bump acorn from 5.7.3 to 5.7.4 (#9695)
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. **This update includes a security fix.**
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-14 12:43:49 +05:30
mergify[bot]
ef8a95ec55
Merge pull request #9674 from nextchamp-saqib/no_currency_field_found
fix: currency field not found in print formats
2020-03-13 15:05:57 +00:00
Prssanna Desai
35ae0244ae
fix: translate dialog title
Co-Authored-By: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-03-13 17:18:02 +05:30
Suraj Shetty
be04015ddd
Merge branch 'develop' into no_currency_field_found 2020-03-13 16:08:14 +05:30
prssanna
83677236f5 fix: set is_minimizable as true for error dialog 2020-03-13 15:23:17 +05:30
prssanna
a8861c8ed4 fix: code formatting 2020-03-13 15:17:11 +05:30
prssanna
7bb014ee9a fix: update db type map 2020-03-13 15:17:11 +05:30
prssanna
c5c9ae46e6 feat: change fieldtype in db with customize form 2020-03-13 15:17:11 +05:30
Aditya Hase
839114b7ff
fix: Add db-password option to new-site (#9685) 2020-03-13 15:10:59 +05:30
gavin
6a25a33d49
fix: delete as much indexes from each table (#9684)
in cases of customization, errors such as pymysql.err.InternalError: (1091, "Can't DROP 'unique_item'; check that column/key exists") may rise up
2020-03-13 15:02:47 +05:30
Andy Zhu
fcdb923d2e
fix: Missing bucket name check (#9546)
* fix: missing bucket name check when user make changes on s3 backup setting

Problem: If the user changed the backup limit, then press save. The validate function will give an error message that the bucket name already exists. It would be inconvenient for the user to use a different bucket name to save any changes.

So I implemented a flag ''bucket_name_exist'' to indicate if the bucket name exists, if not, then go to the flow of trying to create a bucket.

* fix: extra line removed

* fix: Use head_bucket Boto3 API 

1. Head_bucket will return 200 Ok if the bucket exists and you have permission to access it.
2. Error code 403 Forbidden, Error code 404 Not Found.
3. Use bucket_name_exist to check if need to create bucket.

Thanks @Mangesh-Khairnar suggestions.
Reference: 
1. https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.head_bucket
2. https://boto3.amazonaws.com/v1/documentation/api/latest/guide/migrations3.html#accessing-a-bucket

Further improvements:
1. Use 'GET' Requestion to check if the Access Key ID and Secret Access Key is valid (Because AWS tier has 20,000 GET requests while only 2,000 LIST requests)
2. Edge case on Error prompts when head_bucket returns an error code other than '403' or '404'.

* fix: add an extra line to align with original code style

* Update frappe/integrations/doctype/s3_backup_settings/s3_backup_settings.py

Co-Authored-By: Chinmay Pai <chinmaydpai@gmail.com>

* fix: remove the flag and redundant exception

When we got a 404 error, we can just create the bucket as 1. The bucket name does not exist in the current bucket. 2. we have permission to access the bucket.

* Update frappe/integrations/doctype/s3_backup_settings/s3_backup_settings.py

Co-Authored-By: Himanshu <himanshuwarekar@yahoo.com>

* Update frappe/integrations/doctype/s3_backup_settings/s3_backup_settings.py

Co-Authored-By: Chinmay Pai <chinmaydpai@gmail.com>

* fix: missing handling the error code '400' - 'Bad Request'

* fix: applied with DeepSource analysis

1. Lines too long
2. Doc Lines too long
3. Expected 2 blank lines between class and method
4. Unused variable removed

Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
Co-authored-by: Himanshu <himanshuwarekar@yahoo.com>
2020-03-13 13:06:36 +05:30
Shivam Mishra
1e1cc1b6c0
fix(dashboard chart): Hide filters if hide_actions is set (#9679)
* refactor: remove print statement

* fix: hide filters if hide_actions is set

* refactor (cyoress): wait after clearing field

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-03-13 11:57:34 +05:30
mergify[bot]
280cdd5ade
Merge pull request #9659 from prssanna/minimizable-dialog
feat: add flag is_minimizable to msgprint and throw
2020-03-12 17:40:31 +00:00
Suraj Shetty
6b2dd7ca00
Merge branch 'develop' into setup-wizard-dev 2020-03-12 20:11:14 +05:30
Suraj Shetty
b937311ab3
chore(mergify): configuration update (#9682) 2020-03-12 20:07:27 +05:30
Suraj Shetty
36fcce76c1
Merge branch 'develop' into minimizable-dialog 2020-03-12 19:21:27 +05:30
Nabin Hait
1d6c3a9acd
fix: Run dashboard patch if table already exists (#9678) 2020-03-12 18:58:47 +05:30
Suraj Shetty
52eb708cc5
style: Remove extra space 2020-03-12 18:42:05 +05:30
Suraj Shetty
aa854e9a54
Merge branch 'develop' into minimizable-dialog 2020-03-12 18:40:54 +05:30
Suraj Shetty
2233235ec2
fix: duplicate entry error while renaming item (#9651)
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
2020-03-12 18:38:45 +05:30
Suraj Shetty
0088f27f71
Merge branch 'develop' into setup-wizard-dev 2020-03-12 18:29:31 +05:30
Suraj Shetty
1c5ee05300
Revert __init__.py 2020-03-12 18:27:29 +05:30
Shivam Mishra
fbcd034710
Merge pull request #9677 from scmmishra/desk-improvements
feat: desk improvements
2020-03-12 17:55:48 +05:30