Aradhya
c97562b736
feat: Added Timestamp support
2022-07-08 21:05:42 +05:30
Sagar Vora
fc99c22ea2
fix: ensure that frappe.db.get_defaults works for all parents ( #17296 )
...
fix: ensure that frappe.db.get_defaults` for all parents, as designed
2022-07-08 18:08:36 +05:30
gavin
786f49d682
Merge branch 'develop' into ldap-user_type
2022-07-08 13:24:51 +05:30
Gavin D'souza
ee97038c71
chore: Add typing + reduce import paths
2022-07-08 13:24:26 +05:30
Gavin D'souza
b20f77b9b9
fix(ldap): Set default user type to System User
2022-07-08 12:31:58 +05:30
Suraj Shetty
0a8a91e30b
Merge pull request #17447 from ankush/test/private_files
2022-07-08 11:28:20 +05:30
Ankush Menat
d04df394a5
test: check for uploaded file to be private
2022-07-08 11:06:49 +05:30
Sagar Vora
6597dedaed
chore!: remove unused APIs from frappe.client ( #17446 )
...
chore: remove unused APIs from `frappe.client`
2022-07-08 10:49:39 +05:30
Suraj Shetty
658f5b6aa7
Merge pull request #17437 from surajshetty3416/files-private-by-default
...
fix: Set files private by default
2022-07-07 18:05:14 +05:30
Ankush Menat
111060224b
fix: naming series tool doesn't load if missing numbers
2022-07-07 17:38:52 +05:30
Gavin D'souza
e7023fa74d
feat(ldap): Allow setting "User Type" for new users
...
Prior to this, every user found in LDAP would mean a System User is
created - now pick the type and role you want to give newly created
users. For the given user types, the role may be picked from:
System User | ldap_settings.default_user_role (Fetched from LDAP settings)
Website User | N/A
{{ Custom Type }} | user_type.role (Fetched from User Type record)
2022-07-07 17:13:59 +05:30
gavin
43f378d848
Merge branch 'develop' into mariadb-client-refactor
2022-07-07 16:00:38 +05:30
Gavin D'souza
8ccc0d039b
fix: Database._transform_query
...
* Don't try to convert None to sequence
* Skip transforming values that mariadb~=1.1 can handle - only worry
about sequences for now
2022-07-07 15:59:48 +05:30
Suraj Shetty
5d01fffac5
fix: Set files private by default
2022-07-07 15:15:41 +05:30
Shariq Ansari
15018b96fa
test: fixed flaky workspace blocks UI test ( #17436 )
2022-07-07 14:53:25 +05:30
Ankush Menat
bea2df6dcc
perf: drop country_info from boot ( #17431 )
...
* fix: unknown function call
* perf: drop country_info from boot
This is ~50kb of data that is sent with every boot.
2022-07-07 14:41:13 +05:30
Ankush Menat
b5128a35fd
refactor: simplify fetching of readable records ( #17417 )
...
- remove encoding, use cstr directly
- remove falsy values by default None, empty string.
2022-07-07 14:40:59 +05:30
Shariq Ansari
44117f6702
fix: switch tab if mandatory field is in different tab ( #17435 )
2022-07-07 14:20:54 +05:30
Bhavesh Maheshwari
f972bb320b
fix: phone field type hidden property break form load ( #17426 )
...
Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
2022-07-07 12:19:23 +05:30
Gavin D'souza
576fa32af4
fix(mariadb): SequenceGeneratorLimitExceeded is an OperationalError now
...
:D
2022-07-07 12:09:36 +05:30
mergify[bot]
010a436569
Merge pull request #17407 from ruthra-kumar/error_on_export_of_composite_cell_value
...
fix: valueerror on export with composite cell valu
2022-07-07 05:49:18 +00:00
Ankush Menat
1f9a6b010a
perf: add __slots__ to most used classes ( #17421 )
...
Added slots for these classes:
- Session - Created on EACH request
- LoginManager - Created on each request
- Monitor - Created on each request if monitor is enabled (usually in
prod setup)
2022-07-07 11:15:50 +05:30
Ritwik Puri
b115aef414
fix: sanitize all line boundaries for email headers ( #17408 )
...
* test: add test case for subject with LF, CR and line separator
2022-07-07 10:43:00 +05:30
Suraj Shetty
281160ba2f
Merge pull request #17429 from frappe/dependabot/npm_and_yarn/moment-2.29.4
...
build(deps): bump moment from 2.29.2 to 2.29.4
2022-07-07 09:44:47 +05:30
dependabot[bot]
39ded52028
build(deps): bump moment from 2.29.2 to 2.29.4
...
Bumps [moment](https://github.com/moment/moment ) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases )
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/moment/moment/compare/2.29.2...2.29.4 )
---
updated-dependencies:
- dependency-name: moment
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 04:10:25 +00:00
Suraj Shetty
5efbedf06d
Merge pull request #17419 from surajshetty3416/replace-incompatible-libraries
2022-07-07 09:39:56 +05:30
Suraj Shetty
ccebf352c6
Merge branch 'develop' into replace-incompatible-libraries
2022-07-07 09:27:35 +05:30
Suraj Shetty
52c45bf464
fix: Multi argument dispatch
2022-07-07 09:25:30 +05:30
Gavin D'souza
41b93392b1
fix: Database._transform_result
...
Transform data not already casted by mariadb client
2022-07-06 15:58:45 +05:30
Suraj Shetty
295926f6b4
fix: Font awesome path
2022-07-06 13:01:38 +05:30
ruthra kumar
abd8f2c2c4
test: excel export with composite cell value
2022-07-06 12:52:47 +05:30
ruthra kumar
ffd75e8a16
fix: valueerror on export with composite cell valu
2022-07-06 12:35:20 +05:30
Gavin D'souza
6a76f8ad5f
fix(pg): Transform Falsy values as None
...
ref: https://github.com/frappe/frappe/runs/7208763442
2022-07-06 11:47:43 +05:30
Gavin D'souza
1faa2fd1e2
fix: Format string instead of % to avoid TypeError
2022-07-06 10:52:48 +05:30
Suraj Shetty
3e724cd2f2
fix: Use "html.parser" to avoid additional parser dependency
...
- result from html.parser is fine for further processing
2022-07-06 08:31:18 +05:30
Suraj Shetty
fd7e607ad1
refactor: Use minified font-awesome file and add FA license
2022-07-06 08:31:01 +05:30
Suraj Shetty
d4166dbe20
refactor: Replace html2text with markdownify
2022-07-06 08:23:14 +05:30
Ankush Menat
aed9d22609
fix: incorrect default fraction for USD ( #17415 )
...
fix: correct fraction for El Salvador
2022-07-05 19:51:58 +05:30
Suraj Shetty
4b6ab45c57
refactor: Replace fluxify with vuex
...
Reason:
fluxify has GPL2 licence which is incompatible with MIT hence using vuex which is a similar library and has MIT license.
2022-07-05 19:45:17 +05:30
Ankush Menat
18af7da807
fix: missing add/remove field button on listview settings
...
closes https://github.com/frappe/frappe/issues/16783
2022-07-05 18:38:32 +05:30
Gavin D'souza
4dc2ecefba
fix: Use mariadb's constants instead of pymysql
2022-07-05 17:47:54 +05:30
Gavin D'souza
dbb37acedf
fix: Transform queries with all types of values
2022-07-05 17:47:14 +05:30
Ankush Menat
5d2aedc698
fix(postgres): end transaction before DDL
...
closes https://github.com/frappe/frappe/issues/17210
2022-07-05 17:43:02 +05:30
Ankush Menat
93c2cb757f
Merge pull request #17414 from ankush/url_enhancements
...
fix: misc url/routing fixes
2022-07-05 17:07:07 +05:30
Ankush Menat
70fbab828c
fix: do not update URL on saved reports
...
"Saved reports" imply that they have already stored filters, columns
etc. Applying URL from filters doesn't make sense here.
2022-07-05 16:45:51 +05:30
Ankush Menat
39c5d0d454
fix: only update URL if active list is still same
...
If you rapidly move from a list view while it was being refreshed then
changed URL is applied on a page that MIGHT not be the list/report view.
This check ensures that same page is present before updating URL.
2022-07-05 16:35:49 +05:30
Gavin D'souza
1723a6dc9d
ci: Add mariadb system dependency
2022-07-05 16:16:46 +05:30
Gavin D'souza
71b5c77e6e
Merge branch 'develop' of github.com:frappe/frappe into mariadb-client-refactor
2022-07-05 14:55:02 +05:30
Ankush Menat
261fbfcd11
Revert "fix(doc)!: Always cast datetime, date and time fields"
...
Revert "fix(doc)!: Always cast datetime, date and time fields (#15891 )"
This reverts commit d7789ab6ff .
2022-07-05 13:43:32 +05:30
Himanshu
d7789ab6ff
fix(doc)!: Always cast datetime, date and time fields ( #15891 )
...
### BREAKING CHANGE
#### Datetime, Date and Time fields will always be cast to respective objects in `setattr`, this will ensure uniformity while accessing the values, no more `getdate`, `get_datetime`, `to_timedelta` wrapper.
- While importing data, the framework does check for `set_only_once`.
- In normal case scenarios, this will work flawlessly since most date fields might not be set_only_once.
- But in Subscription, the date field is set to `set_only_once` and in `after_insert`, `document.save` is called, and while doing so, `set_only_once` is checked [here](1944a547f9/frappe/model/document.py (L566) ).
-This works fine if the data imported is in the correct format.
- If the date's data is not in the correct format, the framework throws an error.
- for eg `06-02-2022 00:00:00 != 06-02-2022`
- fixes [Issue/#15370](https://github.com/frappe/frappe/issues/15370 )
> no-docs
2022-07-05 07:07:16 +00:00