Commit graph

1601 commits

Author SHA1 Message Date
Suraj Shetty
dee4a7336c fix(translations): Incorrect syntax 2020-01-29 15:22:35 +05:30
Rohan
b427c934b0 fix: py3 compatibility for error snapshot creation (develop) (#9336)
* fix: py3 compatibility for error snapshot creation

* fix: remove invalid checks

* Revert "fix: remove invalid checks"

This reverts commit f636c122146e38a5e0cd964686a6c7187ccb53b4.

* fix: use six to maintain py2 and py3 compatibility
2020-01-27 21:32:23 +05:30
vishal
b2a44e922e fix: added auto_cancel_exempted_doctypes in boilerplate 2020-01-13 13:31:00 +05:30
vishal
f741d46fdb feat: cancel multiple documents in a single transaction
- show all linked doc in a dialog box on cancel event
- following changes only fetch cancelable docs
- recursively build a list of linked submitted docs
- cancel all linked documents before cancelling current document
- add progress bar and group documents by doctype
- added exempted doctype list in hooks
2020-01-13 13:31:00 +05:30
mergify[bot]
710ac6b194
Merge pull request #9186 from benknowles/patch-3
fix: global search index breaking on long titles
2020-01-11 04:35:54 +00:00
Ben Knowles
ec53a57f4b fix: skip single doctype when rebuilding search index (#9187) 2020-01-10 00:34:03 +05:30
Suraj Shetty
18d8e65cca
fix: Make background jobs logging quieter if quite flag is pass… (#9200) 2020-01-04 19:12:59 +05:30
Ben Knowles
ecfc0714bc
fix: global search index breaking on long titles
If you created a doc with a title longer than 140 characters, it's supposed to be truncated to 140.

However, the global search index would break for that doctype due to an error in the query.

The truncate was happening AFTER it was escaped, causing it to lose the closing quote mark which caused a SQL error and broke the index.
2020-01-02 14:33:57 -06:00
Suraj Shetty
f343d15995 fix: Remove _ & _dict from frappe because add_module_properties ignores it 2020-01-01 09:34:37 +05:30
Sagar Vora
fb02908219 fix: (re)allow custom filters/methods to be used with jinja 2019-12-30 10:57:30 +05:30
Rohan Bansal
67791ff194 fix(pdf): error when trying to print PDFs 2019-12-26 14:44:19 +05:30
Andrew McLeod
07cedc581d feat: Optionally remove seconds from datetime (#8531)
* fix: Add updated datepicker; fixed seconds formatting bug.
Seconds between 0 and 9 were not zero-padded.

* feat: Add framework for time format

* feat: datetime server-side formatters.

* tests: Added server-side datetime formatter tests

* feat: Update client-side datetime formatters

* tests: Add Cypress client-side formatting tests.

* fix: JSON errors

* fix: Update to not hard-code admin password

* fix: Change to using bulk_update rather than the REST API

* tests: Use Custom doctype for testing, not Standard

* fix: Codacy style fixes

* fix: Commonify update_datetime_picker in date.js, datetime.js, time.js
Fix order of time_format in System Settings
Restore get_user_fmt in utils/datetime.js

* feat: Drastically reduce scale of Cypress testing (to make tests faster)
Full testing is possible by setting 'fast_mode' to false in the spec file.

* fix: Fix issues with datepicker/timepicker expansion

* fix: typo

* style: Various style fixes as requested by DeppSource: Python

* fix: Timepicker not hiding on 'now' button. Force hiding on click.

* style: Codacy style fixes.

* fix: Use datepicker from node_modules

* test: Refactor Datetime UI tests

- cy.get_field
- cy.set_value
- cy.insert_doc with ignore_duplicate
- Nominal datetime tests to cover most formats
- Formatting with prettier

* test: Datetime UI tests; wait for cur_frm.doc.datetime to update

* tests: Add whitespace to typed input

- Clear input only for Time field

* test: Wait timeout 200

* test: Fix form test

Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>
2019-12-25 14:54:28 +05:30
Suraj Shetty
9a2e360ea0
Merge branch 'develop' into whitelist-schemaorg-attributes 2019-12-25 12:19:52 +05:30
Rushabh Mehta
5caa88967e fix(minor): remove print from safe_exec 2019-12-24 22:21:21 +05:30
Rushabh Mehta
711e34c059 feat(safe_exec): allow frappe.db.set_value 2019-12-24 22:21:21 +05:30
Rushabh Mehta
c4c35be68d fix(safe_exec): allow sorted 2019-12-24 22:21:21 +05:30
Rushabh Mehta
c9afc965c1 fix(safe_exec): allow frappe.utils.[function] 2019-12-24 22:21:21 +05:30
Rushabh Mehta
2394586d11 feat(safe_exec): allow iterators and comprehension 2019-12-24 22:21:21 +05:30
Shivam Mishra
c9c4cbd6d1 perf: Speed improvements for moduleview get (#9079)
* feat: api to setup boot cache on login

* feat (perf): use cache data instead of query

* feat: added doc hooks for rebuilding cache

* feat: improved can import query

* fix: ignore cache rebuild for import or install

* fix: fix postgres syntax error

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2019-12-24 13:12:57 +05:30
Faris Ansari
039113b741 fix: Whitelist schema.org attributes
so that they can be used in HTML Editor in web pages
2019-12-23 17:56:01 +05:30
Suraj Shetty
310233c56a
fix: Show default currency as a fallback for currency fieldtype (#8944)
* fix: Show default currency as a fallback for currency fieldtype

* test: Add a test for currency formatting
2019-12-14 17:34:04 +05:30
Mangesh-Khairnar
a87ca0a6a9 fix(scheduler): import update site config 2019-12-10 15:19:46 +05:30
mergify[bot]
499897a3c5
Merge pull request #8969 from Alchez/dev-sign-up-role
fix: add default role on sign up via SSO
2019-12-09 11:14:32 +00:00
mergify[bot]
c63db4777a
Merge pull request #8980 from rohitwaghchaure/fixed_xml_file_not_able_to_download_develop
fix: not able to download XML file
2019-12-08 07:32:41 +00:00
Rohit Waghchaure
80f87a37fb fix: not able to download XML file 2019-12-07 12:53:04 +05:30
Rohan Bansal
8590ff0477 fix: add default role on sign up via SSO 2019-12-06 15:28:09 +05:30
Suraj Shetty
10701738d8
fix: Convert list to tuple 2019-12-06 08:29:02 +05:30
Suraj Shetty
3b61a6cb28 fix: Code cleanup
- Pass values so that db cursor can handle escaping
2019-12-06 07:46:49 +05:30
Himanshu Warekar
65402bc2fa tests: fix results being return 2019-12-03 15:27:10 +05:30
Himanshu Warekar
86e1d0367b Merge branch 'develop' of https://github.com/frappe/frappe into pref_global_search 2019-12-03 14:25:04 +05:30
Anurag Mishra
5aad587a4a
fix: Showing quotes in string (#8904) 2019-12-02 16:33:58 +05:30
Faris Ansari
488c68df96
Merge branch 'develop' into refactor-scheduler 2019-12-02 13:16:45 +05:30
Himanshu Warekar
9c57d80769 fix: rename function to set 2019-12-02 13:05:06 +05:30
Gavin D'souza
e9a6927039 chore: fixed imports after module restructure 2019-11-29 21:08:30 +05:30
Gavin D'souza
450f5c3785 chore: moved 'get_html_for_route' to frappe.utils 2019-11-29 20:42:25 +05:30
gavin
695e212575
Merge branch 'develop' into drop-selenium 2019-11-29 13:13:33 +05:30
Himanshu Warekar
633e2b546c fix: do not pop item from list 2019-11-27 12:59:50 +05:30
Himanshu Warekar
f6858c1744 Merge branch 'develop' of https://github.com/frappe/frappe into pref_global_search 2019-11-27 12:57:56 +05:30
mergify[bot]
625eedf7a2
Merge pull request #8816 from rohitwaghchaure/fixed_deadlock_while_opening_company_record_v12
fix: deadlock issue on load of company
2019-11-21 07:56:50 +00:00
mergify[bot]
dc902f8b01
Merge pull request #8824 from surajshetty3416/fix-data-import-issue
fix: Cache can_import for all users and not just System Managers
2019-11-19 06:53:54 +00:00
Suraj Shetty
642d69b592 fix: Cache can_import list for all users and not just System Managers 2019-11-15 17:08:46 +05:30
Aditya Hase
ab455b46cd
fix(pdf): Remove unnecessary argument
https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote
https://docs.python.org/2/library/urllib.html#urllib.quote
2019-11-15 15:44:39 +05:30
Rohit Waghchaure
081afb1492 fix: deadlock issue on load of company 2019-11-14 13:43:54 +05:30
gavin
1de09d4867
Merge branch 'develop' into drop-selenium 2019-11-13 15:10:30 +05:30
Gavin D'souza
ae48dfe2b4 chore: dropped legacy selenium dependant tests
selenium TestDriver deprecated
--ui-tests flag in `bench run-tests` deprecated
2019-11-13 15:01:05 +05:30
Gavin D'souza
5bd5eb8911 chore: moved set_request function to frappe.utils 2019-11-13 14:09:46 +05:30
Aditya Hase
e35af96257
fix(scheduler): Activate scheduler if found inactive 2019-11-13 12:03:28 +05:30
Rohan Bansal
47caf1e9ad fix: singular-plural format 2019-11-11 14:05:43 +05:30
Rushabh Mehta
74e2e05162 fix(test): two_factor 2019-11-07 12:14:09 +05:30
Rushabh Mehta
463d1c5ec5 fix(major): upgrade redis-py and rq and try and fix scheduler tests 2019-11-07 12:14:09 +05:30