Commit graph

40362 commits

Author SHA1 Message Date
Sagar Vora
f2e1dbe7eb fix: restore _dict, used in Jinja code 2022-12-07 13:13:27 +05:30
Raffael Meyer
6e8820e627
chore: translate doctype in link error (#19164) 2022-12-07 00:31:39 +05:30
Raffael Meyer
7484ebacb5
ci(deps): install mariadb 10.6 (#19166) 2022-12-07 00:23:35 +05:30
Ankush Menat
d389fffbb7
feat: inter-process file locks (#19133) 2022-12-06 16:31:51 +05:30
Ankush Menat
bbcc365a24
fix: use monotonic clock for timing code (#19138)
* fix: use monotonic time for timing code

`time.time()` depends on system clock which can drift away and get corrected
over time. If you're unlucky it will get corrected in your timing code
and give absurd results.

* test: dont check for status

can refresh and give wrong output

[skip ci]
2022-12-06 15:42:37 +05:30
Sagar Vora
23ab8bf3b2
Merge pull request #19128 from resilient-tech/fix-read-receipt-in-email
fix: type conversion for read receipt in communication email
2022-12-06 08:44:12 +00:00
Daizy Modi
d76b5fb719 fix: type conversion for read receipt in communication email 2022-12-06 08:25:11 +00:00
dependabot[bot]
9e91f209b6
build(deps): bump engine.io from 6.2.0 to 6.2.1 (#19127)
Bumps [engine.io](https://github.com/socketio/engine.io) from 6.2.0 to 6.2.1.
- [Release notes](https://github.com/socketio/engine.io/releases)
- [Changelog](https://github.com/socketio/engine.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io/compare/6.2.0...6.2.1)

---
updated-dependencies:
- dependency-name: engine.io
  dependency-type: indirect
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-06 12:14:26 +05:30
Shariq Ansari
7431a0d5e6
Merge pull request #19124 from shariquerik/ldap-multiple-email
fix: LDAP - check each email in list before creating user
2022-12-06 11:34:55 +05:30
dependabot[bot]
36e857aa00
build(deps): bump dessant/lock-threads from 3 to 4 (#19125)
Bumps [dessant/lock-threads](https://github.com/dessant/lock-threads) from 3 to 4.
- [Release notes](https://github.com/dessant/lock-threads/releases)
- [Changelog](https://github.com/dessant/lock-threads/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dessant/lock-threads/compare/v3...v4)

---
updated-dependencies:
- dependency-name: dessant/lock-threads
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-06 10:04:10 +05:30
Shariq Ansari
2201601170
Merge branch 'develop' into ldap-multiple-email 2022-12-05 22:28:51 +05:30
Shariq Ansari
86dc33c1f1 fix: LDAP - check each email in list before creating user 2022-12-05 22:14:51 +05:30
Ankush Menat
4ba72d0f29
fix: give more weight to sequential matches (#19121) 2022-12-05 18:00:15 +05:30
Aradhya Tripathi
68e9fa639e
docs: Added query_builder docs (#19086)
* docs: Added query_builder docs

* docs: Added future works
2022-12-05 16:48:12 +05:30
Sagar Vora
9a3819e608
fix: disable signups by default (#19114)
* fix: disable signups by default

* fix: set `disable_signup` to `0` for tests
2022-12-05 16:40:51 +05:30
Sagar Vora
4ea39d1a68
chore!: drop device support from session (#18729)
* chore!: drop device support from session

* chore: remove `session_expiry_mobile` field

* fix: remove extra `%s`
2022-12-05 16:37:32 +05:30
Ankush Menat
186b88a8cb
build: Bump minimum required MariaDB version (#19116) 2022-12-05 16:24:35 +05:30
Ankush Menat
56b6e3eabd fix: deduplicate currencies manually
on mariadb 10.3 `insert ignore` doesn't work
2022-12-05 16:00:44 +05:30
ruthra kumar
90a4c93bf9
fix: attribute error on export of reports with additional columns (#19105) 2022-12-05 15:03:10 +05:30
Ankush Menat
39faf34ba4
fix: ignore empty/None scripts (#19111) 2022-12-05 13:32:45 +05:30
Ankush Menat
34f3f1469f
Merge pull request #19088 from phot0n/correct-doctype-perm-webform
fix(security): validate web form permissions correctly
2022-12-05 12:46:22 +05:30
Ritwik Puri
6444f66b36
Merge pull request #19093 from resilient-tech/get_permlevel_access
chore(Document): simplify `get_permlevel_access`
2022-12-05 12:41:32 +05:30
Raffael Meyer
f6f2c5ff8a
fix(UX): freeze on delete (#19094) 2022-12-05 12:36:33 +05:30
Maharshi Patel
03afa99e6c
feat(UI): Sticky Tabs Header (#18906)
Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
Co-authored-by: Shariq Ansari <sharique.rik@gmail.com>
2022-12-05 12:19:58 +05:30
phot0n
d7f4540132 chore: consider docname via data 2022-12-05 12:19:29 +05:30
phot0n
8e0c4ce702 fix: use webform doctype rather than allowing user to pass any doctype 2022-12-05 11:56:12 +05:30
Sagar Vora
41c8a808d0
Merge pull request #19099 from resilient-tech/check-doctype
fix: ensure correct parenttype when retrieving roles
2022-12-04 19:29:09 +00:00
Sagar Vora
389e675764 fix: ensure correct parenttype when retrieving roles 2022-12-05 00:44:09 +05:30
mergify[bot]
5383f5b8b6
Merge pull request #19095 from barredterra/google-drive
fix: only System Manager should access Google Drive
2022-12-04 18:30:41 +00:00
barredterra
6e5ab01f21 fix: only System Manager can access Google Drive 2022-12-04 15:57:01 +01:00
Sagar Vora
4acddacf2d chore(Document): simplify get_permlevel_access 2022-12-04 02:44:18 +05:30
Raffael Meyer
c7ef28fa0c
fix: don't validate to & from dates if any one is missing in validate_from_to_dates (#19079) 2022-12-03 18:32:59 +05:30
Ankush Menat
9c104a8e5e fix: Warn about incompatible mariadb versions 2022-12-03 12:20:35 +05:30
Ankush Menat
11cdd21b88 fix: drop mariadb 10.2 checks 2022-12-03 12:20:35 +05:30
Sagar Sharma
cc9499c613
chore: typo in validate_loop msg (#19091)
* fix: typo in `validate_loop` msg

* chore: update translations

[skip ci]

Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-12-03 12:08:41 +05:30
Ankush Menat
7d52df875f
perf(install): bulk insert country and currencies (#19084) 2022-12-03 12:03:05 +05:30
Raffael Meyer
04d1292cf1
fix: consistent translation in meta.get_label (#19080) 2022-12-02 23:38:15 +05:30
phot0n
856d7a9f65 fix: use permtype from passed arguments in has_web_form_permission when applying document permissions 2022-12-02 20:52:00 +05:30
Ankush Menat
28360e3983
perf: dont clear all cache during default install (#19078)
When installing frappe all system settings are for some reason moved to
tabDefaultValue, each default insert clears cache so meta is fetched
again on each insert.

Overall this results ins ~13% of install time.
2022-12-02 12:48:19 +05:30
Ankush Menat
c1f3cb101c
test: custom grid buttons (#19073)
[skip ci]
2022-12-01 13:16:00 +05:30
Matthew Enderle
3885833764
fix: socketio spawn error (#19070)
* fix: socketio spawn error

Restarting supervisorctl fails when attempting to spawn the instance due to syntax.

* refactor: accurate expansion of optional chaining

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2022-12-01 10:41:42 +05:30
Shariq Ansari
ef5c618954
Merge pull request #19063 from shariquerik/do-not-escape-undefined 2022-11-30 20:34:34 +05:30
Sagar Vora
2e2f8e8175
fix: only check for special characters in fieldname (#19061)
* fix: only check for special characters in fieldname

* chore: revert #18965
2022-11-30 16:03:02 +05:30
Shariq Ansari
903ade145a fix: do not escape undefined txt 2022-11-30 15:48:03 +05:30
Nikhil
53957447b3
fix: check for bad zip files during unzipping in file doctype (#19058)
* check for bad zip files
2022-11-30 14:34:09 +05:30
Ankush Menat
83f591e69b
fix: empty search shows None (#19055)
[skip ci]
2022-11-30 12:52:59 +05:30
Shariq Ansari
3fd5b3703b
Merge pull request #19049 from frappe/mergify/bp/develop/pr-18858 2022-11-29 18:20:48 +05:30
Shariq Ansari
6babd4ec04
Merge pull request #18999 from CleoMenezesJr/develop 2022-11-29 18:00:04 +05:30
Anh Lê
7a68797d96 fix: Optimize check field type is tab break if the doctype has a workflow (#18858)
Co-authored-by: Anh Le <anhle>
Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
(cherry picked from commit d9ce6c12bf59ca9d96e385a09ef39ab417c24e2e)
2022-11-29 12:29:34 +00:00
Shariq Ansari
cc4e2868fc
fix: keep actions on right
Make action button's font text smaller with lesser padding
2022-11-29 17:20:13 +05:30