Commit graph

42795 commits

Author SHA1 Message Date
marination
fa241580d9 feat: Sidebar Attachments accessibility
- Issue: With a large volume of attachments, the "Attach File" button is pushed to the bottom
- "Attach File" stays at the top of the pile
- Small explore files button added so that users can use the File View to navigate/filter through files
- Expanded Explore Files button when attach file action is hidden
- Added `file_type` to Files, this is useful for filtering and visibility
- Added "Type" to File List View
- Patch to set File Type  in all files
2023-07-26 20:12:21 +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
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
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
Shariq Ansari
95167a19df fix: remove store from each control 2023-07-22 13:07:50 +05:30
Shariq Ansari
c58f4e152c fix: separate fetch from field code from text control 2023-07-22 12:53:45 +05:30
Ankush Menat
9608c32db7
perf: lazy load dashboard links (#21752) 2023-07-21 13:10:30 +05:30
Faris Ansari
ebacca3863
fix: better job naming for enqueue_doc (#21755)
DocType.method instead of frappe.utils.background_jobs.run_doc_method
2023-07-21 11:45:06 +05:30
Ankush Menat
fb2ab0b5be
Merge pull request #21737 from ankush/perf/workflow_transitions
perf: workflow transitions and bulk workflow
2023-07-20 17:30:40 +05:30
Gughan Ravikumar
b2d32a2d63
Don't allow export of Virtual DocFields (#21749) 2023-07-20 17:25:12 +05:30
Ankush Menat
c90374c286 perf: Lazily compute common workflow transitions 2023-07-20 16:45:23 +05:30
Ankush Menat
e2bd9d5269 fix(rq_worker): show current job iff for same site 2023-07-20 14:05:24 +05:30
Ankush Menat
96e6291692
fix: don't allow setting 0 as max backups (#21747)
This causes new backups to get deleted immediately.

If you want only 0 backups, then don't take backups.
2023-07-20 13:52:54 +05:30
Shariq Ansari
a34d87d440
Merge pull request #21706 from shariquerik/oauth-confirm-screen 2023-07-20 12:22:07 +05:30
Ankush Menat
c2a5adadbe
fix: actually debounce list view updates (#21738)
Immediately debouncing and executing creates a new function everytime and doesn't actually "debounce" it just "delays". 🗿

[skip ci]
2023-07-19 20:42:43 +05:30
Ankush Menat
948b24ee04 fix: duplicate on_row_checked call 2023-07-19 19:38:07 +05:30
Ankush Menat
06a905f600 fix: disable list view updates during bulk approval
Also defer document refreshes by up to 5 seconds.

Rarely anyone needs truly realtime list view updates. It's better batch
them over at least 5 or so seconds if there's a high volume of changes.
2023-07-19 19:38:05 +05:30
Ankush Menat
453892cdef
fix!: Dont show bold fields in quick entry. (#21733)
IDK if "BOLD" implies it should be shown in quick entry.
Frequent misunderstanding: https://github.com/frappe/frappe/issues/21726
2023-07-19 17:27:26 +05:30
Ankush Menat
892c5e30a2 refactor: Simpler workflow caching
Entire document is cached, so no need to create another layer of cache.
2023-07-19 16:45:44 +05:30
Ankush Menat
d68e46d2cc fix: disable workflow emails by default
make it opt-in instead.
2023-07-19 16:45:44 +05:30
Ankush Menat
42aff950ce
feat(DX): normalize queries in recorder (#21735)
Attempt to normalize query by removing "variables"
This gives a different view of similar duplicate queries.

These two are distinct queries:
```sql
select * from user where name = 'x'
select * from user where name = 'z'
```

But their "normalized" form would be same:
```sql
select * from user where name = ?
```

This helps highlight queries ran in loop which might not register as
duplicate but are possibly "duplicate".
2023-07-19 16:45:30 +05:30
Shariq Ansari
ce79dd0b89 fix: increase form builder height 2023-07-19 12:44:40 +05:30