Commit graph

35060 commits

Author SHA1 Message Date
Manuel
d8c8ca0e2f
Merge branch 'develop' into multiple_imap_folder 2021-10-25 12:05:28 +02:00
mergify[bot]
ebc29efae5
Merge pull request #14499 from ankush/configurable_max_writes
refactor: move max_writes constant to a class var
2021-10-25 07:01:13 +00:00
mergify[bot]
92c60983cc
Merge pull request #14463 from ankush/fuzzy_website_search
feat: allow fuzzy search in website search
2021-10-25 06:57:33 +00:00
Faris Ansari
179960d67f
Merge pull request #14134 from netchampfaris/print-format-builder-beta
feat: New Print Format Builder
2021-10-25 12:12:08 +05:30
gavin
76924b27dd
Merge pull request #14550 from ankush/move_semgrep
ci: move semgrep rules out of repo
2021-10-25 11:36:23 +05:30
mergify[bot]
4e3547fd08
Merge pull request #14552 from Aradhya-Tripathi/at/query/fix
fix: set_value takes for_update for pypika objects
2021-10-25 06:04:48 +00:00
Ankush Menat
99a6874aff feat: apply boosts on search queries
This gives higher priority to title and match over content.
2021-10-25 09:14:53 +05:30
Ankush Menat
4ef4ecdf01 fix: dont hardcode search fields
FullTextSearch uses name and content
WebsiteSearch uses title and content

Tests were failing because of hardcoded fieldnames which can't be
overridden by inheriting class without rewriting search function.

Made a separate function for defining search fields.
2021-10-25 09:14:48 +05:30
Ankush Menat
56f5b3d1f3 test: make global search tests less flaky 2021-10-24 14:46:02 +05:30
Ankush Menat
cbe673255b fix(ux): allow fuzzy search in website search
FuzzyTerm allows edit distance based fuzzy searching. This means "webho" or
"wabhool" will match "webhook".
2021-10-24 14:46:02 +05:30
Sagar Vora
28fce91673
fix: consistent description for Live Reload (#14554) 2021-10-24 13:50:07 +05:30
mergify[bot]
ceb7ec35e0
Merge pull request #14556 from resilient-tech/fix-bulk-update
fix: do not pop `doctype` and `docname`
2021-10-23 13:11:17 +00:00
Aradhya-Tripathi
ca1d9b4514 fix: fixed sider issues 2021-10-23 16:03:29 +05:30
Sagar Vora
b60f0772db fix: do not pop doctype and docname 2021-10-23 15:51:16 +05:30
Aradhya-Tripathi
672ae5cd87 fix: replaced return_query with run 2021-10-23 15:36:32 +05:30
Aradhya-Tripathi
33775b5373 style: reverting erroneous formatting 2021-10-23 15:17:40 +05:30
Aradhya-Tripathi
d6b9781163 feat: Added test to assert lock for pypika objects 2021-10-23 15:08:28 +05:30
Aradhya-Tripathi
94f2a6e275 feat: Added run kwarg to get_all, get_values 2021-10-23 15:08:02 +05:30
Aradhya-Tripathi
23c3079433 fix: set_value now takes for_update for pypika objects 2021-10-22 23:43:47 +05:30
Ankush Menat
614423e41c
chore: change repo name 2021-10-22 22:37:06 +05:30
Ankush Menat
488cb31265 ci: move semgrep rules out of repo 2021-10-22 21:46:50 +05:30
gavin
a930e98ca3
Merge pull request #14548 from gavindsouza/fix-flaky-printview
test(website): Clear db.value_cache on tearDown
2021-10-22 20:13:08 +05:30
Faris Ansari
c1053bea93 fix: Field rendering of every field 2021-10-22 19:20:42 +05:30
Faris Ansari
04e10c4c9e fix: Barcode rendering
- CSS variables in svg don't work in PDF
- styling is done via external css now to make it work in form as well as PDF
2021-10-22 19:14:59 +05:30
mergify[bot]
41b550d81d
Merge pull request #14546 from ankush/awesomebar_flaky_test
test: fix flaky awesome_bar test
2021-10-22 12:55:32 +00:00
Gavin D'souza
f08faf151c test(website): Clear db.value_cache on tearDown 2021-10-22 18:18:14 +05:30
Ankush Menat
5996d6829d test: fix flaky awesome_bar test 2021-10-22 15:47:17 +05:30
mergify[bot]
8cbbda7ab7
Merge pull request #14441 from Aradhya-Tripathi/query-conversion
refactor: replacing raw SQL queries with frappe ORM
2021-10-22 09:00:42 +00:00
Gavin D'souza
cb66e6508d refactor(minor): Use pluck & better var naming 2021-10-22 14:17:52 +05:30
Aradhya-Tripathi
0410a88aea refactor: replaced sql_list 2021-10-22 13:31:36 +05:30
gavin
1b8c826ae1
Merge pull request #14531 from ankush/remove_debug
fix: remove debug statements
2021-10-22 12:52:07 +05:30
Umair Sayed
616d97ce78
Changed default for Email Log from 90 to 30 days (#14543) 2021-10-22 07:17:30 +00:00
Aradhya-Tripathi
e46b1d1116 feat: Added pluck in sql to mirror sql_list 2021-10-22 12:44:33 +05:30
Faris Ansari
c679c08675 fix: lru_cache decorator usage 2021-10-22 12:04:27 +05:30
mergify[bot]
bc2ffd5184
Merge branch 'develop' into print-format-builder-beta 2021-10-22 06:19:22 +00:00
mergify[bot]
ff27f80280
Merge pull request #14445 from resilient-tech/refactor-fetch-from
refactor: improved design for fetching values using `add_fetch`
2021-10-22 04:47:10 +00:00
mergify[bot]
868d545ba5
Merge branch 'develop' into print-format-builder-beta 2021-10-22 04:38:08 +00:00
Suraj Shetty
d88bd035d0
refactor: Use LRU cache instead of redis cache 2021-10-22 09:29:15 +05:30
Suraj Shetty
04374de9eb
fix: Update licence text
Co-authored-by: gavin <gavin18d@gmail.com>
2021-10-22 09:22:52 +05:30
mergify[bot]
725013751b
Merge pull request #14538 from frappe/slow_search
fix(ux): debounce awesome_bar search
2021-10-22 03:33:53 +00:00
Aradhya-Tripathi
012edfe090 refactor: made style changes & fixed query conversions 2021-10-22 01:15:46 +05:30
Ankush Menat
128728a0c2 fix: debounce awesome_bar search
When system language is not english each call to search translates all
doctypes, reports etc to match them. This is computationally intensive
and freezes DOM while typing.

Debouncing to make it usable for now.

Ideal solution: cache translations of standard objects somehow / debounce + async.

refer: https://github.com/frappe/frappe/issues/13914

- replaced manual implementation of debouncing with frappe.utils.debounce
- increased timeout to 500ms.
- assuming ~30 wpm and 5 letter / word ~= 0.4 second / letter.
2021-10-21 23:44:47 +05:30
Faris Ansari
2ca464e4dd fix: control styling in preview 2021-10-21 20:32:44 +05:30
Faris Ansari
937fc35022 fix: body height in html preview 2021-10-21 20:13:53 +05:30
Faris Ansari
09c84b24d1 fix: Create letter head UX 2021-10-21 20:06:41 +05:30
Faris Ansari
86afd15100 fix: Revert back to text buttons 2021-10-21 19:43:16 +05:30
Sagar Vora
7aa8059b57 test: add UI test to ensure fetch_from works 2021-10-21 19:11:17 +05:30
Sagar Vora
f2b319920c refactor: improved design for fetching values using add_fetch 2021-10-21 19:00:30 +05:30
Suraj Shetty
cfa257929e
Merge pull request #14532 from resilient-tech/setDefault 2021-10-21 17:45:47 +05:30
mergify[bot]
dfffcc38b6
Merge pull request #14488 from resilient-tech/bulk_update
fix: ignore `flags` in `frappe.client.bulk_update`
2021-10-21 12:05:13 +00:00