Gavin D'souza
b8c51b13e2
fix: Revert to using cast_fieldtype in BaseDocument.cast
...
* reference: revert Breaking Change -
https://github.com/frappe/frappe/pull/13989#discussion_r695624003
* Show deprecation warning unless `show_warning` is unset
2021-08-30 13:45:30 +05:30
Gavin D'souza
ed6533f737
fix: Use cast in favour of cast_fieldtype
...
Use newly introduced casting util for Python-Frappe types mapping
2021-08-20 12:37:15 +05:30
Gavin D'souza
a2cb9be7a4
feat: frappe.utils.data.cast
...
Cast the value to the Python native object of the Frappe fieldtype provided. If value is None, the first/lowest value of the `fieldtype` will be returned.
Mapping of Python types => Frappe types:
* float => ("Currency", "Float", "Percent")
* int => ("Int", "Check")
* datetime.datetime => ("Datetime",)
* datetime.date => ("Date",)
* datetime.time => ("Time",)
Deprecate frappe.utils.data.cast_fieldtype in favour of new util cast
which handles types "better"
2021-08-20 12:35:24 +05:30
Gavin D'souza
cb034e4c52
fix: Consistent return types in cast_fieldtype
...
Note: BREAKING CHANGE
2021-08-20 12:08:39 +05:30
Gavin D'souza
623998c787
fix(db): Cast single dt field only if value is truthy
2021-08-20 11:05:03 +05:30
mergify[bot]
4cbf2c40e6
Merge pull request #13958 from ankush/pw_reset
...
fix: broken template in password reset
2021-08-19 12:46:29 +00:00
mergify[bot]
53e2c21a6a
Merge pull request #13915 from gavindsouza/newsletter-refactor
...
refactor(minor): Newsletter
2021-08-19 12:35:52 +00:00
mergify[bot]
eb218a06d1
Merge pull request #13959 from mituldavid/testing-library
...
test: Add support for Testing-Library queries within Cypress tests
2021-08-19 04:51:56 +00:00
MitulDavid
29dfffb9c5
refactor: Replace .format() with f-strings
2021-08-18 19:32:16 +05:30
MitulDavid
93198b7123
test: Replace existing queries with Testing-Library queries
2021-08-18 19:11:01 +05:30
Shariq Ansari
3baa33d5da
fix: Use IP Address instead of Email field ( #13553 )
2021-08-18 13:21:10 +05:30
Rushabh Mehta
cf67f9d283
fix(minor): remove url from metatags
2021-08-18 12:01:44 +05:30
Leela vadlamudi
d3bc38f5aa
Merge pull request #13961 from leela/fix-amend-patch-query
...
fix: rename cancelled docs patch query
2021-08-17 23:49:31 +05:30
leela
05166f919c
fix: rename cancelled docs patch query
...
use backquotes in queries where column names are dynamic(To avoid query
issues incase reserved keywords used as a table columns.)
2021-08-17 22:48:52 +05:30
MitulDavid
b417218f1d
test: Add support for Testing-Library queries within Cypress tests
2021-08-17 19:06:01 +05:30
Ankush Menat
d41121643e
fix: broken template in password reset
2021-08-17 15:59:12 +05:30
Suraj Shetty
54a331a05e
Merge pull request #13952 from shariquerik/workspace2-fixes
2021-08-17 15:04:28 +05:30
shariquerik
e401366cf9
test: Renamed changed values
2021-08-17 12:12:46 +05:30
shariquerik
013f1f471d
fix: Switch Public-Private, Change Customize to Edit, Add Settings button to redirect to workspace document
2021-08-17 11:11:15 +05:30
shariquerik
0215bd06ec
fix: Make Shortcut's & Card's default size col-4
2021-08-17 11:09:22 +05:30
shariquerik
9b15009e7a
fix: Enable paragraph text styling (Bold, Italic, link)
2021-08-17 11:08:35 +05:30
gavin
fb5b474f3a
Merge pull request #13946 from scdanieli/fix-broken-link
...
fix: broken link
2021-08-17 10:37:55 +05:30
Gavin D'souza
87f05c2e6b
ci: Handle payload elements as not set/None
...
alt motive: Re-trigger GHAs that have been showing waiting for too
long ;)
2021-08-17 09:57:32 +05:30
Samuel Danieli
1e38d5a281
fix: broken link
2021-08-16 18:55:09 +02:00
rohitwaghchaure
1ae57811b4
Merge pull request #13939 from rohitwaghchaure/perf-grid-rendering-debouned-refersh
...
perf: Grid rendering
2021-08-15 11:35:01 +05:30
Rohit Waghchaure
4312d15f57
perf: Grid rendering
2021-08-14 19:35:36 +05:30
Ankush Menat
ead26527b7
ci: ignore js only changes while running unittests ( #13932 )
...
* ci: ignore js only changes while running unittests
- IF PR only changes JS files then unittests / patch tests wont run.
- Change done to save resources / concurrent builds.
* ci: ignore md files in build
2021-08-13 18:14:47 +05:30
Suraj Shetty
b75691d7db
Merge pull request #13935 from frappe/mergify/surajshetty3416/config-update
2021-08-13 18:02:36 +05:30
Suraj Shetty
ccebece486
ci(Mergify): configuration update
...
Signed-off-by: Suraj Shetty <null>
2021-08-13 17:37:20 +05:30
Gavin D'souza
6feae59b20
fix: Hanlde Newsletter.get_email_groups & tests cleanup
2021-08-13 17:23:01 +05:30
Gavin D'souza
f2641c37f2
test: Delete newsletters and email docs created in test
2021-08-13 13:04:52 +05:30
Gavin D'souza
cefa75c8dc
test: Setup email group at the start of testcase
2021-08-13 12:44:25 +05:30
mergify[bot]
bd6ed2033f
Merge pull request #13152 from shariquerik/wiki-based-desk
...
feat: Workspace 2.0
2021-08-13 06:44:32 +00:00
mergify[bot]
c6f1f91668
Merge pull request #13926 from rohitwaghchaure/fixed-grid-performance-issue
...
perf: Grid rendering
2021-08-13 06:08:13 +00:00
mergify[bot]
b6945a374a
Merge pull request #13841 from gavindsouza/execute-query
...
feat: Execute queries directly in frappe.qb
2021-08-13 06:08:07 +00:00
Rohit Waghchaure
e63222cc9a
fix: grid frozen issue
2021-08-13 11:11:15 +05:30
Suraj Shetty
66924817ca
Merge pull request #13909 from frappe/dependabot/npm_and_yarn/path-parse-1.0.7
...
chore(deps): bump path-parse from 1.0.6 to 1.0.7
2021-08-13 09:45:20 +05:30
shariquerik
bdad9e8751
test: focus and type error fix
2021-08-12 21:02:32 +05:30
shariquerik
d3e7f0ac36
test: minor fix
2021-08-12 20:30:15 +05:30
shariquerik
0ada551207
fix: Removed build.json, changed patch to v14
2021-08-12 19:52:28 +05:30
Gavin D'souza
bf14e1f2b1
test: Add test for patch_query_execute
2021-08-12 18:37:05 +05:30
Gavin D'souza
30cf8fd58d
refactor: Use run instead of frappe.db.sql
2021-08-12 18:36:43 +05:30
mergify[bot]
29b222105b
Merge pull request #13850 from kevinpthorne/fix-inner-btn-menu-item
...
fix(deskUI): menu items reappear before inner page buttons disappear
2021-08-12 12:38:58 +00:00
Gavin D'souza
189f9f81ae
fix(Newsletter): Remove "double" validations
...
Validations for checking recipients and statuses were being checked again later on, via validate_send. This gets rid of doing it twice
2021-08-12 17:47:38 +05:30
Gavin D'souza
8fc2577e9a
fix: Remove cross import statements
2021-08-12 17:44:14 +05:30
shariquerik
e4e79dd424
test: minor fix
2021-08-12 17:41:53 +05:30
Gavin D'souza
233b42b945
Merge branch 'develop' of github.com:frappe/frappe into execute-query
2021-08-12 17:35:25 +05:30
Gavin D'souza
43b9b452ff
fix: Don't clear Newsletter table at setupClass
2021-08-12 17:30:23 +05:30
mergify[bot]
3dc9dfe0c7
Merge pull request #13842 from netchampfaris/safe-render-off
...
fix: ability to disable safe_render for template pages
2021-08-12 11:54:32 +00:00
Gavin D'souza
d5739cd43b
fix: Add exceptions classes for Newsletter
2021-08-12 16:47:01 +05:30