Commit graph

42824 commits

Author SHA1 Message Date
Suraj Shetty
df4cc5cf2f
Merge pull request #21734 from barredterra/refactor-geolocation 2023-07-28 12:37:28 +05:30
Suraj Shetty
e3e50acd66
Merge pull request #21794 from barredterra/fix-email-contact 2023-07-28 12:36:52 +05:30
Shariq Ansari
e1c1e256ef
Merge pull request #21798 from pps190/frappe/fix/ambigus-table-join 2023-07-28 12:28:04 +05:30
Ankush Menat
22a3a56d44 chore: remove conflict-marker look-alike
This is annoying when trying to find git conflicts

[skip ci]
2023-07-28 11:45:56 +05:30
Ankush Menat
6e94cd2eb9
fix: Guess most likely exception source (#21827) 2023-07-27 17:30:04 +05:30
Abdo
35c929afdb
refactor(money in words): translatable currency Name (#21672) 2023-07-27 17:21:57 +05:30
Ankush Menat
c40faddac7
perf: skip reset_seen for new doc (#21832)
The query is fired but document doesn't exist yet, so it does nothing really.

[skip ci]
2023-07-27 16:07:22 +05:30
Suraj Shetty
b887fa62f4
Merge pull request #21828 from shariquerik/oauth-confirm-screen-fix 2023-07-27 15:11:25 +05:30
Shariq Ansari
2771c37716
Merge pull request #21795 from cogk/fix-form-builder-issues 2023-07-27 13:53:15 +05:30
Shariq Ansari
d7c3e48819 style: hide p if it is empty 2023-07-27 13:23:49 +05:30
Shariq Ansari
99a4116725 fix: only render message with p tag if message exist 2023-07-27 13:23:24 +05:30
Shariq Ansari
9902f36812 fix: show full name instead of first/last name 2023-07-27 13:22:38 +05:30
Ankush Menat
8930d4b5e1
perf: drop ifnull from IS SET filter (#21822)
- Kinda confuses query planner (idk why it's not smart enough to
  understand but there are probably edge cases where it can't be done)
- `null != null` and `'' != null` both yield `null` which is falsy and
  won't be shown in results.

Alternate fix to https://github.com/frappe/frappe/pull/21817
2023-07-27 10:58:20 +05:30
Sagar Vora
b4629d8c02
chore: strictly pin responses to 0.23.1 to avoid pip conflicts (#21816) 2023-07-27 10:41:20 +05:30
gavin
6cb51a536e
fix: re module cache settings - purge & cache size (#21808)
* fix: Remove re cache internals manipulation

* fix: Purge re cache after module loads

Empty cache would work better as we already got our pre-compiled
patterns at the top level of every module. This leaves the cache open
for dynamically generated patterns which are in better need of it. Over
time, workers would converge to this anyway. This change only reduces
the cache hit and eviction effort.

I'd improve this by executing `re.purge` on every module import but
complexity tradeoff lol. I'd prefer if re didn't cache patterns
generated by `re.compile` but I dont see this behaviour or any escape
hatches so this will have to do for now.
2023-07-27 10:40:50 +05:30
Smit Vora
89b9b64a55
fix: installation error, cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (#21810)
Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-07-26 15:00:04 +05:30
Ankush Menat
5f46f98699
ci: remove mysql (#21811) 2023-07-26 14:31:03 +05:30
Ankush Menat
c45fbce2fa fix: ignore no args to email read url
Some client can strip this and it will cause error.
2023-07-26 09:23:06 +05:30
Corentin Flr
c87a6e8ff0 fix(Form Builder): Handle sort_options in Select 2023-07-25 14:58:43 +02:00
Corentin Flr
766e0b056b fix(Form Builder): Fix label text font size 2023-07-25 14:58:43 +02:00
Suraj Shetty
6c509f6dd1
Merge pull request #21782 from blaggacao/bump-bleach 2023-07-25 18:21:31 +05:30
Suraj Shetty
dff950a56d fix: Remove unused resolve in code
fixes: https://github.com/frappe/frappe/actions/runs/5655856445/job/15321775151?pr=21782
2023-07-25 18:20:00 +05:30
Suraj Shetty
c0d472e95c refactor: Remove unnecessary code 2023-07-25 16:21:59 +05:30
David Arnold
7780670ae4
build(deps): update node redis client to v4 (#21797)
* build(deps): update redis client to v4 in legacy mode

* fix: node17+ - prefer ipv4

* chore: use redis client v4 api (async) and adapt error handling

* fix: timeout by exiting if not in watch mode

* fix: parse message before republishing

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-07-25 14:07:46 +05:30
Ankush Menat
f775c014e4
chore: simple codeowners
[skip ci]
2023-07-25 13:06:49 +05:30
Devin Slauenwhite
7a3e7b7eb2 Merge remote-tracking branch 'frappe/develop' into frappe/fix/ambigus-table-join 2023-07-24 14:23:28 -04:00
barredterra
a4385be70c fix: pass email as value 2023-07-24 16:02:22 +02:00
David Arnold
cf8a603dac
build(deps): update premailer 3.8.0 -> 3.10.0 (#21783) 2023-07-24 16:26:27 +05:30
Ankush Menat
4b0990c736
Merge pull request #21776 from ankush/typess
feat(DX): auto generate python type annotations
2023-07-24 15:56:17 +05:30
Ankush Menat
927cd647e4 chore: generate type annotations 2023-07-24 15:32:48 +05:30
Ankush Menat
0bc5d1dc3b feat(DX): type annotated python controllers 2023-07-24 15:32:46 +05:30
HarryPaulo
94c223be99
fix: system language to calendar (#21483)
* fix: default system language to calendar

* fix: frappe.boot.lang as language on calendar
2023-07-24 15:10:33 +05:30
Ankush Menat
1bfe585b71
fix!: Drop unused link_doctype, link_name (#21788) 2023-07-24 14:22:07 +05:30
Sagar Vora
b395a84d0b
fix!: remove version API (#21786) 2023-07-24 13:01:45 +05:30
David Arnold
a926e64ec9
fix: procure db config from single authority (#21578)
* fix: procure db config from single authority

ensures that configuration is uniformely procured from local.conf
instead of making use of hard to audit multilevel fallback logic

Implementation Note:
- `get_db(host, port, user, password)` was stripped of any optional
  argument and therefrom all errors where fixed.
- All occurances of `grep 'frappe.db.db_'` where changed to
  `frappe.conf.db_`

* fix: revert unnecessary breaking changes
2023-07-24 10:48:29 +05:30
David Arnold
8ff913b8ad
build(deps): update bleach 3.3.0 -> 6.0.0 2023-07-23 20:00:28 -05:00
Sagar Vora
838599e02b
Merge pull request #21775 from resilient-tech/standard-cron 2023-07-23 10:24:45 +00:00
Sagar Vora
78ce5020f9 chore: use standard cron expression 2023-07-23 15:52:33 +05:30
Sagar Vora
9571bc1e99
Merge pull request #21770 from resilient-tech/perf-scheduler 2023-07-23 10:08:13 +00:00
Sagar Vora
7fb000d6ba
Merge pull request #21771 from resilient-tech/remove-unused-var 2023-07-23 09:42:14 +00:00
Sagar Vora
5f0707c856 chore: remove unused variable 2023-07-23 15:10:37 +05:30
Sagar Vora
363a40bfb1 perf: get all Scheduled Job Types in one query 2023-07-23 15:02:50 +05:30
Ankush Menat
e51646faf6
Merge pull request #21762 from ankush/perf_requests
perf!: Reduce db call and reads in typical requests
2023-07-22 18:27:22 +05:30
mergify[bot]
a86125ac41
Merge pull request #21763 from resilient-tech/fix-preferred-language-setter
fix: no API call required to set cookie in browser
2023-07-22 12:47:08 +00:00
Ankush Menat
2c99583247 perf: Lazily fetch shared documents
We eagerly fetch shared documents for ANY `get_list` query, even when
user has full read acess doctype, where it's moot to consider adding
shared document as separately.

This eliminates one entire db call from get_list and in most cases
get_list will translate to single DB call, hence probably worth the
additional complexity.
2023-07-22 18:04:35 +05:30
Sagar Vora
d2becc7f1d fix: no API call required to set cookie in browser 2023-07-22 17:54:41 +05:30
Ankush Menat
eed90a871b perf!: halve search_link page size
20 results are rarely scrolled by user.

Most users end up typing more characters to narrow down results. This
way on large table we end up reading significantly fewer rows.

The way relational DBs work is they keep filtering and reading rows one
by one until limit is hit, so smaller the limit the better.
2023-07-22 15:09:14 +05:30
Ankush Menat
f989b83d33 perf: drop total_comments
Can be done client side, also not used anywhere.
2023-07-22 15:09:11 +05:30
Shariq Ansari
319da422f9
Merge pull request #21761 from shariquerik/separate-fetch-from-control 2023-07-22 14:20:33 +05:30
Ankush Menat
740fe1fc91 perf: reduce 1 query in getdoc 2023-07-22 14:16:08 +05:30