Commit graph

23808 commits

Author SHA1 Message Date
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
24c2cec144 fix: fix calculation of week ending date in dashboard charts 2020-03-17 13:26:55 +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
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
Shivam Mishra
432d5842a4 fix (linting): added semicolon 2020-03-12 17:25:18 +05:30
Shivam Mishra
8d0f026eeb refactor: return promise explicitly 2020-03-12 17:10:27 +05:30
Shivam Mishra
5f47f2dd36 refactor: minor improvements 2020-03-12 16:41:56 +05:30
Shivam Mishra
ec36479b6a refactor: merge custom reports and doctype 2020-03-12 16:41:42 +05:30
Shivam Mishra
6461a01fc5 feat: update doctype 2020-03-12 16:33:37 +05:30
Shivam Mishra
6a953e6801 feat: allow extending pages 2020-03-12 16:27:37 +05:30
Shivam Mishra
85c436ac1b feat: updated client script 2020-03-12 16:27:25 +05:30
mergify[bot]
41f5dfc120
Merge pull request #9672 from sahil28297/fix_gsuite_develop
fix(GSuite): remove deprecated GSuite doctypes
2020-03-12 09:45:03 +00:00
Saqib Ansari
3389042656 fix: currency field not found in print formats 2020-03-12 14:33:50 +05:30