Commit graph

42726 commits

Author SHA1 Message Date
Sagar Vora
86f0c4e52c fix: store version for name 2023-07-17 16:13:44 +05:30
Sagar Vora
7d7c440a1b fix: compare with doc.amended_from while saving version for newly amended doc 2023-07-17 16:04:28 +05:30
Ankush Menat
8436f775a5
feat(DX): PEP517 compatible build in new apps (#21704)
* chore: remove setup.py requirements.txt boilerplate

* feat(DX): PEP517 compatible builds on new apps

closes https://github.com/frappe/frappe/issues/21612
2023-07-17 12:56:41 +05:30
Deepesh Garg
e38078a69f
test: Patch hooks for testing (#21702)
* test: Patch hooks for testing

* test: hooks patcher

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-07-17 12:41:27 +05:30
Raffael Meyer
b6cd6535db
feat: better Email search (#20323)
* refactor: get_contact_list

* test: get_contact_list

* feat: search all emails, not just the primary one
2023-07-17 00:40:17 +05:30
Ankush Menat
d17a336249
build(deps): bump JS dependencies (#21697)
- Bootstrap
- html5-qrcode
- editorjs
- jquery
- jsbarcode
- localforage
- sass
- rtlcss
- socketio server and client
- sortablejs
- superagent

TODO (maybe separate PRs):
- redis v4
- esbuild latest (ugh)
2023-07-16 23:01:45 +05:30
Ankush Menat
3f142c1dce fix: respect system setting for tracebacks
closes https://github.com/frappe/frappe/issues/19826
2023-07-16 19:18:16 +05:30
Ankush Menat
19f962975a fix: report name without filters 2023-07-16 17:29:28 +05:30
Ankush Menat
8f9b89557b fix: double urlencoding 2023-07-16 17:23:39 +05:30
Shariq Ansari
d423dedcd3
Merge pull request #21377 from shariquerik/move-form-builder-in-doctype-form 2023-07-16 14:38:08 +05:30
Shariq Ansari
628bdd18d2 fix: allow to add all states even if it is already added 2023-07-16 13:40:06 +05:30
Shariq Ansari
ae8af1d1d3 fix: removed unused form builder page 2023-07-16 13:30:14 +05:30
Shariq Ansari
4763dd5293 fix: show fields table for fallback also in customize form 2023-07-16 13:26:12 +05:30
Shariq Ansari
b3333b803c fix: throw error and store save if validation fails 2023-07-16 13:24:24 +05:30
Ankush Menat
8f552b8fe2
Merge pull request #21695 from ankush/perf/desk_requests
perf(desk): reduce unnecessary requests on first load
2023-07-16 13:06:16 +05:30
Shariq Ansari
686589d3ee test: fix form_builder UI test 2023-07-16 13:01:56 +05:30
Deepesh Garg
e32e74f2f1
feat: Custom naming series parser via hooks (#21690)
* feat: Custom naming series parser via hooks

* chore: use assignment operatot

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>

* test: Unit test for custom parser

* test: Unit test for custom parser

---------

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2023-07-16 12:57:40 +05:30
Ankush Menat
d9a698d4c5 fix: lower rapid-reload threshold 2023-07-16 12:43:47 +05:30
Ankush Menat
54b36e8604 perf: lazy load tag list for awesome bar
In last 7 days not a single person has used this feature on FC (based on
endpoint logs).

fix: When user knowingly triggers by typing text starting with `#` we
fire request to get tags lazily.
2023-07-16 12:43:47 +05:30
Ankush Menat
b919618032 perf: eliminate request for user permissions
This is ALWAYS required, then it can just be part of boot. Eliminates 1
unnecessary request.
2023-07-16 12:43:43 +05:30
Shariq Ansari
a7eb3a452b test: fix grid_configuration UI test 2023-07-16 12:23:28 +05:30
Shariq Ansari
3b2f2ef418 test: fix sidebar UI Test 2023-07-16 12:06:48 +05:30
Ankush Menat
ba311a3ec8
Merge pull request #21693 from ankush/perf/desk_assets
perf: accurate cache eviction for assets
2023-07-15 22:22:18 +05:30
Ankush Menat
52c2e6d47b fix: Accurately determine rapid reloads
Assuming rapid-reload ~= user frustrated with old assets. We weren't
actually checking if load was "reload". This cleared cache when tabs
were opened and effectively made cache useless.
2023-07-15 22:02:30 +05:30
Ankush Menat
79532ea0f2 fix: incorrect cache clearing of assets
- Build version wasn't correctly computed since v14 update of build
  system. This makes client side cache useless.
- We clear cache assuming rapid reloads,but opening new tab also does
  that. This makes the cache effectively useless for most users.
2023-07-15 21:59:04 +05:30
Ankush Menat
702e38cd74
fix(UX): Highlight prepared reports older than 1 day (#21689)
In MOST cases prepared report that are older than 1 day are stale.

[skip ci]
2023-07-15 19:16:03 +05:30
Ankush Menat
2264c4cf47 fix: cast port to integer
closes https://github.com/frappe/frappe/issues/21687
2023-07-15 17:46:45 +05:30
Ankush Menat
b4ea330c86
Merge pull request #21683 from ankush/on_demand_tags
perf: lazy load sidebar tag stats
2023-07-15 13:36:09 +05:30
Ankush Menat
b2b0bb69bb fix: Correct event for sidebar dropdown
- Click only gets called first time and not reliable next times
- Click will also get called when it's used for collapsing dropdown,
  which doesn't make sense here.
2023-07-15 13:14:04 +05:30
Ankush Menat
9a9705bd11 fix(UX): Show loading state while loading tags 2023-07-15 12:54:08 +05:30
Ankush Menat
5841f29610 refactor: rename poorly named variables
stats are actually columns in DB
columns are for verifying if DB column exists hence db_columns
other stats was result.

Renamed everything to avoid confusion.
2023-07-15 12:34:49 +05:30
Ankush Menat
d171a6d30a perf: lazy load sidebar stats
Sidebar stats take a huge time to load on large tables and it's not
required everytime you load the page. Best to only trigger it when user
clicks on "tags" (or other stats filter)

This is exactly how assignment and other filters work, so no need for
sidebar stats to work differently.
2023-07-15 12:29:46 +05:30
David Arnold
2ccab0d625
fix: checkpoint the supported schemes for connectivity (#21576)
* fix: checkpoint the supported schemes for connectivity

This PR implements a gateway + error that clearly hints the operator at
a misconfigured system during runtime.

Particularity, against the multiple library-provided ways of configuring
redis connection strings (in python), this hard stops if an unsupported
one is chosen by accident.

* fix: remove unknown protocol

---------

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2023-07-15 11:05:29 +05:30
Ankush Menat
5c4f6c64c6
Merge pull request #21678 from ankush/eslint
ci: add eslint and update linting confs
2023-07-14 16:13:30 +05:30
Ankush Menat
b5409f6f07 chore: remove eslint-disable* 2023-07-14 15:41:20 +05:30
Ankush Menat
58cf770760 fix: All ESLint errors 2023-07-14 15:25:48 +05:30
Ankush Menat
9d357f36e6 ci: tweak eslint rules 2023-07-14 15:09:58 +05:30
Ankush Menat
7e596aaea8 ci: Add eslint in precommit 2023-07-14 14:32:06 +05:30
Ankush Menat
c3119af5b6 ci: unpin semgrep 2023-07-14 14:29:21 +05:30
Ankush Menat
347902ba96 ci: bump flake8 2023-07-14 14:26:20 +05:30
Ankush Menat
adf30693a9 ci: update pyupgrade 2023-07-14 14:24:08 +05:30
Ankush Menat
fefd9ac2e2
fix: connect_replica and read_only should be idempotent (#21674)
* fix: `connect_replica` should be idempotent

Calling `connect_replica` twice ends up forgetting orginal writable
replica completely.

* test: replicas

closes https://github.com/frappe/frappe/issues/21619
2023-07-14 13:56:57 +05:30
David Arnold
6b2bb9a2ab
fix: add env overrides for service orchestration (#21577)
This avoids having to manipulate config files in brittle bash
entrypoints that need to react to dynamic service discovery.

This significantly improves the operability of various bench sites.
2023-07-14 11:39:01 +05:30
David Arnold
98d38e7333
fix: gently log the port on which the realtime service listens (#21575)
* fix: gently log the port on which the realtime service listens

without this, the service remains completely silent (e.g. in overmind) and it is hard to tell if it is even running

* Revert "fix: gently log the port on which the realtime service listens"

This reverts commit 14a21989c6767520d8e1b9d46cc9f58a45768563.

* refactor(socketio): explicitly listen on port

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-07-14 11:36:31 +05:30
Shariq Ansari
0a0f6ac2ca
Merge pull request #21665 from shariquerik/revert-auto-repeat-pr 2023-07-13 17:06:22 +05:30
Shariq Ansari
75b26cc96b revert: do not create comm on auto repeat #20606 2023-07-13 16:15:25 +05:30
Shariq Ansari
48c9099a0f fix: show fields table for fallback 2023-07-13 11:32:37 +05:30
Shariq Ansari
7ff438a249 fix: only hide form sections not form builder sections 2023-07-13 11:30:14 +05:30
Shariq Ansari
d93bf38251
Merge pull request #21657 from shariquerik/workflow-state-indicator-fix 2023-07-13 10:49:18 +05:30
Nautatava Navlakha
c2d35b773b
fix: add numbers correctly in report column total (#21661)
[skip ci]
2023-07-13 10:32:53 +05:30